L2TP/IPSec Client issue
Posted: Wed Apr 05, 2017 9:57 pm
Hello all,
I'm running a CRS109-8G-1S-2HnD with ROS 6.38.5 Stable, and I'm not able to connect to my fellow VPN Provider.
Actually I tested lot of solution, but SSTP/OVPN version on this OS are not compatible with requested feature of my provider (eg : OVPN-TLS auth). PPTP seemed to be bugged on mikrotik last version so forgot too. Then, I decided to go for L2TP/IPSec-psk. But it doesn't work neither or I'm nearly to get it working :
The IPSEC tunnel is correctly established, so first part is OK, but the L2TP tunnel won't establish, see log hereunder :
PP.PP.PP.PP is my provider's public IP address
MM.MM.MM.MM is my public IP address
==========================
20:32:21 l2tp,ppp,info l2tp-out1-adsl: initializing...
20:32:21 l2tp,ppp,info l2tp-out1-adsl: connecting...
20:32:21 system,info device changed by admin
20:32:21 l2tp,debug tunnel 1 entering state: wait-ctl-reply
20:32:21 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from 0.0.0.0:1701
20:32:21 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
20:32:21 l2tp,debug,packet (M) Message-Type=SCCRQ
20:32:21 l2tp,debug,packet (M) Protocol-Version=0x01:00
20:32:21 l2tp,debug,packet (M) Framing-Capabilities=0x1
20:32:21 l2tp,debug,packet (M) Bearer-Capabilities=0x0
20:32:21 l2tp,debug,packet Firmware-Revision=0x1
20:32:21 l2tp,debug,packet (M) Host-Name="MikroTik"
20:32:21 l2tp,debug,packet Vendor-Name="MikroTik"
20:32:21 l2tp,debug,packet (M) Assigned-Tunnel-ID=1
20:32:21 l2tp,debug,packet (M) Receive-Window-Size=4
20:32:21 ipsec,info initiate new phase 1 (Identity Protection): MM.MM.MM.MM[500]<=>PP.PP.PP.PP[500]
20:32:22 ipsec,info ISAKMP-SA established MM.MM.MM.MM[500]-PP.PP.PP.PP[500] spi:432019bbc4367960:dd5c09db0d1881e7
20:32:22 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from 0.0.0.0:1701
20:32:22 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
20:32:22 l2tp,debug,packet (M) Message-Type=SCCRQ
20:32:22 l2tp,debug,packet (M) Protocol-Version=0x01:00
20:32:22 l2tp,debug,packet (M) Framing-Capabilities=0x1
20:32:22 l2tp,debug,packet (M) Bearer-Capabilities=0x0
20:32:22 l2tp,debug,packet Firmware-Revision=0x1
20:32:22 l2tp,debug,packet (M) Host-Name="MikroTik"
20:32:22 l2tp,debug,packet Vendor-Name="MikroTik"
20:32:22 l2tp,debug,packet (M) Assigned-Tunnel-ID=1
20:32:22 l2tp,debug,packet (M) Receive-Window-Size=4
20:32:23 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from 0.0.0.0:1701
20:32:23 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
20:32:23 l2tp,debug,packet (M) Message-Type=SCCRQ
20:32:23 l2tp,debug,packet (M) Protocol-Version=0x01:00
20:32:23 l2tp,debug,packet (M) Framing-Capabilities=0x1
20:32:23 l2tp,debug,packet (M) Bearer-Capabilities=0x0
20:32:23 l2tp,debug,packet Firmware-Revision=0x1
20:32:23 l2tp,debug,packet (M) Host-Name="MikroTik"
20:32:23 l2tp,debug,packet Vendor-Name="MikroTik"
20:32:23 l2tp,debug,packet (M) Assigned-Tunnel-ID=1
20:32:23 l2tp,debug,packet (M) Receive-Window-Size=4
20:32:25 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from 0.0.0.0:1701
20:32:25 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
20:32:25 l2tp,debug,packet (M) Message-Type=SCCRQ
20:32:25 l2tp,debug,packet (M) Protocol-Version=0x01:00
20:32:25 l2tp,debug,packet (M) Framing-Capabilities=0x1
20:32:25 l2tp,debug,packet (M) Bearer-Capabilities=0x0
20:32:25 l2tp,debug,packet Firmware-Revision=0x1
20:32:25 l2tp,debug,packet (M) Host-Name="MikroTik"
20:32:25 l2tp,debug,packet Vendor-Name="MikroTik"
20:32:25 l2tp,debug,packet (M) Assigned-Tunnel-ID=1
20:32:25 l2tp,debug,packet (M) Receive-Window-Size=4
20:32:25 l2tp,debug,packet rcvd control message from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=0, ns=0, nr=1
20:32:25 l2tp,debug,packet (M) Message-Type=SCCRP
20:32:25 l2tp,debug,packet (M) Protocol-Version=0x01:00
20:32:25 l2tp,debug,packet (M) Framing-Capabilities=0x3
20:32:25 l2tp,debug,packet (M) Bearer-Capabilities=0x0
20:32:25 l2tp,debug,packet (M) Firmware-Revision=0x690
20:32:25 l2tp,debug,packet (M) Host-Name="fr14.nordvpn.com"
20:32:25 l2tp,debug,packet (M) Vendor-Name="xelerance.com"
20:32:25 l2tp,debug,packet (M) Assigned-Tunnel-ID=34438
20:32:25 l2tp,debug,packet (M) Receive-Window-Size=4
20:32:25 l2tp,debug tunnel 1 entering state: established
20:32:25 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=34438, session-id=0, ns=1, nr=1
20:32:25 l2tp,debug,packet (M) Message-Type=SCCCN
20:32:25 l2tp,debug session 1 entering state: wait-reply
20:32:25 l2tp,debug,packet rcvd control message (ack) from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=0, ns=0, nr=1
20:32:25 l2tp,debug,packet sent control message (ack) to PP.PP.PP.PP:1701 from MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=34438, session-id=0, ns=3, nr=1
20:32:25 l2tp,debug,packet rcvd control message (ack) from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=0, ns=1, nr=2
20:32:25 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=34438, session-id=0, ns=2, nr=1
20:32:25 l2tp,debug,packet (M) Message-Type=ICRQ
20:32:25 l2tp,debug,packet (M) Assigned-Session-ID=1
20:32:25 l2tp,debug,packet (M) Call-Serial-Number=0
20:32:25 l2tp,debug,packet (M) Bearer-Type=0x0
20:32:25 l2tp,debug,packet rcvd control message from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=1, ns=1, nr=3
20:32:25 l2tp,debug,packet (M) Message-Type=ICRP
20:32:25 l2tp,debug,packet (M) Assigned-Session-ID=39732
20:32:25 l2tp,debug session 1 entering state: established
20:32:25 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=34438, session-id=39732, ns=3, nr=2
20:32:25 l2tp,debug,packet (M) Message-Type=ICCN
20:32:25 l2tp,debug,packet (M) Framing-Type=0x1
20:32:25 l2tp,debug,packet (M) Tx-Connect-Speed-BPS=100000000
20:32:25 l2tp,debug,packet rcvd control message (ack) from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=0, ns=2, nr=3
20:32:25 l2tp,debug,packet rcvd control message (ack) from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=1, ns=2, nr=4
20:32:25 l2tp,ppp,debug l2tp-out1-adsl: LCP lowerup
20:32:25 l2tp,ppp,debug l2tp-out1-adsl: LCP open
20:32:25 l2tp,ppp,debug,packet l2tp-out1-adsl: sent LCP ConfReq id=0x1
20:32:25 l2tp,ppp,debug,packet <mru 1450>
20:32:25 l2tp,ppp,debug,packet <magic 0x29713c39>
20:32:25 l2tp,debug,packet rcvd control message from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=1, ns=2, nr=4
20:32:25 l2tp,debug,packet (M) Message-Type=CDN
20:32:25 l2tp,debug,packet (M) Result-Code=1
20:32:25 l2tp,debug,packet Error-Code=0
20:32:25 l2tp,debug,packet (M) Assigned-Session-ID=39732
20:32:25 l2tp,debug,packet sent control message (ack) to PP.PP.PP.PP:1701 from MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=34438, session-id=0, ns=4, nr=3
20:32:25 l2tp,debug session 1 entering state: stopping
20:32:25 l2tp,debug session 1 entering state: dead
==================================
I really can't figure out what's wrong, but from my I see there is no authentication phase in the L2TP connection, there should be a mschap exchange at least.
Here's the configuration :
/interface l2tp-client
add allow=chap,mschap2 connect-to=PP.PP.PP.PP ipsec-secret=******** keepalive-timeout=disabled name=l2tp-out1-adsl password=pass profile=nordvpn use-ipsec=yes user=username
/ppp profile
add name=nordvpn use-compression=yes use-encryption=yes use-mpls=no
I really would like to get it working !!
Already spent a lot of time on it, trying different parameters, read lot of forum page...
Thanks for your help !!
I'm running a CRS109-8G-1S-2HnD with ROS 6.38.5 Stable, and I'm not able to connect to my fellow VPN Provider.
Actually I tested lot of solution, but SSTP/OVPN version on this OS are not compatible with requested feature of my provider (eg : OVPN-TLS auth). PPTP seemed to be bugged on mikrotik last version so forgot too. Then, I decided to go for L2TP/IPSec-psk. But it doesn't work neither or I'm nearly to get it working :
The IPSEC tunnel is correctly established, so first part is OK, but the L2TP tunnel won't establish, see log hereunder :
PP.PP.PP.PP is my provider's public IP address
MM.MM.MM.MM is my public IP address
==========================
20:32:21 l2tp,ppp,info l2tp-out1-adsl: initializing...
20:32:21 l2tp,ppp,info l2tp-out1-adsl: connecting...
20:32:21 system,info device changed by admin
20:32:21 l2tp,debug tunnel 1 entering state: wait-ctl-reply
20:32:21 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from 0.0.0.0:1701
20:32:21 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
20:32:21 l2tp,debug,packet (M) Message-Type=SCCRQ
20:32:21 l2tp,debug,packet (M) Protocol-Version=0x01:00
20:32:21 l2tp,debug,packet (M) Framing-Capabilities=0x1
20:32:21 l2tp,debug,packet (M) Bearer-Capabilities=0x0
20:32:21 l2tp,debug,packet Firmware-Revision=0x1
20:32:21 l2tp,debug,packet (M) Host-Name="MikroTik"
20:32:21 l2tp,debug,packet Vendor-Name="MikroTik"
20:32:21 l2tp,debug,packet (M) Assigned-Tunnel-ID=1
20:32:21 l2tp,debug,packet (M) Receive-Window-Size=4
20:32:21 ipsec,info initiate new phase 1 (Identity Protection): MM.MM.MM.MM[500]<=>PP.PP.PP.PP[500]
20:32:22 ipsec,info ISAKMP-SA established MM.MM.MM.MM[500]-PP.PP.PP.PP[500] spi:432019bbc4367960:dd5c09db0d1881e7
20:32:22 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from 0.0.0.0:1701
20:32:22 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
20:32:22 l2tp,debug,packet (M) Message-Type=SCCRQ
20:32:22 l2tp,debug,packet (M) Protocol-Version=0x01:00
20:32:22 l2tp,debug,packet (M) Framing-Capabilities=0x1
20:32:22 l2tp,debug,packet (M) Bearer-Capabilities=0x0
20:32:22 l2tp,debug,packet Firmware-Revision=0x1
20:32:22 l2tp,debug,packet (M) Host-Name="MikroTik"
20:32:22 l2tp,debug,packet Vendor-Name="MikroTik"
20:32:22 l2tp,debug,packet (M) Assigned-Tunnel-ID=1
20:32:22 l2tp,debug,packet (M) Receive-Window-Size=4
20:32:23 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from 0.0.0.0:1701
20:32:23 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
20:32:23 l2tp,debug,packet (M) Message-Type=SCCRQ
20:32:23 l2tp,debug,packet (M) Protocol-Version=0x01:00
20:32:23 l2tp,debug,packet (M) Framing-Capabilities=0x1
20:32:23 l2tp,debug,packet (M) Bearer-Capabilities=0x0
20:32:23 l2tp,debug,packet Firmware-Revision=0x1
20:32:23 l2tp,debug,packet (M) Host-Name="MikroTik"
20:32:23 l2tp,debug,packet Vendor-Name="MikroTik"
20:32:23 l2tp,debug,packet (M) Assigned-Tunnel-ID=1
20:32:23 l2tp,debug,packet (M) Receive-Window-Size=4
20:32:25 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from 0.0.0.0:1701
20:32:25 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
20:32:25 l2tp,debug,packet (M) Message-Type=SCCRQ
20:32:25 l2tp,debug,packet (M) Protocol-Version=0x01:00
20:32:25 l2tp,debug,packet (M) Framing-Capabilities=0x1
20:32:25 l2tp,debug,packet (M) Bearer-Capabilities=0x0
20:32:25 l2tp,debug,packet Firmware-Revision=0x1
20:32:25 l2tp,debug,packet (M) Host-Name="MikroTik"
20:32:25 l2tp,debug,packet Vendor-Name="MikroTik"
20:32:25 l2tp,debug,packet (M) Assigned-Tunnel-ID=1
20:32:25 l2tp,debug,packet (M) Receive-Window-Size=4
20:32:25 l2tp,debug,packet rcvd control message from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=0, ns=0, nr=1
20:32:25 l2tp,debug,packet (M) Message-Type=SCCRP
20:32:25 l2tp,debug,packet (M) Protocol-Version=0x01:00
20:32:25 l2tp,debug,packet (M) Framing-Capabilities=0x3
20:32:25 l2tp,debug,packet (M) Bearer-Capabilities=0x0
20:32:25 l2tp,debug,packet (M) Firmware-Revision=0x690
20:32:25 l2tp,debug,packet (M) Host-Name="fr14.nordvpn.com"
20:32:25 l2tp,debug,packet (M) Vendor-Name="xelerance.com"
20:32:25 l2tp,debug,packet (M) Assigned-Tunnel-ID=34438
20:32:25 l2tp,debug,packet (M) Receive-Window-Size=4
20:32:25 l2tp,debug tunnel 1 entering state: established
20:32:25 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=34438, session-id=0, ns=1, nr=1
20:32:25 l2tp,debug,packet (M) Message-Type=SCCCN
20:32:25 l2tp,debug session 1 entering state: wait-reply
20:32:25 l2tp,debug,packet rcvd control message (ack) from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=0, ns=0, nr=1
20:32:25 l2tp,debug,packet sent control message (ack) to PP.PP.PP.PP:1701 from MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=34438, session-id=0, ns=3, nr=1
20:32:25 l2tp,debug,packet rcvd control message (ack) from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=0, ns=1, nr=2
20:32:25 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=34438, session-id=0, ns=2, nr=1
20:32:25 l2tp,debug,packet (M) Message-Type=ICRQ
20:32:25 l2tp,debug,packet (M) Assigned-Session-ID=1
20:32:25 l2tp,debug,packet (M) Call-Serial-Number=0
20:32:25 l2tp,debug,packet (M) Bearer-Type=0x0
20:32:25 l2tp,debug,packet rcvd control message from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=1, ns=1, nr=3
20:32:25 l2tp,debug,packet (M) Message-Type=ICRP
20:32:25 l2tp,debug,packet (M) Assigned-Session-ID=39732
20:32:25 l2tp,debug session 1 entering state: established
20:32:25 l2tp,debug,packet sent control message to PP.PP.PP.PP:1701 from MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=34438, session-id=39732, ns=3, nr=2
20:32:25 l2tp,debug,packet (M) Message-Type=ICCN
20:32:25 l2tp,debug,packet (M) Framing-Type=0x1
20:32:25 l2tp,debug,packet (M) Tx-Connect-Speed-BPS=100000000
20:32:25 l2tp,debug,packet rcvd control message (ack) from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=0, ns=2, nr=3
20:32:25 l2tp,debug,packet rcvd control message (ack) from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=1, ns=2, nr=4
20:32:25 l2tp,ppp,debug l2tp-out1-adsl: LCP lowerup
20:32:25 l2tp,ppp,debug l2tp-out1-adsl: LCP open
20:32:25 l2tp,ppp,debug,packet l2tp-out1-adsl: sent LCP ConfReq id=0x1
20:32:25 l2tp,ppp,debug,packet <mru 1450>
20:32:25 l2tp,ppp,debug,packet <magic 0x29713c39>
20:32:25 l2tp,debug,packet rcvd control message from PP.PP.PP.PP:1701 to MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=1, session-id=1, ns=2, nr=4
20:32:25 l2tp,debug,packet (M) Message-Type=CDN
20:32:25 l2tp,debug,packet (M) Result-Code=1
20:32:25 l2tp,debug,packet Error-Code=0
20:32:25 l2tp,debug,packet (M) Assigned-Session-ID=39732
20:32:25 l2tp,debug,packet sent control message (ack) to PP.PP.PP.PP:1701 from MM.MM.MM.MM:1701
20:32:25 l2tp,debug,packet tunnel-id=34438, session-id=0, ns=4, nr=3
20:32:25 l2tp,debug session 1 entering state: stopping
20:32:25 l2tp,debug session 1 entering state: dead
==================================
I really can't figure out what's wrong, but from my I see there is no authentication phase in the L2TP connection, there should be a mschap exchange at least.
Here's the configuration :
/interface l2tp-client
add allow=chap,mschap2 connect-to=PP.PP.PP.PP ipsec-secret=******** keepalive-timeout=disabled name=l2tp-out1-adsl password=pass profile=nordvpn use-ipsec=yes user=username
/ppp profile
add name=nordvpn use-compression=yes use-encryption=yes use-mpls=no
I really would like to get it working !!
Already spent a lot of time on it, trying different parameters, read lot of forum page...
Thanks for your help !!