Server
frps.toml
bindPort = 7000
- docker 运行服务端
# localhub.deri.org.cn:8443/library/snowdreamtech/frps
docker run --restart=always --network host -d -v /etc/frp/frps.toml:/etc/frp/frps.toml --name frps snowdreamtech/frps
Client
frpc.toml
[common]
server_addr = 1.1.1.1
server_port = 7000
token = xxxxxx
[[proxies]]
name="ssh"
type = tcp
local_ip = 2.2.2.2
local_port = 1000
remote_port = 1000
- docker 运行客户端
# localhub.deri.org.cn:8443/library/snowdreamtech/frpc
docker run --restart=always --network host -d -v /etc/frp/frpc.toml:/etc/frp/frpc.toml --name frpc snowdreamtech/frpc