Assigning various wan interfaces to local IP addresses for output



  • 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



  • 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) *


Log in to reply