Forked from codexss/debian install rinetd-lkl shadowsocks-libev.sh
Created
June 23, 2017 09:26
-
-
Save 17/4e3fb410ff81f776eaf92b6012d9e508 to your computer and use it in GitHub Desktop.
debian install rinetd-lkl shadowsocks-libev
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
echo "deb http://httpredir.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list | |
apt update | |
apt -t jessie-backports install shadowsocks-libev -y | |
cat > /etc/shadowsocks-libev/config.json <<EOF | |
{ | |
"server":"0.0.0.0", | |
"server_port":443, | |
"local_port":1080, | |
"password":"foobar!", | |
"timeout":60, | |
"method":"aes-256-cfb" | |
} | |
EOF | |
/etc/init.d/shadowsocks-libev restart | |
wget "https://drive.google.com/uc?id=0B13JhsdK3UubU0g0QW9jeHZiMUk" -O /usr/bin/rinetd | |
chmod +x /usr/bin/rinetd | |
echo "0.0.0.0 443 0.0.0.0 443" > /etc/rinetd.conf | |
rinetd -f -c /etc/rinetd.conf raw venet0:0 &>/dev/null & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment