Skip to content

Instantly share code, notes, and snippets.

@Xstasy
Created January 12, 2015 22:42
Show Gist options
  • Save Xstasy/89d1d1ea222e32dd0287 to your computer and use it in GitHub Desktop.
Save Xstasy/89d1d1ea222e32dd0287 to your computer and use it in GitHub Desktop.
Test haproxy
global
log 127.0.0.1 local0
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
defaults
log global
mode tcp
option tcplog
option dontlognull
listen ftp-balancer
bind :21
mode tcp
option tcplog
timeout server 5000
timeout client 5000
timeout connect 5000
balance leastconn
server WAN1 wan1.domain.io:21 send-proxy check
server WAN2 wan2.domain.io:21 send-proxy check
server WAN3 wan3.domain.io:21 send-proxy check
server WAN4 wan4.domain.io:21 send-proxy check
server WAN5 wan5.domain.io:21 send-proxy check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment