Forked from codexss/debian install rinetd-lkl shadowsocks-libev.sh
Created
May 26, 2017 16:26
-
-
Save dapao9999/d6e2eb96a9c3afafddde3bb3dc1c3784 to your computer and use it in GitHub Desktop.
debian install rinetd-lkl shadowsocks-libev
This file contains hidden or 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