server配置(windows):下载:
https://github.com/fatedier/frp/releases
[common]
# 服务器端端口
bind_port =
# 客户端连接凭证
token =
# 最大连接数
max_pool_count =
# 客户端映射的端口
vhost_http_port =
# 服务器看板的访问端口
dashboard_port =
# 服务器看板账户
dashboard_user = root
dashboard_pwd =
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 =
token = [web1]
type = http
local_ip = 127.0.0.1
local_port =
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