by hmorris
335 deployments · 240 still active · last rev. 7 months ago

Please feel free to contribute here:

please also secure your shadowsocks:

Compatible with: Debian 8, Ubuntu 16.04 LTS, Ubuntu 14.04 LTS
#<UDF name="shadowip" Label="IP Address" example="" />
#<UDF name="shadowpasswd" Label="Shadowsocks Password" example="Password" />
apt-get -o Acquire::ForceIPv4=true update -y
sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o DPkg::options::="--force-confdef" -o DPkg::options::="--force-confold"  install grub-pc
apt-get -o Acquire::ForceIPv4=true update -y

apt-get install fail2ban -y

apt-get install python-pip python-m2crypto -y
pip install shadowsocks 

cat <<END >/etc/shadowsocks.json

ssserver -c /etc/shadowsocks.json -d start

iptables -I INPUT -p tcp --dport 8000 -j ACCEPT

cat <<END >/etc/rc.local
#!/bin/sh -e
# rc.local
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
# In order to enable or disable this script just change the execution
# bits.
# By default this script does nothing.

/usr/bin/python /usr/local/bin/ssserver -c /etc/shadowsocks.json -d start
exit 0