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

    Outbound NAT not working (multiple WAN)

    Scheduled Pinned Locked Moved NAT
    6 Posts 2 Posters 657 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.
    • B
      brk
      last edited by

      When there was only 1 WAN, this used to work.
      I now have 2 WAN connections, both running BGP so the upstream sets the default route.

      I'm using manual outbound NAT with a rule enabled to route 10.10.2.0/24 out the WAN interface.

      natrules.png

      While performing a ping from a LAN host, I see in the States table the packet coming in as well as a non-translated packet going out WAN2. (I have WAN and WAN2 upstream/failover).

      states.png

      So it appears that its not translating the address. I also ran tcpdump on the gateway to confirm its trying to send a non-NAT IP out the WAN2 interface.

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @brk
        last edited by

        @brk where is your outbound nat for wan2? Your only showing wan.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        B 1 Reply Last reply Reply Quote 0
        • B
          brk @johnpoz
          last edited by

          @johnpoz thank you! forgot to copy that NAT rules. Only copied the WAN rules to WAN2.

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @brk
            last edited by

            @brk btw why are wanting to do manual - that is not required for multiple wan setups.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            B 1 Reply Last reply Reply Quote 0
            • B
              brk @johnpoz
              last edited by

              @johnpoz I have public and private net blocks on the LAN side. I only want some of the private networks to use NAT. I only displayed the one private network in the image. I want to NAT only 2 of 14 networks.

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @brk
                last edited by

                @brk Ah - you could also just set a hybrid entry for the networks you don't want to nat.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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