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

Outbound NAT not working (multiple WAN)

NAT
2
6
646
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 Dec 7, 2021, 11:46 PM

    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.

    login-to-view

    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).

    login-to-view

    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.

    J 1 Reply Last reply Dec 8, 2021, 12:19 PM Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator @brk
      last edited by Dec 8, 2021, 12:19 PM

      @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 Dec 8, 2021, 2:39 PM Reply Quote 0
      • B
        brk @johnpoz
        last edited by Dec 8, 2021, 2:39 PM

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

        J 1 Reply Last reply Dec 8, 2021, 2:52 PM Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @brk
          last edited by Dec 8, 2021, 2:52 PM

          @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 Dec 8, 2021, 2:56 PM Reply Quote 0
          • B
            brk @johnpoz
            last edited by Dec 8, 2021, 2:56 PM

            @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.

            J 1 Reply Last reply Dec 8, 2021, 2:58 PM Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator @brk
              last edited by Dec 8, 2021, 2:58 PM

              @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
              1 out of 6
              • First post
                1/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.