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

    Multi-Pfsense firewall CARP and NAT Help

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 3 Posters 425 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.
    • K
      kyle_escobar
      last edited by

      I have made a simple diagram with what I am trying to achieve and have provided an explanation.
      0_1550208315807_Untitled Diagram.png

      I want to have 2 PFSense firewalls (virtual) on two different hosts which have two directly connected WAN networks. My servers currently are connected via a shared switch on the LAN. When I create this setup everything works. going to DNAT ports via public IP of master forwards to the internal just fine. And failover to the slave DNAT works too.

      What I want to do is have a shared CARP IP as a GW of my servers and allow traffic to go to either pfsense via public IP and get NATed to the server and go back out the pfsense it came in. Currently if I send traffic into the slave pfsense, it nats' to the server but the server then sends it to the master.

      Is there a way for me to make this setup have a reply-to tag based on which firewall the traffic came to the server from so it can source nat properly?

      1 Reply Last reply Reply Quote 0
      • L
        LeCygne
        last edited by

        Hello there! Sorry, I couldn't understand your words clearly. So may you elaborate more on what you are trying to achieve with your setup?

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

          You need a WAN CARP VIP on each WAN and set Outbound NAT to use that.

          What you have is an invalid HA configuration. Both WANs should be on both firewalls in a Multi-WAN configuration.

          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.