Last active
October 16, 2018 13:06
-
-
Save SimonTart/bebe55582939d0ad0e396e72a4b652db to your computer and use it in GitHub Desktop.
FuckGFW
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/bash | |
### BEGIN INIT INFO | |
# Provides: kcptun | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
### END INIT INFO | |
case "$1" in | |
start) | |
/root/kcptun/start.sh | |
;; | |
stop) | |
/root/kcptun/stop.sh | |
;; | |
restart) | |
/root/kcptun/restart.sh | |
;; | |
esac |
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 | |
### BEGIN INIT INFO | |
# Provides: shadowsocks | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: start shadowsocks | |
# Description: start shadowsocks | |
### END INIT INFO | |
start(){ | |
ssserver -c /etc/shadowsocks.json -d start | |
} | |
stop(){ | |
ssserver -c /etc/shadowsocks.json -d stop | |
} | |
case "$1" in | |
start) | |
start | |
;; | |
stop) | |
stop | |
;; | |
reload) | |
stop | |
start | |
;; | |
*) | |
echo "Usage: $0 {start|reload|stop}" | |
exit 1 | |
;; | |
esac |
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
{ | |
"listen": ":29900", | |
"target": "127.0.0.1:7788", | |
"key": "kcptun", | |
"crypt": "aes-128", | |
"mode": "fast2" | |
} |
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
{ | |
"server":"0.0.0.0", | |
"server_port":"7788", | |
"local_address": "127.0.0.1", | |
"local_port":1080, | |
"password":"", | |
"timeout":300, | |
"method":"aes-256-cfb", | |
"fast_open": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment