Skip to content

Instantly share code, notes, and snippets.

@engalar
Forked from NemoAlex/frpc
Last active July 17, 2019 06:03
Show Gist options
  • Save engalar/3bc182f52173747bdfa8f379cafd04e8 to your computer and use it in GitHub Desktop.
Save engalar/3bc182f52173747bdfa8f379cafd04e8 to your computer and use it in GitHub Desktop.
/etc/init.d/frpc on OpenWrt
#!/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
}
[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