Page 1 of 1

Route through to l2tp-client

Posted: Thu Aug 31, 2017 4:49 pm
by hendry
I have a Mikrotik with the default Home AP dual setup. I just got the l2tp-client going on an IP and I want to route everything through it.

https://s.natalian.org/2017-08-31/l2tp.txt

I expected "Add Default Route" in the l2tp-client to do it, but it just stops my internet working until I removed the setting.

Why? Is it because there are two 0.0.0.0 default gateways here?

Image

If it is because of the two conflicting routes, why doesn't the UI point that out? Why doesn't the UI offer at least to disable the 192.168.1.1 rule ?

Is there some firewall setting I am missing?

Re: Route through to l2tp-client  [SOLVED]

Posted: Thu Aug 31, 2017 4:53 pm
by strods
Do you have a rule like this:
"/ip firewall nat add chain=srcnat out-interface=A&A action=masquerade"

Re: Route through to l2tp-client

Posted: Thu Aug 31, 2017 5:57 pm
by AlainCasault
Hello,

There are no errors as far as the router is concerned. Just a "code 18" error. ;)

Play with your distance settings. The default route NOT to be used should be, for example, set to 5 and the one to be used set to 1. The value of "0" should be kept for the router's local interfaces with ip addresses.

Have you added a masquerade rule fir traffic going through your l2tp tunnel??



Sent from Tapatalk

Re: Route through to l2tp-client

Posted: Thu Aug 31, 2017 5:59 pm
by AlainCasault
Also! Use IP addresses for the gateway field, not interface names.


Sent from Tapatalk