IPv4 is last generation protocol of the internet, and it is not secure. Shadowsocks is designed to make the network secure, and it is faster than HTTPS and more reliable than VPN.

Steps to install python version shadowsocks:

1.Install shadowsocks

pip install shadowsocks gevent


vi /etc/shadowsocks.json

    "fast_open": false

Change the port and password as you like.

Enable both IPv6 and IPv4.

3.Add startup script

wget --quiet -O /etc/init.d/shadowsocks https://mirror.scorpwill.com/init.d/shadowsocks

Change permission
chmod +x /etc/init.d/shadowsocks

Add user for shadowsocks
useradd -r -M -s /usr/sbin/nologin shadowsocks

Enable service(debian8)
systemctl enable shadowsocks

Start the service
service shadowsocks start

Finally add firewall rules(change 1080 to your port)

iptables -A INPUT -p tcp --dport 1080 -j ACCEPT
iptables -A INPUT -p udp --dport 1080 -j ACCEPT