Community discussions

MikroTik App
 
cermi
just joined
Topic Author
Posts: 1
Joined: Tue Oct 25, 2022 11:07 pm

l2tp client - cannot connect to Windows Server VPN

Tue Oct 25, 2022 11:19 pm

Hi,
I've a VPN server using WIndows Server 2022, Routing and Remote Access. I can connect to this VPN with Windows client, but it fails when I use RouterOS as a client to connect to this VPN.
I'm using L2TP/IPSec with preshared key.
Configuration of the client:
[admin@RouterOS] /interface l2tp-client> print 
Flags: X - disabled, R - running 
 0    name="l2tp-out1" max-mtu=1450 max-mru=1450 mrru=disabled connect-to=99.99.99.99 user="mikrotik" password="XXX" profile=default keepalive-timeout=disabled use-peer-dns=no use-ipsec=yes ipsec-secret="XXX" allow-fast-path=no add-default-route=yes default-route-distance=1 
      dial-on-demand=no allow=pap,chap,mschap1,mschap2
This is log:

Oct/25/2022 22:41:04 l2tp,debug,packet sent control message to 99.99.99.99:1701 from 100.66.48.57:1701
Oct/25/2022 22:41:04 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Oct/25/2022 22:41:04 l2tp,debug,packet (M) Message-Type=SCCRQ
Oct/25/2022 22:41:04 l2tp,debug,packet (M) Protocol-Version=0x01:00
Oct/25/2022 22:41:04 l2tp,debug,packet (M) Framing-Capabilities=0x1
Oct/25/2022 22:41:04 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Oct/25/2022 22:41:04 l2tp,debug,packet Firmware-Revision=0x1
Oct/25/2022 22:41:04 l2tp,debug,packet (M) Host-Name="RouterOS"
Oct/25/2022 22:41:04 l2tp,debug,packet Vendor-Name="MikroTik"
Oct/25/2022 22:41:04 l2tp,debug,packet (M) Assigned-Tunnel-ID=115
Oct/25/2022 22:41:04 l2tp,debug,packet (M) Receive-Window-Size=4
Oct/25/2022 22:41:05 l2tp,debug,packet sent control message to 99.99.99.99:1701 from 100.66.48.57:1701
Oct/25/2022 22:41:05 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Oct/25/2022 22:41:05 l2tp,debug,packet (M) Message-Type=SCCRQ
Oct/25/2022 22:41:05 l2tp,debug,packet (M) Protocol-Version=0x01:00
Oct/25/2022 22:41:05 l2tp,debug,packet (M) Framing-Capabilities=0x1
Oct/25/2022 22:41:05 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Oct/25/2022 22:41:05 l2tp,debug,packet Firmware-Revision=0x1
Oct/25/2022 22:41:05 l2tp,debug,packet (M) Host-Name="RouterOS"
Oct/25/2022 22:41:05 l2tp,debug,packet Vendor-Name="MikroTik"
Oct/25/2022 22:41:05 l2tp,debug,packet (M) Assigned-Tunnel-ID=115
Oct/25/2022 22:41:05 l2tp,debug,packet (M) Receive-Window-Size=4
Oct/25/2022 22:41:07 l2tp,debug,packet sent control message to 99.99.99.99:1701 from 100.66.48.57:1701
Oct/25/2022 22:41:07 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Oct/25/2022 22:41:07 l2tp,debug,packet (M) Message-Type=SCCRQ
Oct/25/2022 22:41:07 l2tp,debug,packet (M) Protocol-Version=0x01:00
Oct/25/2022 22:41:07 l2tp,debug,packet (M) Framing-Capabilities=0x1
Oct/25/2022 22:41:07 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Oct/25/2022 22:41:07 l2tp,debug,packet Firmware-Revision=0x1
Oct/25/2022 22:41:07 l2tp,debug,packet (M) Host-Name="RouterOS"
Oct/25/2022 22:41:07 l2tp,debug,packet Vendor-Name="MikroTik"
Oct/25/2022 22:41:07 l2tp,debug,packet (M) Assigned-Tunnel-ID=115
Oct/25/2022 22:41:07 l2tp,debug,packet (M) Receive-Window-Size=4
Oct/25/2022 22:41:11 l2tp,debug,packet sent control message to 99.99.99.99:1701 from 100.66.48.57:1701
Oct/25/2022 22:41:11 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Oct/25/2022 22:41:11 l2tp,debug,packet (M) Message-Type=SCCRQ
Oct/25/2022 22:41:11 l2tp,debug,packet (M) Protocol-Version=0x01:00
Oct/25/2022 22:41:11 l2tp,debug,packet (M) Framing-Capabilities=0x1
Oct/25/2022 22:41:11 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Oct/25/2022 22:41:11 l2tp,debug,packet Firmware-Revision=0x1
Oct/25/2022 22:41:11 l2tp,debug,packet (M) Host-Name="RouterOS"
Oct/25/2022 22:41:11 l2tp,debug,packet Vendor-Name="MikroTik"
Oct/25/2022 22:41:11 l2tp,debug,packet (M) Assigned-Tunnel-ID=115
Oct/25/2022 22:41:11 l2tp,debug,packet (M) Receive-Window-Size=4
Oct/25/2022 22:41:19 l2tp,debug,packet sent control message to 99.99.99.99:1701 from 100.66.48.57:1701
Oct/25/2022 22:41:19 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Oct/25/2022 22:41:19 l2tp,debug,packet (M) Message-Type=SCCRQ
Oct/25/2022 22:41:19 l2tp,debug,packet (M) Protocol-Version=0x01:00
Oct/25/2022 22:41:19 l2tp,debug,packet (M) Framing-Capabilities=0x1
Oct/25/2022 22:41:19 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Oct/25/2022 22:41:19 l2tp,debug,packet Firmware-Revision=0x1
Oct/25/2022 22:41:19 l2tp,debug,packet (M) Host-Name="RouterOS"
Oct/25/2022 22:41:19 l2tp,debug,packet Vendor-Name="MikroTik"
Oct/25/2022 22:41:19 l2tp,debug,packet (M) Assigned-Tunnel-ID=115
Oct/25/2022 22:41:19 l2tp,debug,packet (M) Receive-Window-Size=4
Oct/25/2022 22:41:27 l2tp,debug tunnel 115 received no replies, disconnecting
Oct/25/2022 22:41:27 l2tp,debug tunnel 115 entering state: dead
Oct/25/2022 22:41:27 l2tp,debug session 1 entering state: dead
Oct/25/2022 22:41:27 l2tp,ppp,debug l2tp-out1: CCP close
Oct/25/2022 22:41:27 l2tp,ppp,debug l2tp-out1: BCP close
Oct/25/2022 22:41:27 l2tp,ppp,debug l2tp-out1: IPCP close
Oct/25/2022 22:41:27 l2tp,ppp,debug l2tp-out1: IPV6CP close
Oct/25/2022 22:41:27 l2tp,ppp,debug l2tp-out1: MPLSCP close
Oct/25/2022 22:41:27 l2tp,ppp,info l2tp-out1: terminating... - session closed
Oct/25/2022 22:41:27 l2tp,ppp,debug l2tp-out1: LCP lowerdown
Oct/25/2022 22:41:27 l2tp,ppp,debug l2tp-out1: LCP down event in initial state
Oct/25/2022 22:41:27 l2tp,ppp,info l2tp-out1: disconnected
And it repeats

There is nothing in the VPN server log.

"99.99.99.99" stands for IP address of the Windows Server with VPN.
I don't know what address is 100.66.48.57. I'm behind CGNAT, I don't have my own public IP. My "external" public IP is different from the 100.66.48.57.

Can you please help me what I'm doing wrong?

Who is online

Users browsing this forum: cmmike and 24 guests