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

    HowTo Set up Single WAN Address CARP with WAN access from both Primary and Secondary :)

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    2 Posts 2 Posters 294 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.
    • MrPeteM
      MrPete
      last edited by

      pfSense documentation for Single-Address CARP says:

      When used on a WAN, this type of configuration will only allow communication from the primary node to the WAN, which greatly complicates tasks such as updates, package installations, gateway monitoring, or anything that requires external connectivity from the secondary node.

      Here's how to configure so the secondary node also can reach the WAN. Everything is done in System->Routing->Gateways

      1. Add a gateway to your primary internal LAN, that's always enabled. My setup:
      • Interface: INTLAN
      • Address fam: IPV4
      • Name: GW_WAN_IfBackup
      • Gateway: 192.168.1.1
      • Description: Gateway when backup
      • Check BOTH "Disable Gateway Monitoring" and "Disable Gateway Monitoring Action"
      1. Create a Gateway Group that enables the new gateway when the primary one is unavailable:
      • Name: CARP_WAN_gateways
      • First one: WAN (WAN_PPPoE for me), Tier 1, Interface Address
      • Second: GW_WAN_IfBackup, Tier 2, 192.168.1.1 (CARP VIP for LAN)
      • Trigger Level: Member Down
      • Description: Priority: the master WAN, then use LAN to other CARP if backup
      1. Set the new Group as the default IPV4 gateway

      DONE.
      As long as this host is Primary, it should have access to the normal WAN.
      If it becomes Backup, it will see WAN as down, and instead connect to primary through the LAN.

      That's it :)

      E 1 Reply Last reply Reply Quote 1
      • E
        elkatarro @MrPete
        last edited by

        @MrPete You, Sir, are a lifesaver! I spent quite a couple of days figuring this out with no avail! Thank you a hundred times!!!

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