Hi
I'm new to MikroTik, so please be gentle
So I've managed to get my RB4011 set up and it's primarily working how I want it to, except for one thing. I have 2 WANs (both vdsl) and both are connected and working, My intention is that by default clients will route to WAN1, but fail over to WAN2 if WAN1 is unavailable. A small number of clients (specific IP address) will do the opposite, so WAN2 first with failover to WAN1.
I've set up 4 Routes
Dst. Address 0.0.0.0, Gateway WAN1 PPPoE, Distance 1
Dst. Address 0.0.0.0, Gateway WAN2 PPPoE, Distance 2
Dst. Address 0.0.0.0, Gateway WAN2 PPPoE, Distance 1, Routing Mark: WAN2-First
Dst. Address 0.0.0.0, Gateway WAN1 PPPoE, Distance 2, Routing Mark: WAN2-First
I've then created an Address List for the WAN2-First clients, and a Mangle Rule:
Chain: prerouting, connection mark: no-mark, Src Address List: WAN2-Clients, Action: mark-routing, Routing Mark: WAN2-First.
The default clients work as expected, they use WAN1 and failover to WAN2. The issue is with the WAN2 first clients. If I check their external IP I see they are using WAN2 as expected, however performance is really poor. Monitoring the router I can see that, whilst they are reporting as using WAN2, a large number of the packets being sent are actually going out through WAN1.
If I disable the first 2 routing rules than the WAN2-First clients work correctly. If I change the first two rule and add a routing mark (WAN1-First) everything also works as expected, however that means I would need to create lists for all IPs and define a routing mark for them, which isn't ideal.
Is there a way to have a "default" pair of rules and rules with routing marks, or am I stuck with having to define all IPs and create Mangle rules for them?