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

    Assigning various wan interfaces to local IP addresses for output

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 Posts 2 Posters 1.5k 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.
    • J Offline
      jserra
      last edited by

      Hello,

      I am not sure on how to do this:

      I've got two WAN interfaces (wan1 and wan2) and a LAN interface. I want to use WAN1 (which is a 20mb DSL with dynamic IP address) for almost everything, and WAN2 (which is a slower 1 mbit DSL with static IP) for specific things.

      I don't have any problems at opening ports and doing NAT from the outside. But I don't know how to make a specific local area IP address go through WAN2 for all output purposes. It always goes through WAN1 by default.

      I need something like this:

      WAN1 (DEFAULT)                            /¯¯¯¯¯¯(LAN)¯¯¯¯¯
                                              _
      (Network 223.254.254.0)    (In that network: 223.254.254.102)
      WAN2
      _________________/______________________________/

      While I can only seem to get this:

      WAN1 (DEFAULT)                            /¯¯¯¯¯¯(LAN)¯¯¯¯¯
                                              _
      (Network 223.254.254.0)
      (In that network: 223.254.254.102)
      WAN2
      ___________________/

      Does anyone know what to do?

      Thanks

      1 Reply Last reply Reply Quote 0
      • dotdashD Offline
        dotdash
        last edited by

        Firewall Rules, LAN. Before the 'Default LAN Any' rule add something like:

        • local IP * * * Gateway=WAN2

        Just occured to me, you might also need to add an advanced outbound NAT rule depending on what you want to do. Something like:
        WAN2 local IP * * * (specific WAN2 IP) *

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