Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Unusual scenario for load balance using carps

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    2 Posts 2 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • marcellocM
      marcelloc
      last edited by

      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.

      BUT

      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

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.