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

2.Configure

vi /etc/shadowsocks.json

{
    "server":"0.0.0.0",
    "server_port":1080,
    "password":"security",
    "timeout":300,
    "method":"aes-256-cfb",
    "workers":10,
    "fast_open": false
}

Change the port and password as you like.

Enable both IPv6 and IPv4.
"server":"::",

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