[Openswan Users] malloc 0 bytes and tunnel not found

Paul Wouters paul at xelerance.com
Mon Sep 15 11:07:46 EDT 2008


On Mon, 15 Sep 2008, Heiko --- wrote:

> Well, I hope that xl2tpd is configured correctly:
>
> [global]
> listen-addr = 192.168.77.41
> port = 1701
>
> [lns default]
> ip range = 192.168.77.10-192.168.77.11
> local ip = 192.168.77.42

I am not sure if you can work properly behind a port forward, and also hand
out IP addresses. I've never tried it, though I guess it might work.

> refuse pap = yes
> require authentication = yes
> name = LinuxVPNserver
> ppp debug = yes
> pppoptfile = /etc/ppp/options.xl2tpd
> length bit = yes

You can add "debug tunnel=yes" to get some more logging.

> And the options.xl2tpd:

Looks ok.

> I also did ifconfig eth0 mtu 1472
> xl2tpd first tells that a connection is established but then it can't find the tunnel.
>
> xl2tpd[13541]: get_call: allocating new tunnel for host 192.168.79.51, port 1701.
> xl2tpd[13541]: control_finish: Peer requested tunnel 18 twice, ignoring second one.
> xl2tpd[13541]: build_fdset: closing down tunnel 49642
> xl2tpd[13541]: Connection established to 192.168.79.51, 1701.  Local: 36735, Remote: 18 (ref=0/0).  LNS session is 'default'

What is in your /etc/ppp/chap-secrets? Something like:

username	*	"secret"	192.168.77.10
*		username "secret"	192.168.77.10

Paul


More information about the Users mailing list