提示:新版frp不支持win7,建议win10及以上系统。win7可以考虑下载0.49.0版尝试。
frp客户端配置文件frpc.toml参考
serverAddr = "x.x.x.x"
serverPort = 7000
auth.token = "xxxx"
webServer.addr = "127.0.0.1"
webServer.port = 7400
webServer.user = "xxxx"
webServer.password = "xxxx"
transport.tls.enable = true
transport.tls.disableCustomTLSFirstByte = true
[[proxies]]
name = "RDP"
type = "tcp"
localIP = "127.0.0.1"
localPort = 3389
remotePort = xx89
transport.useEncryption = true
transport.useCompression = true
[[proxies]]
name = "webdav"
type = "tcp"
localIP = "127.0.0.1"
localPort = 9999
remotePort = xx99
transport.useEncryption = true
transport.useCompression = true
[[proxies]]
name = "frpc"
type = "http"
localIP = "127.0.0.1"
localPort = 7400
subdomain = "frpc"
transport.useEncryption = true
transport.useCompression = true
{{- range $_, $v := parseNumberRangePair "20,21,xx01-x03" "xx1,xx1,xx01-xx03" }}
[[proxies]]
name = "ftp-{{ $v.First }}"
type = "tcp"
localIP = "127.0.0.1"
localPort = {{ $v.First }}
remotePort = {{ $v.Second }}
transport.useEncryption = true
transport.useCompression = true
{{- end }}
本例子中含:常用的远程服务RDP,文件系统webdav以及ftp和网页服务http.