frp内网穿透简单配置

frp内网穿透简单配置

frp服务端配置,frps.ini(公网服务器配置)
配置好直接运行./frps -c frps.ini

[common]
bind_port = 7000 
dashboard_port = 7500
vhost_http_port = 8081 
authenticate_heartbeats = true
authenticate_new_work_conns = true
authentication_method = token
tls_enable = true
token =123456
dashboard_user = root
dashboard_pwd = 123456
#dashboard账号密码和token随便改,token必须要和客户端一致
#token配置上面不要写注释,并且等于号后面不要留空格,坑到我了,淦!!!

log_file = /var/log/frps.log
log_level = info
log_max_days = 3

客户端配置,frpc.ini(内网服务器配置
配置好直接运行./frpc -c frpc.ini

[common]
server_addr = 公网服务器ip
server_port = 7000
authenticate_heartbeats = true
authenticate_new_work_conns = true
authentication_method = token
tls_enable = true
token =123456
#token要和服务端一致
#token配置上面不要写注释,并且等于号后面不要留空格,坑到我了,淦!!!

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000

[web]
type = http
local_port = 8080
custom_domains = 公网服务器ip

[rdp]#远程桌面
type = tcp
local_ip = 127.0.0.1           
local_port = 3389
remote_port = 7001
 
[smb]#远程文件访问
type = tcp
local_ip = 127.0.0.1
local_port = 445
remote_port = 7002

[mysql]
type = tcp
local_ip = 127.0.0.1
local_port = 3306
remote_port = 9092

[redis]
type = tcp
local_ip = 127.0.0.1
local_port = 6379
remote_port = 9093

#后面还需要的话都差不多的配置
``


你可能感兴趣的:(服务器,linux,网络)