配置 HAProxy
1. 进入配置文件夹
ls /etc/haproxy/
2. 备份配置文件 (可选)
sudo cp haproxy.cfg haproxy.cfg.bak
3. 编辑配置文件 (/etc/haproxy)
defaults
mode tcp
option dontlognull
timeout connect 10s
timeout client 1m
timeout server 1m
#---------------------------------------------------------------------
frontend shadowsocks-in
bind *:8388
default_backend shadowsocks-out
#---------------------------------------------------------------------
backend shadowsocks-out
balance roundrobin
server server1_name 104.224.152.169:2000
server server2_name 67.218.134.185:2000
# 自己替换IP和端口