frps服务器安装方法1:


[root@iZbp16v1zpi82lbf50mlnxZ ~]# vim /etc/hosts


[root@iZbp16v1zpi82lbf50mlnxZ ~]# wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh


[root@iZbp16v1zpi82lbf50mlnxZ ~]# chmod 700 install-frps.sh


[root@iZbp16v1zpi82lbf50mlnxZ ~]# ./install-frps.sh install


frpc-frps 内网穿透安装教程_第1张图片



frps服务器安装方法2: https://blog.csdn.net/yeguxin/article/details/94026629



frpc客户端配置

[root@localhost ~]# wget https://github.com/fatedier/frp/releases/download/v0.33.0/frp_0.33.0_linux_amd64.tar.gz


[root@localhost ~]# tar -zxvf frp_0.33.0_linux_amd64.tar.gz


[root@localhost ~]# mv frp_0.33.0_linux_amd64 frp


[root@localhost ~]# cd frp


[root@localhost frp]# vim frpc.ini

[common]

server_addr = 121.196.218.20

server_port = 5443

token = EansaVjWuSQmrr1S


[ssh]

type = tcp

local_ip = 127.0.0.1

local_port = 22

remote_port = 2222


[8310]

type = tcp

local_ip = 127.0.0.1

local_port = 8310

remote_port = 18310


[8410]

type = tcp

local_ip = 127.0.0.1

local_port = 8410

remote_port = 18410


[root@localhost frp]#  nohup ./frpc -c ./frpc.ini &


测试

使用Xshell 登录 外网服务器IP:2222  , 链接成功登录内网服务器 22端口。



https://cloud.tencent.com/developer/news/404554

https://zhuanlan.zhihu.com/p/57477087

https://blog.csdn.net/yeguxin/article/details/94026629

http://www.codingwhy.com/view/2504.html

http://www.codingwhy.com/view/2503.html

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