Greetings guys,
I tried to get L2TP/IPSec working today with an android client. I have everything set up correctly I think, and it seems to be L2TP problem. Any help would be appreciated. Here is the config:
/interface l2tp-server server
set default-profile=L2TP enabled=yes
/ppp profile
add name=L2TP
/ppp secret
add local-address=10.0.31.1 name=tomas password=testpass profile=L2TP remote-address=10.0.31.33 service=l2tp
/ip ipsec proposal
set [ find default=yes ] enc-algorithms=3des,aes-128,aes-192,aes-256 lifetime=1h
/ip ipsec peer
add dpd-interval=15s dpd-maximum-failures=3 exchange-mode=main-l2tp \
generate-policy=yes hash-algorithm=sha1 secret=VPNpass \
send-initial-contact=no
Firewall is open for UDP500, UDP 1701, IPSec esp.
I have searched around and wasnt able to find an issue with the config. The IPSec seems to establish correctly with SAs and the dynamic generated policy. Any way I can troubleshoot this?
L2TP logs say:
15:00:22 l2tp,debug,packet sent control message to clientIP:35752
15:00:22 l2tp,debug,packet tunnel-id=27190, session-id=0, ns=0, nr=1
15:00:22 l2tp,debug,packet (M) Message-Type=SCCRP
15:00:22 l2tp,debug,packet (M) Protocol-Version=0x01:00
15:00:22 l2tp,debug,packet (M) Framing-Capabilities=0x1
15:00:22 l2tp,debug,packet (M) Bearer-Capabilities=0x0
15:00:22 l2tp,debug,packet Firmware-Revision=0x1
15:00:22 l2tp,debug,packet (M) Host-Name="host"
15:00:22 l2tp,debug,packet Vendor-Name="MikroTik"
15:00:22 l2tp,debug,packet (M) Assigned-Tunnel-ID=51
15:00:22 l2tp,debug,packet (M) Receive-Window-Size=4
15:00:26 l2tp,debug,packet sent control message to clientIP:35752
15:00:26 l2tp,debug,packet tunnel-id=27190, session-id=0, ns=0, nr=1
15:00:26 l2tp,debug,packet (M) Message-Type=SCCRP
15:00:26 l2tp,debug,packet (M) Protocol-Version=0x01:00
15:00:26 l2tp,debug,packet (M) Framing-Capabilities=0x1
15:00:26 l2tp,debug,packet (M) Bearer-Capabilities=0x0
15:00:26 l2tp,debug,packet Firmware-Revision=0x1
15:00:26 l2tp,debug,packet (M) Host-Name="host"
15:00:26 l2tp,debug,packet Vendor-Name="MikroTik"
15:00:26 l2tp,debug,packet (M) Assigned-Tunnel-ID=51
15:00:26 l2tp,debug,packet (M) Receive-Window-Size=4
15:00:34 l2tp,debug,packet sent control message to clientIP:35752
15:00:34 l2tp,debug,packet tunnel-id=27190, session-id=0, ns=0, nr=1
15:00:34 l2tp,debug,packet (M) Message-Type=SCCRP
15:00:34 l2tp,debug,packet (M) Protocol-Version=0x01:00
15:00:34 l2tp,debug,packet (M) Framing-Capabilities=0x1
15:00:34 l2tp,debug,packet (M) Bearer-Capabilities=0x0
15:00:34 l2tp,debug,packet Firmware-Revision=0x1
15:00:34 l2tp,debug,packet (M) Host-Name="host"
15:00:34 l2tp,debug,packet Vendor-Name="MikroTik"
15:00:34 l2tp,debug,packet (M) Assigned-Tunnel-ID=51
15:00:34 l2tp,debug,packet (M) Receive-Window-Size=4
15:00:42 l2tp,debug tunnel 51 received no replies, disconnecting
15:00:42 l2tp,debug tunnel 51 entering state: dead