下载最新客户端
https://getfrp.sh/d/frpc_linux_amd64
复制至路由器并赋予权限
chmod 777 frpcs
编辑启动脚本frp
vim /etc/init.d/frp
frp脚本内容
#!/bin/sh /etc/rc.common
# Copyright (C) 2008 OpenWrt.org
START=99
USE_PROCD=1
PROG="/usr/bin/frpcs" #根据你自己的frp客户端填写
start_service() {
rm -f /frpc_overload*.log* # remove old logt/logp files
procd_open_instance
procd_set_param command "$PROG"
procd_append_param command -f XXX:69284
procd_set_param stdout 1 # forward stdout of the command to logd
procd_set_param stderr 1 # same for stder
procd_set_param respawn
procd_close_instance
}
设置frp脚本权限,以及增加软链
chmod +x /etc/init.d/frp && /etc/init.d/frp enable
启动frp脚本
/etc/init.d/frp start
最后一次更新于2021-08-23
0 条评论