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

    Dual Internet NAT not working

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 274 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.
    • T
      tompark
      last edited by

      Hi All,

      I have an issue that I am looking into and it just doesn't make sense (I think I have missed something in configuration).

      I have two ISP's, one (ISP1) is setup as my default connection and the other is there for business use (ISP2). My second internet connection uses PPoE and sets a static IP and provides default gateway.

      Under interfaces I have WAN (ISP1) and WAN2 (ISP2).
      Under Firewall > NAT > Outbound NAT - I have changed the mode to hybrid and added a single rule to NAT all traffic from 192.168.5.0/27 to the WAN2 IP address. However when I do a "whats my ip" lookup I get the IP of WAN (ISP1). Under Routing > Gateways I have default gateway set to Automatic. I am almost sure I have missed something out that is critical to getting this working.

      If I change the "default gateway" to the one for WAN2 (ISP2) the IP Address changes for all connections not just traffic from 192.168.5.0/27.

      Does anyone have any pointers as to what might be going wrong here?... I am sure I have missed a setting somewhere.

      Regards,
      Tom

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @tompark
        last edited by

        @tompark
        Outbound NAT masquerades outgoing traffic with the stated translation IP. This is needed for outbound traffic on the concerned interface, but it does nothing else, not routing at all.

        To route traffic from certain sources out to a non-default gateway, you have to add policy routing rules to the respective interface where the traffic is coming in.

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