Skip to content

mkdir -p /opt/frp && cd /opt/frp wget https://github.com/fatedier/frp/releases/download/v0.61.0/frp_0.61.0_linux_amd64.tar.gz tar -zxvf frp0.61.0_linux_amd64.tar.gz mv frp_0.61.0_linux_amd64/ ./ rm frp0.61.0_linux_amd64 -r vim frpc.toml ./frpc -c ./frpc.toml vim /etc/systemd/system/frpc.service

service
[Unit]
Description=Frp Client Service
After=network.target network-online.target syslog.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=/opt/frp/frpc -c /opt/frp/frpc.toml
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target

133 # 重载 systemd 134 sudo systemctl daemon-reload 135 # 设置开机自启并立即启动 frpc 136 sudo systemctl enable --now frpc 137 systemctl daemon-reload 138 systemctl enable --now frpc 139 systemctl status frpc

toml

serverAddr = "117.72.69.195"
serverPort = 8122

auth.method = "token"
auth.token = "bxr2859902680"

webServer.addr = "0.0.0.0"
webServer.port = 16449
webServer.user = "Gettler"
webServer.password = "73748156"
webServer.pprofEnable = false

[[proxies]]
name = "pve02"
type = "tcp"
localIP = "10.6.0.12"
localPort = 8006
remotePort = 18026

[[proxies]]
name = "frp02"
type = "tcp"
localIP = "10.6.0.12"
localPort = 26449
remotePort = 26449

[[proxies]]
name = "syncthing_2"
type = "tcp"
localIP = "10.6.0.102"
localPort = 12067
remotePort = 12067
loadBalancer.group = "syncthing-group"
loadBalancer.groupKey = "73748156"
healthCheck.timeoutSeconds = 3
healthCheck.maxFailed = 3
healthCheck.intervalSeconds = 5

[[proxies]]
name = "rabbitmq_2"
type = "tcp"
localIP = "10.6.0.14"
localPort = 5672
remotePort = 5672
loadBalancer.group = "rabbitmq-group"
loadBalancer.groupKey = "73748156"
healthCheck.timeoutSeconds = 3
healthCheck.maxFailed = 3
healthCheck.intervalSeconds = 5

[[proxies]]
name = "rabbitmqui_2"
type = "tcp"
localIP = "10.6.0.14"
localPort = 15672
remotePort = 15672
loadBalancer.group = "rabbitmqui-group"
loadBalancer.groupKey = "73748156"
healthCheck.timeoutSeconds = 3
healthCheck.maxFailed = 3
healthCheck.intervalSeconds = 5

[[proxies]]
name = "mongodb_2"
type = "tcp"
localIP = "10.6.0.107"
localPort = 27017
remotePort = 27017
loadBalancer.group = "mongodb-group"
loadBalancer.groupKey = "73748156"
healthCheck.timeoutSeconds = 3
healthCheck.maxFailed = 3
healthCheck.intervalSeconds = 5

[[proxies]]
name = "nextcloud_2"
type = "tcp"
localIP = "10.6.0.109"
localPort = 80
remotePort = 8000
loadBalancer.group = "nextcloud-group"
loadBalancer.groupKey = "73748156"
healthCheck.timeoutSeconds = 3
healthCheck.maxFailed = 3
healthCheck.intervalSeconds = 5

[[proxies]]
name = "jellyfin_2"
type = "tcp"
localIP = "10.6.0.110"
localPort = 8096
remotePort = 8096
loadBalancer.group = "jellyfin-group"
loadBalancer.groupKey = "73748156"
healthCheck.timeoutSeconds = 3
healthCheck.maxFailed = 3
healthCheck.intervalSeconds = 5

[[proxies]]
name = "light_2"
type = "tcp"
localIP = "10.6.0.105"
localPort = 5800
remotePort = 5800
loadBalancer.group = "light-group"
loadBalancer.groupKey = "73748156"
healthCheck.timeoutSeconds = 3
healthCheck.maxFailed = 3
healthCheck.intervalSeconds = 5