内网穿透工具frpc ,流量代理

内网配置

[common]
server_addr = 123.207.61.13
server_port = 9209
token = 123456
log_file = ./frpc.log

#[range:tcp_port]
#type = tcp
#local_ip = 127.0.0.1
#local_port = 5353-5354
#remote_port = 9393-9394
#use_encryption = false
#use_compression = false
#
#[range:udp_port]
#type = udp
#local_ip = 127.0.0.1
#local_port = 5353-5354
#remote_port = 9393-9394
#use_encryption = false
#use_compression = false


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

[http]
type = tcp
local_ip = 127.0.0.1
local_port = 80
remote_port = 9280

[art_svn]
type = tcp
local_ip = 127.0.0.1
local_port = 3670
remote_port = 9227

内网运行

 /usr/local/frp_0.39.1/frpc -c /usr/local/frp_0.39.1/frpc.ini

外网服务器配置

[common]
bind_port = 9209
log_file = /data/logs/frps/frps.log
dashboard_port = 9500
token = FengGuGame@mingame
dashboard_user = admin
dashboard_pwd = FengGu@admin
max_pool_count = 20
#allow_ports = 9000-9394

./frps -c frps.ini

svn: //123.207.61.13:9227 就行了

你可能感兴趣的:(环境配置,代理模式)