Halo
发布于 2024-03-12 / 69 阅读 / 0 评论 / 0 点赞

frp内网穿透http

中心云主机(x.x.x.x)

  1. /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"
  1. run
./frps -c ./frps.toml

内网主机

  1. 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"]
  1. run
./frpc -c ./frp.toml

评论