-
-
Save engalar/3bc182f52173747bdfa8f379cafd04e8 to your computer and use it in GitHub Desktop.
/etc/init.d/frpc on OpenWrt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh /etc/rc.common | |
START=99 | |
USE_PROCD=1 | |
start_service() { | |
procd_open_instance "frpc" | |
procd_set_param command /root/frp/frpc -c /root/frp/frpc.ini | |
procd_set_param stdout 1 | |
procd_set_param stderr 1 | |
procd_set_param user root | |
procd_close_instance | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[common] | |
server_addr = xxx | |
server_port = 7000 | |
login_fail_exit = false | |
[openwrt-ssh] | |
type = tcp | |
local_ip = 192.168.1.1 | |
local_port = 22 | |
remote_port = 7722 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment