FRP内网穿透部署
参考文章
点对点内网穿透
https://gofrp.org/docs/examples/xtcp/
https://www.jianshu.com/p/8589be3dd393
https://blog.csdn.net/qq_44700810/article/details/120991970
https://blog.fatedier.com/
服务器 frps.ini
[common]
bind_port = 54420
token = zxDDDsdas324343!@#$
服务端后台运行
nohup ./frps -c ./frps.ini & ##在FRP目录下输入此命令
客户端 frpc.ini
[common]
server_addr = 公网IP
server_port = 54420
token = zxDDDsdas324343!@#$
[mstsc1]
type = tcp
local_ip = 127.0.0.1
local_port = 3389
remote_port = 23389
使用systemd
[Unit]
Description=Frp Server Service
After=network.target
[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/usr/bin/frps -c /etc/frp/frps.ini
LimitNOFILE=1048576
[Install]
WantedBy=multi-user.target
[Unit]
# 服务名称,可自定义
Description = frp server
After = network.target syslog.target
Wants = network.target
[Service]
Type = simple
# 启动frps的命令,需修改为您的frps的安装路径
ExecStart = /path/to/frps -c /path/to/frps.ini
[Install]
WantedBy = multi-user.target