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

    Configure LAN1 -> WAN1 and LAN2 -> WAN2

    Routing and Multi WAN
    2
    4
    2.6k
    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.
    • M
      mjneiva
      last edited by

      Hi,

      I have a LAN and a DMZ configured. In the DMZ I have a webserver that is available from the outside through the WAN1. Everything is working correctly.

      Now due to the slow connection I want to configure a new WAN to access the webserver. I want LAN to connect through WAN1 and DMZ to connect through WAN2.

      I have tried several different configurations without success similar to the ones I have at the moment for the DMZ through WAN1 but I cannot get to the webserver from the outside. I have made a packet capture on WAN2 and I receive several traffic.

      Any help? Thanks

      1 Reply Last reply Reply Quote 0
      • K
        kathampy
        last edited by

        Configure each WAN as a separate gateway. In the firewall's Internet access rule for LAN use the advanced gateway option to choose WAN1 and for the DMZ choose WAN2.

        In the NAT rules make sure you're actually choosing WAN2 for the forwarded ports to DMZ.

        1 Reply Last reply Reply Quote 0
        • M
          mjneiva
          last edited by

          Thanks.

          I configured WAN2 as a different interface and created a new gateway accordingly. At this moment if I have a computer on LAN2 and check my external IP address I get the public IP address of WAN2. That means that my internet connection is going through WAN2, which is fine. The only problem that I am still having is that I cannot connect from the ourside to the webserver on LAN2 although I have created all the rules. Any hints?

          The webserver is working correctly if I connect through WAN1.

          1 Reply Last reply Reply Quote 0
          • K
            kathampy
            last edited by

            You need to choose WAN2 when port forwarding. There is no need for any other rules. The Advanced Gateway settings are only for outgoing connections. You can receive external connections from WAN2 to LAN2 even if LAN2 is using WAN1 for outgoing.

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