Last active
December 25, 2018 14:56
-
-
Save seancheung/0b799589d9c08022ad44962310e320a2 to your computer and use it in GitHub Desktop.
Install and config shadowsocks server on Ubuntu Machine
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
#!/bin/sh | |
#install pip and shadowsocks | |
sudo apt-get install -y python-pip | |
sudo pip install shadowsocks | |
#create shadowsocks scripts | |
echo "sudo ssserver -p 8388 -k [PASSWORD] -m aes-256-cfb --user nobody -d start" > ssstart.sh | |
echo "sudo ssserver -d stop" > ssstop.sh | |
#Permission | |
sudo chmod +x ssstart.sh ssstop.sh | |
#Open 8388 port | |
sudo ufw allow 8388 | |
#start shadowsocks | |
./ssstart.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment