CentOS 7安装frp内网穿透示例

下载:

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

解压:

tar -xvf frp_0.26.0_linux_amd64.tar.gz

运行:

./frps -c frps.ini

frps.ini文件示例:

[common]
bind_addr = 0.0.0.0
bind_port = 7000
vhost_http_port = 8282
vhost_https_port = 8443
dashboard_addr = 0.0.0.0
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
log_file = ./frps.log
log_level = info
log_max_days = 7
privilege_mode = true
privilege_token = 12345678
subdomain_host = frp.com

frpc.ini示例:

[common]
server_addr = 127.0.0.1
server_port = 7000
privilege_token = 12345678
 
 
[ceph]
type = http
local_ip = 172.16.10.105
local_port = 8000
auth_token = 12345678
subdomain = ceph
 
[107]
type = tcp
local_ip = 172.16.10.111
local_port = 8484
remote_port = 18484
auth_token = 12345678
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享