frp内网穿透配置

frp 介绍及安装配置:

https://github.com/fatedier/frp/blob/master/README_zh.md

frp 安装

https://github.com/fatedier/frp/releases 下载对应的操作系统的frp包

放到自己的机器上解压即可;

tar -zxvf frp_0.31.1_linux_amd64.tar.gz

frp server端配置:

将frp包放到具有公网ip的服务器上,解压

vim frps.ini

[common]

bind_port = 7000

vhost_http_port = 80

如果该frp server 不提供http映射服务,则不需要填写vhost_http_port = 80 参数;

如果听http服务,该服务器的公网ip必须绑定域名;

运行:

nohup ./frps -c ./frps.ini > frps.log 2>&1 &

试用nohup在后台运行,运行日志写入 frps.log文件

frp ssh 客户端配置

我们把需要将ssh登陆映射到公网上的内网机器称为 frp客户端

将frp包放到客户端机器,解压

vim frpc.ini

[common]

server_addr = x.x.x.x # 你的frp server端的公网ip

server_port = 70

猜你喜欢

转载自blog.csdn.net/zhongbeida_xue/article/details/104186667
今日推荐