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

    Two WAN interfaces - Route outgoing traffic through only one?

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 3 Posters 876 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 Offline
      BlondeCityFox
      last edited by

      I'm in a situation where I have to accept incoming connections from two different ISP's, (WAN1 & WAN2)
      port forward the traffic to the LAN and - here comes the tricky part - make ALL outbound (not sure if that's the right term?)
      go out from WAN1. Reason for this is that all recipients have their own FW's in which they are only accepting
      incoming traffic from the network on which WAN1 is placed.

      I.e the IP's and GW of WAN1 & WAN2 is not in the same net.

      Behind this machine is a mail server, and all incoming traffic is Port Forwarded in.

      Is it possible to make all outbound traffic leave from WAN1,
      even if the original connection came from WAN2?

      I'm truly lost here and are grateful for any help!

      1 Reply Last reply Reply Quote 0
      • G Offline
        goodspeed_11
        last edited by

        if you have Squid install, it's normal.

        Squid + Multi Wan = not working
        (it's my current problem)

        1 Reply Last reply Reply Quote 0
        • I Offline
          IAMCB
          last edited by

          Set-up a firewall rule so any traffic coming from the LAN uses the WAN1 Gateway. I've done this with my DMZ VLAN, all other traffic flows out of a separate interface using the default WAN gateway.

          I've tested this and as soon as I connect to the DMZ with my computer my external IP address changes immediately to the DMZ_WAN address I've set-up from my normal default public IP.

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