frp配置,需要服务端增加命令

sudo ufw allow 19023/tcp
sudo ufw allow 19022/tcp
netstat -ant | grep 19022

服务器阿里云端配置:

root@iZbp1fu31c5b1jg3paaio7Z:~# ps -ef |grep frps
root 1132333 1 0 Feb14 ? 00:21:57 ./frps -c frps.toml
root 1642715 1640784 0 12:54 pts/0 00:00:00 grep --color=auto frps

root@iZbp1fu31c5b1jg3paaio7Z:~/frp_0.61.1_linux_amd64# cat frps.toml
bindPort = 7000
vhostHTTPPort = 8080

启动命令就是:
./frps -c frps.toml

frpc的配置与启动
sudo systemctl restart frpc

(base) dragon@dragonquant:~/frp_0.61.1_linux_amd64$ cat frpc.toml
serverAddr = "114.55.179.176"
serverPort = 7000

[[proxies]]
name = "test-tcp"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 8443


[[proxies]]
name = "http1"
type = "http"
localIP = "127.0.0.1"
localport = 3001
customdomains = ["114.55.179.176"]

[[proxies]]
name = "test-tcp2"
type = "tcp"
localIP = "127.0.0.1"
localPort = 9021
remotePort = 19021


[[proxies]]
name = "docker-ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 9022
remotePort = 19022


[[proxies]]
name = "test-tcp001"
type = "tcp"
localIP = "127.0.0.1"
localPort = 9023
remotePort = 19023

知识库对话:
http://114.55.179.176:8080/
通过从公网IP 转到 私网 ssh (192.168.31.188)

现在只剩下,我在私网搭建一个web网站,公网也可以访问

后面再搞起来!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值