Community discussions

MikroTik App
Topic Author
Posts: 43
Joined: Sat Sep 22, 2018 6:13 pm

L2TP behind nat and windows registry

Wed Nov 18, 2020 7:36 pm

sorry if i'm posting but i don't find the solution myself...

i have a mikrotik behind nat of my isp.
i add pool / secret and theese rules
/interface l2tp-server server set enabled=yes default-profile=L2TP-profile authentication=mschap2 use-ipsec=required ipsec-secret=my_password
/ip firewall filter add action=accept chain=input disabled=no src-address= dst-address= place-before=1 comment="allow all from L2TP to internet"
/ip firewall filter add chain=input comment="allow L2TP ipsec port" dst-port=500,1701,4500 protocol=udp action=accept place-before=1
/ip firewall nat add place-before=0 chain=srcnat src-address= ipsec-policy=out,none action=masquerade comment="MSQRD L2TP: --> WAN traffic" 
/ip firewall filter add chain=forward action=accept ipsec-policy=in,ipsec comment="ipsec in"
/ip firewall filter add chain=forward action=accept ipsec-policy=out,ipsec comment="ipsec out"
/ip ipsec profile set [ find default=yes ] dh-group=ecp256,modp2048,modp1024 enc-algorithm=aes-256,aes-192,aes-128 hash-algorithm=sha1 
/ip ipsec proposal set [ find default=yes ] auth-algorithms=sha256,sha1 enc-algorithms=aes-128-cbc,aes-192-cbc,aes-256-cbc pfs-group=none
on windows side i add with regedit
Windows Registry Editor Version 5.00
then reboot

on my notebook
win 10 20h2 (2 years old) i setup L2TP few months ago and works correctly
my problem is my desktop, i change it few days ago and when i setup L2TP (equal with notebook) i can't connect...

this is log of mikrotik with desktop (error)
respond new phase 1 (Identity Protection):[500]<=>x.x.x.x[500]
ISAKMP-SA established[4500]-x.x.x.x[4500] spi:ab5895d42beeeafe:89096530ce8568e4
purging ISAKMP-SA[4500]<=>x.x.x.x[4500] spi=ab5895d42beeeafe:89096530ce8568e4.
ISAKMP-SA deleted[4500]-x.x.x.x[4500] spi:ab5895d42beeeafe:89096530ce8568e4 rekey:1
this is log with notebook (ok)
respond new phase 1 (Identity Protection):[500]<=>x.x.x.x[1]
ISAKMP-SA established[4500]-x.x.x.x[1024] spi:680260e4e3d72844:44d0a6a8f82bb5c8
first L2TP UDP packet received from x.x.x.x
l2tp03 logged in, 10.x.x.x
what i do to solve this problem?

thank you

Who is online

Users browsing this forum: Baidu [Spider], cyon, cypter, dubuscyr, Guntis, memelchenkov and 172 guests