Navigation

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

    Separate NAT for different internet connections

    NAT
    nat outbound nat
    3
    4
    320
    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.
    • J
      JasonHarper last edited by

      I have separate internet connections (WAN1 and WAN2) and multiple internal subnets/VLANs. For most of my subnets, I want to use WAN1 for outbound NAT. For one in particular, I want to use WAN2 for outbound NAT.

      VLAN30 (192.168.4.0/22) -> WAN2 outbound NAT

      I've got everything configured and all my traffic for WAN1 seems to be working fine. However, when I configure outbound NAT to use WAN2 for my VLAN30 subnet, that traffic is still being sent out WAN1. I'm not sure what I'm missing. Perhaps I need some type of static route to move traffic from VLAN30 to the WAN2 nat?

      Let me know what info, screenshots, etc I can provide to clarify. Appreciate any help!

      I have confirmed I'm able to pass traffic on WAN2 and there don't seem to be any issues there. Perhaps I need some type of static

      1 Reply Last reply Reply Quote 0
      • C
        crucialguy last edited by crucialguy

        At a guess WAN1 is your default gateway, so unless you alter the 'default' outbound rule within the VLAN30 interface rulesets, then it will just use the default gateway - WAN1.

        So, the fix for this...you just need to edit the default outbound rule within the VLAN30 rules and change the 'Gateway' in advanced settings to WAN2, that will get that VLAN leaving via that gateway and thus using the outbound NAT for WAN2.

        J 1 Reply Last reply Reply Quote 2
        • J
          JasonHarper @crucialguy last edited by

          @crucialguy That absolutely did the trick! Thank you for the guidance!!!

          G 1 Reply Last reply Reply Quote 0
          • G
            GDSF @JasonHarper last edited by

            @jasonharper Could you send me an example print please?

            1 Reply Last reply Reply Quote 0
            • First post
              Last post