Community discussions

MikroTik App
 
shunkica
newbie
Topic Author
Posts: 48
Joined: Sat Mar 03, 2018 2:19 pm

L2TP IPsec client working only if behind nat

Wed Feb 08, 2023 9:40 pm

I am trying to connect to the L2TP server of a new client. Spent a few hours fiddling with all kinds of settings without success.
Then I decided to try it from my home router, and it worked instantly.
Double and triple checked all l2tp/ipsec options on both routers (they are same model and same version of ros), and they are the same.

After inspection of l2tp and IPsec logs, I saw that the only difference was that my work router is not behind nat (it has a public ip) so transport is established on port 500, while my home router is behind a nat (only has a private ip) and transport is established on port 4500.

The problem on the work router starts after IPsec-SA is established, and SCCRQ control message is sent to server. The server never replies. While the router at my home gets the reply.
The firewall is not in play as I have allowed all traffic from and to the server.

What can I do to address this issue? It is driving me mad.
 
shunkica
newbie
Topic Author
Posts: 48
Joined: Sat Mar 03, 2018 2:19 pm

Re: L2TP IPsec client working only if behind nat

Thu Feb 09, 2023 12:31 pm

I "fixed" it by adding a new router behind my main router, and then configuring the L2TP client on that router.
Anyway, I would appreciate if anyone can shed any light on this subject for me.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 114 guests