Unusual scenario for load balance using carps

  • Hi all,

    I found a way to use both pfsenses(slave and master) with version 1.2.3.

    I set up some extra carps for each interaface and set those as master on second pfsense.

    then I've made some static routings on lan and changed some default gateways on DMZ servers.

    Last step was creating some outbound nat to force traffic from slave box to use their ips for servers that default gateway are set for second box.

    At pfsense 1.2.3 it works very nice, I have two boxes working in a 'load balance' way for some services and if one box fails the other get's all traffic.


    On pfsense 2.0 every time I apply something, carp Advertising Frequency values are set on slave box to master value +100.
    This breaks out my 'load balance' as master box gets all CARPS as master.
    My work around for this was setting Advertising Frequency for carps on master that belongs to slave with 254.
    After that my  'load balance scenario works' except when I need to reboot slave box(updating or something else).
    After rebooting all 'master carps' on slave box stay in init state until I re-set Advertising Frequency form 0 to 100 for example.

    I know it's not a default scenario but is there a way to fix it? some system tunnable settings or something else?

    Thanks for any help.
    Marcello Coutinho

  • Rebel Alliance Developer Netgate

    Well if you don't want the CARP VIP settings to sync then don't sync the VIPs. Just uncheck that option under the CARP settings. Then you can adjust the VIPs however you like.

    I will note, however, that splitting the MASTER role of VIPs between the boxes is not a config that is currently supported, so do not be surprised if some bits don't work as you expect.

Log in to reply