通过FRP实现内网穿透并绑定域名

先去解析域名到frp服务器

frps.ini配置:

[common]
bind_port = 140 #这是协商端口
token = #这里填token,就是连接密码
vhost_http_port = 80 #http端口

frpc.ini配置:

[common]
server_addr = #这里填frp服务器ip地址
server_port = 140 #填写对应frps.ini的协商端口
token = #填写对应frps.ini的token

[test]
type = http
local_ip = 192.168.1.1 #路由器管理页面
local_port = 80
custom_domains = #这里填解析的域名

[rdp]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 3389 #远程桌面穿透

[smb]
type = tcp
local_ip = 127.0.0.1
local_port = 445
remote_port = 19445 #samba穿透

发表评论