FRP内网穿透后台管理地址:http://pangpal.cn:7500/,账号密码看Bitwarden
VIM编辑器的退出命令
:wq
启动服务器:
./frps -c ./frps.toml
启动客户端:
./frpc -c ./frpc.toml
查看frp状态
sudo systemctl status frps
重启frp
sudo systemctl restart frps
设置开机自动启动
sudo systemctl enable frps
服务器有2个toml文件(/root/frps),其中frpc.toml的内容要和客户端(NAS)一致
服务端的frpc.toml
serverAddr = "47.122.57.34"
serverPort = 7000
[[proxies]]
name = "读书吃饭"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5000
remotePort = 3333
[[proxies]]
name = "小方盒"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5000
remotePort = 4444
[[proxies]]
name = "plex"
type = "tcp"
localIP = "127.0.0.1"
remotePort = 33333
localPort = 32400
[[proxies]]
name = "web"
type = "http"
localPort = 5000
customDomains = ["pangpal.cn"]
群晖NAS-读书吃饭的frpc.toml
serverAddr = "47.122.57.34"
serverPort = 7000
[[proxies]]
name = "读书吃饭"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5000
remotePort = 3333
[[proxies]]
name = "plex"
type = "tcp"
localIP = "127.0.0.1"
remotePort = 33333
localPort = 32400
[[proxies]]
name = "web"
type = "http"
localPort = 5000
customDomains = ["pangpal.cn"]
小方盒的frpc设置
serverAddr = "47.122.57.34"
serverPort = 7000
[[proxies]]
name = "小方盒"
type = "tcp"
localIP = "127.0.0.1"
localPort = 5000
remotePort = 4444
[[proxies]]
name = "web"
type = "http"
localPort = 5000
customDomains = ["pangpal.cn"]