On 10/05/2012 09:42, James Chapman wrote:
>>> Unfortunately, the above statement isn't true. I'm seeing the same
>>> problems when using the config file. Here's what I do:
>>> 1. Disconnect LNS (I remove the ethernet cable)
>>> 2. Start openl2tpd
>>> 3. Wait a couple of minutes (session status changes from WAITTUNNEL to
>>> WAITREPLY during that time
>>> 4. Reconnect LNS
>>> 5. After a while the tunnel enters state ESTABLISHED but the session
>>> remains in state WAITREPLY (as discussed before).
>>>
>>
>> I also tried this on an x86 machine (instead of a MIPS) using the
>> official binaries from openl2tp.org. The behaviour is exactly the same.
>
> There's definitely a bug here. Persist is broken if the session fails to
> come up when it is initially created. If the session does come up and
> then goes down later, it is reestablished correctly when the link comes
> back up.
>
> We'll work on a fix for the next release.
Thanks James. That's exactly the behaviour I'm seeing here. I'll be very
happy to test a fix/patch/workaround/whatever here.
Also, I notice that openl2tpd crashes when one deletes the session while
it is in that WAITREPLY state.
l2tp> session show session_name=peter tunnel_name=peter
Session 1355 on tunnel 53860:-
type: LAC Incoming Call, state: WAITREPLY
created at: May 10 10:38:45 2012
administrative name: peter
created by admin: YES
ppp user name: amazon
ppp user password: amazon
ppp interface name: l2tp-peter
data sequencing required: OFF
use data sequence numbers: OFF
trace flags: PROTOCOL FSM API AVP AVPHIDE AVPDATA FUNC XPRT DATA PPP
SYSTEM
framing types: SYNC ASYNC
bearer types: DIGITAL ANALOG
call serial number: 1
connect speed: 1000000
use ppp proxy: NO
last peer response information:
result code: 10, error code: 0
Peer configuration data:-
data sequencing required: OFF
framing types:
bearer types:
call serial number: 1
data rx packets: 0, rx bytes: 0, rx errors: 0
data tx packets: 0, tx bytes: 0, tx errors: 0
l2tp> session delete session_name=peter tunnel_name=peter
localhost: RPC: Timed out
Error at or near 'delete'
XPRT: tunl 53860: retry failure
FSM: CCE(53860) event XPRT_DOWN in state WAITCTLREPLY
FUNC: tunl 53860: starting cleanup timer
FSM: CCE(53860) state change: WAITCTLREPLY --> CLOSING
59629/1355: creating UNIX pppd context
tunl 53860: scheduling recreate of persistent tunnel
FUNC: tunl 53860 deleted
59629/1355: creating UNIX pppd context
FSM: tunl 53860: establish timeout
FSM: CCE(53860) event CLOSE_REQ in state CLOSING
59629/1355: creating UNIX pppd context
FSM: LAIC(59629/1355) event CLOSE_REQ in state WAITREPLY
AVP: tunl 59629: building CDN message, 3 AVPs
PROTO: tunl 59629/1355: sending CDN to peer 0/0
Program received signal SIGSEGV, Segmentation fault.
0x0805dd1e in l2tp_xprt_send ()
(gdb) bt
#0 0x0805dd1e in l2tp_xprt_send ()
#1 0x08055446 in l2tp_net_send ()
#2 0x08061924 in ?? ()
#3 0x08066231 in ?? ()
#4 0x08077d7a in usl_fsm_handle_event ()
#5 0x08064dda in ?? ()
#6 0x08066a0a in l2tp_session_delete_1_svc ()
#7 0x0806b3a4 in _l2tp_session_delete_1 ()
#8 0x0806a7da in l2tp_prog_1 ()
#9 0x002323a1 in svc_getreq_common () from /lib/i386-linux-gnu/libc.so.6
#10 0x00232088 in svc_getreqset () from /lib/i386-linux-gnu/libc.so.6
#11 0x080699c1 in ?? ()
#12 0x0807645a in usl_fd_poll ()
#13 0x0807743d in usl_main_loop ()
#14 0x080510c5 in main ()
(gdb)
Thanks for looking into that,
Peter
--
Peter Hertting
Apeo Consulting
6 Belvedere Lawn
Douglas Road
Cork, Ireland
Phone: +353 21 4295904
Mobile: +353 86 1596329
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openl2tp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openl2tp-users