Page 1 of 1

L2TP client and hAP : no connection

Posted: Fri Nov 09, 2018 11:03 am
by rikmikro56
Hi,
I've been using l2tp client connections on hEx routers without problem.

I recently tried the hAP modules and got stuck : l2tp client never connects to my server, 1.2.3.4.5 in my log below.
So what could be wrong ? I'm using exactly the SAME setup, the one working on hEx doesn't work on hAP ;-)
I checked the server, hEx clients are connected, computers too, so the problem doesn't come from the server I guess.

Any help please ?
Thanks in advance,


---------------------------------------------------------------------------------------------------------------------

Nov/09/2018 09:48:42 l2tp,ppp,info l2tp-out1: initializing...
Nov/09/2018 09:48:42 l2tp,ppp,info l2tp-out1: connecting...
Nov/09/2018 09:48:45 l2tp,debug tunnel 25 entering state: wait-ctl-reply
Nov/09/2018 09:48:45 l2tp,debug,packet sent control message to 1.2.3.4.5:1701 from 0.0.0.0:1701
Nov/09/2018 09:48:45 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Nov/09/2018 09:48:45 l2tp,debug,packet (M) Message-Type=SCCRQ
Nov/09/2018 09:48:45 l2tp,debug,packet (M) Protocol-Version=0x01:00
Nov/09/2018 09:48:45 l2tp,debug,packet (M) Framing-Capabilities=0x1
Nov/09/2018 09:48:45 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Nov/09/2018 09:48:45 l2tp,debug,packet Firmware-Revision=0x1
Nov/09/2018 09:48:45 l2tp,debug,packet (M) Host-Name="fatest"
Nov/09/2018 09:48:45 l2tp,debug,packet Vendor-Name="MikroTik"
Nov/09/2018 09:48:45 l2tp,debug,packet (M) Assigned-Tunnel-ID=25
Nov/09/2018 09:48:45 l2tp,debug,packet (M) Receive-Window-Size=4
Nov/09/2018 09:48:46 l2tp,debug,packet sent control message to 1.2.3.4.5:1701 from 0.0.0.0:1701
Nov/09/2018 09:48:46 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Nov/09/2018 09:48:46 l2tp,debug,packet (M) Message-Type=SCCRQ
Nov/09/2018 09:48:46 l2tp,debug,packet (M) Protocol-Version=0x01:00
Nov/09/2018 09:48:46 l2tp,debug,packet (M) Framing-Capabilities=0x1
Nov/09/2018 09:48:46 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Nov/09/2018 09:48:46 l2tp,debug,packet Firmware-Revision=0x1
Nov/09/2018 09:48:46 l2tp,debug,packet (M) Host-Name="fatest"
Nov/09/2018 09:48:46 l2tp,debug,packet Vendor-Name="MikroTik"
Nov/09/2018 09:48:46 l2tp,debug,packet (M) Assigned-Tunnel-ID=25
Nov/09/2018 09:48:46 l2tp,debug,packet (M) Receive-Window-Size=4
Nov/09/2018 09:48:47 l2tp,debug,packet sent control message to 1.2.3.4.5:1701 from 0.0.0.0:1701
Nov/09/2018 09:48:47 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Nov/09/2018 09:48:47 l2tp,debug,packet (M) Message-Type=SCCRQ
Nov/09/2018 09:48:47 l2tp,debug,packet (M) Protocol-Version=0x01:00
Nov/09/2018 09:48:47 l2tp,debug,packet (M) Framing-Capabilities=0x1
Nov/09/2018 09:48:47 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Nov/09/2018 09:48:47 l2tp,debug,packet Firmware-Revision=0x1
Nov/09/2018 09:48:47 l2tp,debug,packet (M) Host-Name="fatest"
Nov/09/2018 09:48:47 l2tp,debug,packet Vendor-Name="MikroTik"
Nov/09/2018 09:48:47 l2tp,debug,packet (M) Assigned-Tunnel-ID=25
Nov/09/2018 09:48:47 l2tp,debug,packet (M) Receive-Window-Size=4
Nov/09/2018 09:48:49 l2tp,debug,packet sent control message to 1.2.3.4.5:1701 from 0.0.0.0:1701
Nov/09/2018 09:48:49 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Nov/09/2018 09:48:49 l2tp,debug,packet (M) Message-Type=SCCRQ
Nov/09/2018 09:48:49 l2tp,debug,packet (M) Protocol-Version=0x01:00
Nov/09/2018 09:48:49 l2tp,debug,packet (M) Framing-Capabilities=0x1
Nov/09/2018 09:48:49 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Nov/09/2018 09:48:49 l2tp,debug,packet Firmware-Revision=0x1
Nov/09/2018 09:48:49 l2tp,debug,packet (M) Host-Name="fatest"
Nov/09/2018 09:48:49 l2tp,debug,packet Vendor-Name="MikroTik"
Nov/09/2018 09:48:49 l2tp,debug,packet (M) Assigned-Tunnel-ID=25
Nov/09/2018 09:48:49 l2tp,debug,packet (M) Receive-Window-Size=4
Nov/09/2018 09:48:53 l2tp,debug,packet sent control message to 1.2.3.4.5:1701 from 0.0.0.0:1701
Nov/09/2018 09:48:53 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Nov/09/2018 09:48:53 l2tp,debug,packet (M) Message-Type=SCCRQ
Nov/09/2018 09:48:53 l2tp,debug,packet (M) Protocol-Version=0x01:00
Nov/09/2018 09:48:53 l2tp,debug,packet (M) Framing-Capabilities=0x1
Nov/09/2018 09:48:53 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Nov/09/2018 09:48:53 l2tp,debug,packet Firmware-Revision=0x1
Nov/09/2018 09:48:53 l2tp,debug,packet (M) Host-Name="fatest"
Nov/09/2018 09:48:53 l2tp,debug,packet Vendor-Name="MikroTik"
Nov/09/2018 09:48:53 l2tp,debug,packet (M) Assigned-Tunnel-ID=25
Nov/09/2018 09:48:53 l2tp,debug,packet (M) Receive-Window-Size=4
Nov/09/2018 09:49:01 l2tp,debug,packet sent control message to 1.2.3.4.5:1701 from 0.0.0.0:1701
Nov/09/2018 09:49:01 l2tp,debug,packet tunnel-id=0, session-id=0, ns=0, nr=0
Nov/09/2018 09:49:01 l2tp,debug,packet (M) Message-Type=SCCRQ
Nov/09/2018 09:49:01 l2tp,debug,packet (M) Protocol-Version=0x01:00
Nov/09/2018 09:49:01 l2tp,debug,packet (M) Framing-Capabilities=0x1
Nov/09/2018 09:49:01 l2tp,debug,packet (M) Bearer-Capabilities=0x0
Nov/09/2018 09:49:01 l2tp,debug,packet Firmware-Revision=0x1
Nov/09/2018 09:49:01 l2tp,debug,packet (M) Host-Name="fatest"
Nov/09/2018 09:49:01 l2tp,debug,packet Vendor-Name="MikroTik"
Nov/09/2018 09:49:01 l2tp,debug,packet (M) Assigned-Tunnel-ID=25
Nov/09/2018 09:49:01 l2tp,debug,packet (M) Receive-Window-Size=4
Nov/09/2018 09:49:09 l2tp,debug tunnel 25 received no replies, disconnecting
Nov/09/2018 09:49:09 l2tp,debug tunnel 25 entering state: dead
Nov/09/2018 09:49:09 l2tp,debug session 1 entering state: dead
Nov/09/2018 09:49:09 l2tp,ppp,debug l2tp-out1: CCP close
Nov/09/2018 09:49:09 l2tp,ppp,debug l2tp-out1: BCP close
Nov/09/2018 09:49:09 l2tp,ppp,debug l2tp-out1: IPCP close
Nov/09/2018 09:49:09 l2tp,ppp,debug l2tp-out1: IPV6CP close
Nov/09/2018 09:49:09 l2tp,ppp,debug l2tp-out1: MPLSCP close
Nov/09/2018 09:49:09 l2tp,ppp,info l2tp-out1: terminating... - session closed
Nov/09/2018 09:49:09 l2tp,ppp,debug l2tp-out1: LCP lowerdown
Nov/09/2018 09:49:09 l2tp,ppp,debug l2tp-out1: LCP down event in initial state
Nov/09/2018 09:49:09 l2tp,ppp,info l2tp-out1: disconnected

Re: L2TP client and hAP : no connection

Posted: Fri Nov 09, 2018 11:37 am
by ianngrh
Hi,

As far as I know there is no difference configuration between HAP and HEX.
To help you troubleshoot you can do :
1. ping & traceroute to the vpn server from HAP. Is your HAP is properly connected or not.
2. Make sure the HAP and HEX does not connected from the same IP public (If your HAP & HEX is behind nat)
3. Try to disconnect your HEX from vpn server and then try connecting HAP to the server. Is it works or not?
4. Could you please share your HAP & server configuration here?

Re: L2TP client and hAP : no connection

Posted: Fri Nov 09, 2018 2:33 pm
by rikmikro56
found it : same public IP !
So now I have to find a solution to have :

. one L2TP debian hosted server
. one single public IP
. 2 or more L2TP clients