Good idea! I can have the external IP of the domain redirected (with FreeBSD's pf rules) to an internal IP then have HAProxy bind to that internal IP. If the external IP fails over to that second box, HAProxy should already be running. I'll test and report the results.
Thanks! ---D ----- Original Message ----- From: "John Lauro" <[email protected]> To: "Daniel Gentleman" <[email protected]> Cc: [email protected] Sent: Thursday, July 23, 2009 5:05:52 PM GMT -08:00 US/Canada Pacific Subject: RE: HAProxy and FreeBSD CARP failover At least with linux this is possible, but I assume FreeBSD can do it too… You could use firewall rules to map static map the connection for a specific host/port to a local always present (even 127.0.0.1) IP and use different local ports for each host. From: Daniel Gentleman [mailto:[email protected]] Sent: Thursday, July 23, 2009 6:30 PM Cc: [email protected] Subject: Re: HAProxy and FreeBSD CARP failover Good idea except ... that HAProxy server load-balances for a couple different sites :( ----- Original Message ----- From: "John Lauro" <[email protected]> To: "Daniel Gentleman" <[email protected]>, [email protected] Sent: Thursday, July 23, 2009 3:23:06 PM GMT -08:00 US/Canada Pacific Subject: RE: HAProxy and FreeBSD CARP failover Only bind to the port so it doesn’t matter if additional addresses are added or removed. From: Daniel Gentleman [mailto:[email protected]] Sent: Thursday, July 23, 2009 6:13 PM To: [email protected] Subject: HAProxy and FreeBSD CARP failover Hi list. I'd like to set up a redundant HAProxy server using CARP failover in FreeBSD so the spare server will automatically snatch up the "listen" IP and balance out our server farm. I can get HAProxy configured, but it won't actually start unless the IP is already bound to the box. Suggestions? (latest haproxy-devel from FreeBSD ports) ---Daniel Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database: 270.13.20/2248 - Release Date: 07/22/09 18:00:00 Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database: 270.13.20/2248 - Release Date: 07/22/09 18:00:00

