[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Minimal L2TP for testing



Hello.

I want to install minimal configuration of L2TP to connect remote mikrotik to L2TP server on Debian. No IPsec, no pass, just minimal to establish a connection for a test.

I use apt-get install xl2tpd ppp

The configuration is:
/etc/xl2tp.conf:
[global]
port = 1701
access control = no
[lns default]
ip range = 10.10.10.2-10.10.10.254
local ip = 10.10.1.75
require authentication = no
name = LinuxVPNserver
ppp debug = yes
pppoptfile = /etc/xl2tpd/options.xl2tpd

/etc/xl2tpd/options.xl2tpd:
noccp
auth
mtu 1410
mru 1410
nodefaultroute
proxyarp
silent
debug
ms-dns 8.8.8.8

I use iptables to allow only for an IP all ports to connect.
But connection could not be established. The log says:
xl2tpd[543]: setsockopt recvref[30]: Protocol not available
xl2tpd[543]: This binary does not support kernel L2TP.
xl2tpd[543]: xl2tpd version xl2tpd-1.3.1 started on srv75 PID:543
xl2tpd[543]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[543]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[543]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[543]: Forked again by Xelerance (www.xelerance.com) (C) 2006
xl2tpd[543]: Listening on IP address 0.0.0.0, port 1701
xl2tpd[543]: control_finish: Peer requested tunnel 19 twice, ignoring second one.
xl2tpd[543]: control_finish: Peer requested tunnel 19 twice, ignoring second one.
xl2tpd[543]: control_finish: Peer requested tunnel 19 twice, ignoring second one.
xl2tpd[543]: Maximum retries exceeded for tunnel 10144.  Closing.
xl2tpd[543]: Connection 19 closed to X.X.X.X, port 1701 (Timeout)
xl2tpd[543]: control_finish: Peer requested tunnel 19 twice, ignoring second one.
xl2tpd[543]: Unable to deliver closing message for tunnel 10144. Destroying anyway.
xl2tpd[543]: Maximum retries exceeded for tunnel 20463.  Closing.
xl2tpd[543]: Connection 19 closed to X.X.X.X, port 1701 (Timeout)
xl2tpd[543]: control_finish: Peer requested tunnel 20 twice, ignoring second one.
xl2tpd[543]: control_finish: Peer requested tunnel 20 twice, ignoring second one.
xl2tpd[543]: control_finish: Peer requested tunnel 20 twice, ignoring second one.
xl2tpd[543]: Unable to deliver closing message for tunnel 20463. Destroying anyway.
xl2tpd[543]: Maximum retries exceeded for tunnel 42022.  Closing.
xl2tpd[543]: Connection 20 closed to X.X.X.X, port 1701 (Timeout)
xl2tpd[543]: control_finish: Peer requested tunnel 20 twice, ignoring second one.
xl2tpd[543]: Unable to deliver closing message for tunnel 42022. Destroying anyway.
xl2tpd[543]: Maximum retries exceeded for tunnel 28452.  Closing.
xl2tpd[543]: Connection 20 closed to X.X.X.X, port 1701 (Timeout)
xl2tpd[543]: Unable to deliver closing message for tunnel 28452. Destroying anyway.
xl2tpd[543]: death_handler: Fatal signal 2 received

On the Mikrotik the logs repeats:
initializing
connecting
terminating
disconnected


Where is my fault. Can someone give me a hint?


Reply to: