frp 路由穿透(github开源穿透软件)

server配置(windows):下载:

https://github.com/fatedier/frp/releases

 

[common]
# 服务器端端口                                                                                                                                                         
bind_port = 7000
# 客户端连接凭证                                                                                                                                                 
token = 123456
# 最大连接数                                                                                                                                      
max_pool_count = 500                                                                                                                                               
# 客户端映射的端口                                                                                                                                                    
vhost_http_port = 9527                                                                                                                                             
# 服务器看板的访问端口                                                                                                                                                  
dashboard_port = 7500
# 服务器看板账户                                                                                                                                            
dashboard_user = root                                                                                                                   
dashboard_pwd = 123456

client配置:下载:

wget https://github.com/fatedier/frp/releases/download/v0.22.0/frp_0.22.0_linux_amd64.tar.gz

  tar -zxvf frp_0.22.0_linux_amd64.tar.gz



 

[common]
server_addr = 47.100.xx.xx 
server_port = 7000
token = 123456

[web1]
type = http
local_ip = 127.0.0.1
local_port = 7001
use_encryption = true
use_gzip = true
custom_domains = 47.100.xx.xx #映射到公网的ip或者域名  云服务器需开启对应端口 类似该例中的7000 9527 启动时应该去掉对应值后边的#号注释,不然会报错

服务器(windows启动方式):cmd命令:frps.exe -c frps.ini

客户端(linux启动方式):./frpc -c frpc.ini

posted @ 2019-05-13 18:03  陈扬天  阅读(4477)  评论(0编辑  收藏  举报