Hi people,
I have a small issue which I cannot solve apparently. Im using a normal fiber connection, using an PPPoE interface which is bridge to my LAN etc. This al works fine and normal. Now, one of the machines I use (IP 192.168.2.251) has to use a VPN L2TP interface to go out.
For this I use a mangle rule, which marks packets coming from the 2.251 IP:
chain=prerouting action=mark-routing new-routing-mark=other passthrough=yes
src-address=192.168.2.251 log=no log-prefix=""
Then these use a static route saying al packages marked “other” are using the L2TP gateway.
This works fine, traffic is being routed as it should be and goes via the L2TP gateway onto the internet.
The problem is that when the L2TP interface goes down for whatever reason, the traffic from the marked packages routes via the PPPoE interface. This is not desirable. When the L2TP interface fails, packages should just be dropped (or routed wrong).
How can I make this? I tried using a static route and separating both packets but this didn’t seem to work.
Thanks in advance for the help!
Mark