global log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 4000 user haproxy group haproxy daemon defaults mode tcp timeout client 10s timeout connect 5s timeout server 10s frontend socks-front bind *:41080 default_backend socks-back backend socks-back server appgate 192.168.86.22:9080 check server gw2 192.168.86.2:11080 check backup