Community discussions

MikroTik App
 
User avatar
hendry
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Sat Jan 18, 2014 9:59 am
Location: Cornwall, UK
Contact:

Route through to l2tp-client

Thu Aug 31, 2017 4:49 pm

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?
 
User avatar
strods
MikroTik Support
MikroTik Support
Posts: 1661
Joined: Wed Jul 16, 2014 7:22 am
Location: Riga, Latvia

Re: Route through to l2tp-client  [SOLVED]

Thu Aug 31, 2017 4:53 pm

Do you have a rule like this:
"/ip firewall nat add chain=srcnat out-interface=A&A action=masquerade"
 
User avatar
AlainCasault
Trainer
Trainer
Posts: 632
Joined: Fri Apr 30, 2010 3:25 pm
Location: Prévost, QC, Canada
Contact:

Re: Route through to l2tp-client

Thu Aug 31, 2017 5:57 pm

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
 
User avatar
AlainCasault
Trainer
Trainer
Posts: 632
Joined: Fri Apr 30, 2010 3:25 pm
Location: Prévost, QC, Canada
Contact:

Re: Route through to l2tp-client

Thu Aug 31, 2017 5:59 pm

Also! Use IP addresses for the gateway field, not interface names.


Sent from Tapatalk