frp内网穿透安装客户端 和服务端
安装客户端 和服务端
cd /usr/local/
下载或者上传 frp_0.33.0_linux_amd64.tar.gz
wget https://github.com/fatedier/frp/releases/download/v0.33.0/frp_0.33.0_linux_amd64.tar.gz
解压
客服端 公网服务器
[root@gg ~]# tar zxvf frp_0.33.0_linux_amd64.tar.gz
[root@gg ~]# mv frp_0.33.0_linux_amd64 frp
[root@gg ~]# cd /usr/local/frp/
[root@gg frp]# cat frps.ini
[common]
bind_port = 7000
vhost_http_port = 8080
[root@gg frp]# nohup ./frps -c frps.ini &
服务端 内网服务器
[root@k8s-5 ~]# cd /usr/local/
[root@k8s-5 ~]# tar zxvf frp_0.33.0_linux_amd64.tar.gz
[root@k8s-5 ~]# mv frp_0.33.0_linux_amd64 frp
[root@k8s-5 ~]# cd /usr/local/frp/
[root@k8s-5 frp]# cat frpc.ini
[common]
server_addr = 111.229.111.200
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
[root@k8s-5 frp]# nohup ./frpc -c frpc.ini &
远程链接方式
ssh 公网ip:端口6000