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

    VIPs w/ Gateway Groups

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    8 Posts 2 Posters 1.6k 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.
    • M Offline
      MatthewH
      last edited by

      When setting up a gateway group, there's a virtual IP drop down, but it doesn't allow me to pick one of the VIPs I've setup; only "Interface Address" is available. I setup 2 /32 IP Alias VIPs; one for each WAN.

      I have 2 WANs and each WAN has 5 static IPs. I think I have IPSec failover working for the primary gateway IPs with dynamic DNS. I need to get another pair of static IPs to failover. I thought I'd assign the other static IPs to IP Alias VIPs, then setup gateway groups with pairs of VIPs…

      I read somewhere that only CARP VIPs could be assigned to gateway groups? I tried changing a VIP from IP Alias to CARP, but it said CARP VIPs couldn't be /32?

      I'm using 2.1.5. I should be able to update to 2.2.0 if that would help with this.

      Any help would be greatly appreciated.

      -Matt

      1 Reply Last reply Reply Quote 0
      • DerelictD Offline
        Derelict LAYER 8 Netgate
        last edited by

        You don't do that with a gateway group.  You do that with an IP Alias attached to the CARP VIP (on 2.2 at least) or another CARP VIP.  It should have the same netmask as the WAN/VIP (/29).  The IP Aliases don't use hellos.  They follow the CARP VIP when it fails over.

        Any outbound traffic you want to assign to a specific VIP would be done in your outbound NAT rules.

        What are you looking to do with the VIP?

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • M Offline
          MatthewH
          last edited by

          Thanks for the reply.

          I think I need the 2 VIPs to be in a gateway group because I need to be able to assign the failover group as a dynamic DNS client interface.

          I'm trying to use this so our VoIP phones failover to the other WAN IP if the primary one goes down. Our VoIP trunk provider can use a dynamic dns host name to failover the VoIP trunk, but I need pfsense to update the dns address based on which wans are up.

          I think this is basically the same as having an IPSec connection failover except its VoIP instead of IPSec. How do you do IPSec failover for 2nd IPs on WANs?

          1 Reply Last reply Reply Quote 0
          • DerelictD Offline
            Derelict LAYER 8 Netgate
            last edited by

            I can look at that in 2.2 later.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

            1 Reply Last reply Reply Quote 0
            • M Offline
              MatthewH
              last edited by

              I also posted this request for help in the Routing and Multi WAN forum since it seems to be related to both groups. Someone there mentioned the netmasks of the VIPs should match those of the WAN interfaces. I updated them to /24 for the fiber connection and /29 for the cable one. Unfortunately, the VIPs still weren't available in the gateway group screen.

              Thank you for looking into this.

              1 Reply Last reply Reply Quote 0
              • DerelictD Offline
                Derelict LAYER 8 Netgate
                last edited by

                Can I ask why you need dyn for this?  When it fails over the IP doesn't change and it's a static from the ISP.  Why bother with dynamic DNS?

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                1 Reply Last reply Reply Quote 0
                • M Offline
                  MatthewH
                  last edited by

                  When it fails over the IP does change as the VoIP has to switch from using 1 provider's fiber line to a different provider's cable line. I could see if the VoIP provider could handle switching destination IPs on their end if they detected a failure on the primary (instead of using dyn), but pfsense would still need to know which WAN to route the outgoing VoIP on.

                  1 Reply Last reply Reply Quote 0
                  • DerelictD Offline
                    Derelict LAYER 8 Netgate
                    last edited by

                    I'm sorry.  I see CARP and I think CARP.  Now I get it.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

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