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?
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.