中心云主机(x.x.x.x)
- /home/frp/frps.toml
bindAddr = "0.0.0.0"
bindPort = 8070
auth.token = "your_pwd"
transport.tls.force = true
vhostHTTPPort = 8071
webServer.addr = "0.0.0.0"
webServer.port = 8075
webServer.user = "admin"
webServer.password = "your_pwd"
- run
./frps -c ./frps.toml
内网主机
- frpc.toml
serverAddr = "x.x.x.x"
serverPort = 8070
auth.token = "your_pwd"
[[proxies]]
name = "http"
type = "http"
localPort = 8000
remotePort = 8071
customDomains = ["x.x.x.x"]
- run
./frpc -c ./frp.toml