|
cat > "/tmp/frp/myfrpc.ini" <<-\EOF
# ==========客户端配置:==========
[common]
server_addr = hellollll.top
server_port = 7000
token = 12345
#log_file = /dev/null
#log_level = info
#log_max_days = 3
[web-1]
privilege_mode = true
remote_port = 8000
type = http
local_ip = 192.168.123.1
local_port = 80
use_gzip = true
subdomain = abin
#host_header_rewrite = 实际你内网访问的域名,可以供公网的域名不一致,如果一致可以不写
# ====================
EOF
=====================基本上是根据大佬的来操作的,目前主路由能进去,副路由死活启动不了,返回的提示如下
May 15 23:46:10 【防火墙规则】: 脚本完成
May 15 23:46:10 【自定义脚本0】: 脚本完成
May 15 23:46:10 【WebUI】: UI 开关遍历状态监测
May 15 23:46:12 【opt】: opt 挂载正常:tmpfs
May 15 23:46:16 crond[4506]: crond (busybox 1.29.3) started, log level 8
May 15 23:46:18 【frp】: 找到 /opt/bin/frpc
May 15 23:46:18 【frp】: 运行 frp_script
May 15 23:46:18 dnsmasq[31763]: exiting on receipt of SIGTERM
May 15 23:46:18 【frp】: killall: frpc: no process killed
May 15 23:46:18 【frp】: killall: frps: no process killed
May 15 23:46:18 dnsmasq[4541]: started, version 2.80 cachesize 1024
May 15 23:46:18 dnsmasq[4541]: compile time options: IPv6 GNU-getopt no-RTC no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua no-TFTP no-conntrack ipset no-auth no-DNSSEC no-loop-detect no-inotify no-dumpfile
May 15 23:46:18 dnsmasq-dhcp[4541]: DHCP, IP range 192.168.123.2 -- 192.168.123.244, lease time 1d
May 15 23:46:18 dnsmasq-dhcp[4541]: DHCP, sockets bound exclusively to interface br0
May 15 23:46:18 dnsmasq[4541]: read /etc/hosts - 6 addresses
May 15 23:46:18 dnsmasq[4541]: read /etc/storage/dnsmasq/hosts - 0 addresses
May 15 23:46:18 dnsmasq-dhcp[4541]: read /etc/dnsmasq/dhcp/dhcp-hosts.rc
May 15 23:46:23 【frp】: frpc-version: 0.27.0
May 15 23:46:23 【frp】: frpc启动失败, 注意检查端口是否有冲突,程序是否下载完整,10 秒后自动尝试重新启动
May 15 23:46:33 【frp】: 多次尝试启动失败,等待【4分钟】后自动尝试重新启动
===============================副路由有开启NGROK,来远程设置路由器。不知道是不是frp不能和ngrok共存还是什么原因,2个路由都是K2P PADAVAN的3.4.3.9-099_9-4-2固件,frp都用0.27版本的。 |
|