下载地址
https://github.com/fatedier/frp/releases
服务端
frps.ini配置
[common]
bind_port = <端口>
vhost_http_port = <http请求端口>
subdomain_host = <子域名>
启动
windows
frps.exe
linux
./frps -c ./frps.ini
客户端
frpc.ini配置
[common]
server_addr = <服务端地址>
server_port = <服务器端端口>
[tcp]
type = tcp
local_ip = <本地地址>
local_port = <本地端口>
remote_port = <转发端口>
[http]
type = http
local_ip = <本地地址>
local_port = <本地端口>
subdomain = <二级域名>
custom_domains = <子域名>
启动
windows
frpc.exe
linux
./frpc -c ./frpc.ini