[Openswan Users] malloc 0 bytes and tunnel not found

Heiko --- tomtegubbar99 at yahoo.de
Mon Sep 15 09:25:39 EDT 2008


Hello Paul,



>> I'm trying to build something like this:
>> 
>> XP-Client(192.168.79.51)  ------  OpenVPN(192.168.77.41)

>I take it you mean openswan, not openvpn.....

Of course, sorry :-)

>In the logs I see:

>    pluto[6540]: "L2TP-PSK"[6] 192.168.79.51 #12: STATE_QUICK_R2: IPsec SA established tunnel mode {ESP=>0x643da064
<0x03c75866 xfrm=3DES_0-HMAC_MD5 NATOA=<invalid> NATD=<invalid>:500 DPD=enabled}

> So openswan thinks the connection is up. Are you sure xl2tpd is correctly
> configured? Did you set the mtu to the external interface to 1472? Did you
> see the pppd mtu to 1200?

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
require chap = yes
refuse pap = yes
require authentication = yes
name = LinuxVPNserver
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes

And the options.xl2tpd:

ipcp-accept-local
ipcp-accept-remote
ms-dns 192.168.77.41
ms-wins 192.168.77.41
noccp
auth
crtscts
idle 1800
mtu 1200
mru 1200
nodefaultroute
debug
lock
proxyarp
connect-delay 5000
+mschap-v2
nologfd

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'
xl2tpd[13541]: control_finish: Connection closed to 192.168.79.51, port 1701 (), Local: 36735, Remote: 18
xl2tpd[13541]: build_fdset: closing down tunnel 36735
xl2tpd[13541]: Can not find tunnel 36735 (refhim=0)
xl2tpd[13541]: network_thread: unable to find call or tunnel to handle packet.  call = 8548, tunnel = 36735 Dumping.

Are there more things I should look at?
Greetings, Heiko


__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. 
http://mail.yahoo.com 


More information about the Users mailing list