Page 1 of 1

Multiple WAN - ping issue

Posted: Thu Jun 06, 2013 6:24 pm
by FunkyBunny
I have a router with 2 net connections - a cable and a dsl.

The cable connection is the primary and is used for the PC's, while the DSL is used solely for VOIP phones. The routing is done by simple mangle rules and routing marks and everything works peachy.

My problem is, we used ping tests from outside the network to test the state of the connection. If we ping the cable IP, we get a reply and all is well. However, when we ping the DSL IP, the router replies from the cable IP which obviously screws things up.

How can I get pings to the cable IP reply from the cable, and pings to the DSL IP reply via the DSL?

Re: Multiple WAN - ping issue

Posted: Fri Jun 07, 2013 2:01 pm
by mrz
Mark incoming connections and in output chain mark routing to ensure that replies goes over the same gateway.

Re: Multiple WAN - ping issue

Posted: Fri Jul 05, 2013 8:54 pm
by FunkyBunny
Hate to revive an old thread, but I had trouble doing that and getting it to work, I largely wrote it off, but now I'm having actual issues and can't get it fixed.

What I tried doing was adding the following:

in the mangle rules, I added a new rule on the input chain, with the in interface being the secondary WAN. Action being mark connection with no passthrough.

Another mangle rule on the output chain with just a match on the connection mark from above, and the action being mark routing with no passthrough.


I then made a routing rule with a distance of 1, dst address of 0.0.0.0/0 and routing mark of the mark from above.


With those 3 things in place, I'm still not able to ping the secondary internet, it will still respond out the primary.

Re: Multiple WAN - ping issue

Posted: Fri Jul 05, 2013 8:58 pm
by FunkyBunny
holy crap

the second i make a post it started working. I think something may have been goofed in the cache.

In any case, for anyone having a similar problem, it is important that the routing mark take place in the output chain and not prerouting