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

    HAProxy with IP Alias

    Scheduled Pinned Locked Moved Cache/Proxy
    5 Posts 2 Posters 188 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.
    • P
      p.chatzilabrou
      last edited by p.chatzilabrou

      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.100

      Currently 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?

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @p.chatzilabrou
        last edited by

        @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 1 Reply Last reply Reply Quote 0
        • P
          p.chatzilabrou @viragomann
          last edited by p.chatzilabrou

          @viragomann

          Hey,

          I have selected all the available options in HA Settings.

          b7f3c936-eded-4189-8f8b-5cb792533136-image.png

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @p.chatzilabrou
            last edited by

            @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.

            P 1 Reply Last reply Reply Quote 0
            • P
              p.chatzilabrou @viragomann
              last edited by

              @viragomann

              Damn i completely forgot that i could use the current LAN CARP i have..!! Yeah that works for me !! Thank you very much !!!

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