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

    Two ISP, 10 IP, 1 1:1 NAT, and No idea!

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 1.7k 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.
    • I
      itguru
      last edited by

      I've been trying to setup my pfsense box for a while now, I've managed to get one ISP up and running just fine.

      When it comes to two however, it's a diffrent story

      I have three NICS, two connected to my ADSL modems, and one to my network

      I want the same port forwarding to occur on both ISP ips, so that incoming data can occur on either IP, without the need to reconfigure the firewall, (switch it dns, which works fine at the moment)

      For this to work, does pfsense remember which ISP a packet came in on, so that the return packet goes via the route it came in, rather than the default route? (my current tests, show it goes back via the default, which doesn't help)

      Finally, I'd like to do a 1:1 NAT, so that I can give a higher priority to VoIP traffic, (and because our voice setup requires it), and also be able to seperate it using graphs which pfsense can produce.

      Any advice and comments will be appreciated.

      1 Reply Last reply Reply Quote 0
      • S
        ssheikh
        last edited by

        For this to work, does pfsense remember which ISP a packet came in on, so that the return packet goes via the route it came in, rather than the default route? (my current tests, show it goes back via the default, which doesn't help)

        It uses default route. You can do policy based routing from the Firewall Rules and choose a different gateway for a traffic handled by a particular Firewall Rule but you can not do dynamic routing based on the inbound source of the traffic.

        I am not aware of any firewall capable of doing what you are trying to do.

        One solution may be to dual IP the servers/services you want to publish and publish one IP to the internet connection from one ISP and the other IP to the other internet connection. Then use policy based routing to have the return traffic routed properly through the correct ISP.

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