实现自己的内网穿透
https://github.com/fatedier/frp
配置文件:
cat frps.toml
bindPort = 7000
webServer.addr = "0.0.0.0"
webServer.port = 7001
webServer.user = "liuyang"
webServer.password = ""
auth.method="token"
auth.token=""
启动
./frps -c frps.toml
配置文件:
serverAddr = "82.156.150.84"
serverPort = 7000
auth.method = "token"
auth.token = "liuyang123#"
[[proxies]]
name = "test-tcp"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5000
remotePort = 7002 // 转移到哪个端口
启动
frpc.exe -c frpc.toml