HAProxy with IP Alias
-
Hello everyone!
I using 2 pfsense in HA. Iam setting up a HAProxy in order to redirect traffic coming to an IP Alias to 2 VM servers. In your opinion whats the best way for the IP Alias to be set up?
An Example:
pfSense 01 : 192.168.1.10
pfSense 02: 192.168.1.20
pfSense01 SYNC: 10.0.1.10 -> HA
pfSense02 SYNC: 10.0.1.20 -> HA
LAN CARP: 192.168.1.30 ( In order to access with one IP whichever pfsense is master at the time )With HAProxy -> SRV01 : 192.168.1.50 , SRV02:192.168.1.60
IP Alias for HAProxy -> 192.168.1.100Currently as far as i can see pfsense is not synchronizing the IP Aliases. I know if i add the same IP alias to my slave pfsense (192.168.1.20) its not gonna conflict because only 1 is alive right ?
Whats the best way to secure that if my master pfsense for some reason closes the HAproxy service can still work?
-
@p-chatzilabrou said in HAProxy with IP Alias:
Currently as far as i can see pfsense is not synchronizing the IP Aliases.
So possibly it's not hooked up on the CARP VIP?
-
-
@p-chatzilabrou
My doubt wasn't your sync settings, but how did you configure the IP alias? Is it hooked up on the CARP VIP??Normal interface IPs might not be synced to the secondary, since they cannot be used on it.
-
Damn i completely forgot that i could use the current LAN CARP i have..!! Yeah that works for me !! Thank you very much !!!