Using Haproxy + shadowsocks (ha + ss) to setup multi ss backend and load balance
*Install haproxy > sudo apt-get install haproxy *Configure haproxy >vim /etc/haproxy/haproxy.cfg global ulimit-n 51200 log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy pidfile /var/run/haproxy.pid user haproxy group haproxy daemon defaults log global mode tcp option dontlognull timeout connect 5000 timeout client 50000 timeout server 50000 frontend ss-in mode tcp bind $Your_IP:8002 default_backend shadowsocks backend shadowsocks mode tcp balance roundrobin server ss1 $Your_SS_IP1:$Your_SS_PORT1 maxconn 20480 server ss2 $Your_SS_IP2:$Your_SS_PORT2 maxconn 20480 ...