Docker安装FRP程序 - xiaohao0576/odoo-doc GitHub Wiki

安装Frp Server

下载程序

docker pull snowdreamtech/frps

准备配置文件

vim /etc/frp/frps.toml

bindPort = 7000
auth.method = "token"
auth.token = "frp@yourpassword"

启动Frp Server

docker run --restart=always --network host -d -v /etc/frp/frps.toml:/etc/frp/frps.toml --name frps snowdreamtech/frps

安装Frp Client

下载程序

docker pull snowdreamtech/frpc

准备配置文件

vim /etc/frp/frpc.toml

serverAddr = "x.x.x.x"
serverPort = 7000
auth.method = "token"
auth.token = "frp@yourpassword"

[proxies](/xiaohao0576/odoo-doc/wiki/proxies)
name = "POS007-ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 13022

[proxies](/xiaohao0576/odoo-doc/wiki/proxies)
name = "POS007-odoo"
type = "tcp"
localIP = "127.0.0.1"
localPort = 8069
remotePort = 13023

启动Frp Client

docker run --restart=always --network host -d -v /etc/frp/frpc.toml:/etc/frp/frpc.toml --name frpc snowdreamtech/frpc