frp相关链接
https://pan.runyf.cn/Software/frp
frp保存路径为 /otp/frp
服务端配置
[common]
bind_port = 7000
dashboard_port = 7500
dashboard_user = admin
dashboard_pwd = admin
token = token
log_file = /var/log/frps.log
log_level = info
log_max_days = 7
linux设置开机自启
编辑服务 vim /lib/systemd/system/frps.service
[Unit]
Description=Frp Server Service
After=network.target
[Service]
Type=simple
User=nobody
Restart=on-failure
RestartSec=5s
ExecStart=/opt/frp/frps -c /opt/frp/frps.ini
LimitNOFILE=1048576
[Install]
WantedBy=multi-user.target
启用服务
chmod o+x /opt/frp/*
systemctl daemon-reload
systemctl stop frps
systemctl start frps
systemctl status frps
客户端配置
[common]
server_addr = server ip
server_port = 7000
token = token
admin_addr = 127.0.0.1
admin_port = 7400
admin_user = admin
admin_pwd = admin
[web]
type = tcp
local_ip = 127.0.0.1
local_port = 80
remote_port = 1180
Linux后台启动
cp /opt/frp/systemd/frpc.service /lib/systemd/system/
vi /lib/systemd/system/frpc.service
chmod o+x /opt/frp/*
systemctl daemon-reload
systemctl stop frpc
systemctl start frpc
systemctl status frpc
Windows后台启动
创建扩展名为vbs的文本文件,并填写以下内容
set ws=wscript.createobject("wscript.shell")
ws.run "cmd /c C:\Windows\frp\frpc -c C:\Windows\frp\frpc.ini",0