Modify

Opened 5 years ago

Closed 3 years ago

#12405 closed defect (wontfix)

using openl2tpd-mini , ppp0 will disappear after 2 minutes, ppp died

Reported by: ayaka Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Attitude Adjustment 12.09 Beta
Keywords: ppp openl2tp Cc:

Description

I use openl2tp-mini at TL-WR841N(openwrt r33312), ppp0 will disappear after 2 minutes
When I use the same openl2tpd.conf at debian, it can work well

Here is /etc/openl2tpd.conf
<code>ppp profile modify profile_name=default \

mtu=1460 auth_eap=no auth_mschapv1=no auth_mschapv2=no

tunnel profile modify profile_name=default \

our_udp_port=1701

tunnel create tunnel_name=chinanet_vpn dest_ipaddr=dxvpn.xxx.edu.cn \

persist=yes

session create tunnel_name=chinanet_vpn \

session_name=chinanet_vpn \
user_name="10000030250" \
user_password="passwd"

system modify
</code>

Here is /etc/ppp/options
<code>debug
#logfile /dev/null
logfile /tmp/ppp.log
noipdefault
noaccomp
nopcomp
noccp
nocrtscts
lock
maxfail 0
lcp-echo-failure 80
lcp-echo-interval 30
replacedefaultroute
noauth
proxyarp
ipcp-accept-local</code>

The log of ppp
<code>Using interface ppp0
Connect: ppp0 <-->
Overriding mtu 1500 to 1460
PPPoL2TP options: tid 30274 sid 29983 debugmask 15
Overriding mru 1500 to mtu value 1460
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xfaa1d318>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xfaa1d318>]
rcvd [LCP ConfReq id=0x1 <mru 1492> <auth chap MD5> <magic 0x698e>]
sent [LCP ConfAck id=0x1 <mru 1492> <auth chap MD5> <magic 0x698e>]
PPPoL2TP options: tid 30274 sid 29983 debugmask 15
Overriding mru 1500 to mtu value 1460
sent [LCP EchoReq id=0x0 magic=0xfaa1d318]
rcvd [CHAP Challenge id=0x1 <f1ff96a976efb37774ce6a561e615fbe>, name = ""]
sent [CHAP Response id=0x1 <fbae1f76beb3de1ecf54e8b71d19979f>, name = "10000030250"]
rcvd [LCP EchoRep id=0x0 magic=0x698e]
rcvd [CHAP Success id=0x1 "Authentication success,Welcome!"]
CHAP authentication succeeded: Authentication success,Welcome!
CHAP authentication succeeded
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x0 <addr 27.154.136.1>]
sent [IPCP ConfAck id=0x0 <addr 27.154.136.1>]
rcvd [IPCP ConfNak id=0x1 <addr 27.154.136.6>]
sent [IPCP ConfReq id=0x2 <addr 27.154.136.6>]
rcvd [IPCP ConfAck id=0x2 <addr 27.154.136.6>]
local IP address 27.154.136.6
remote IP address 27.154.136.1
rcvd [LCP EchoReq id=0x1 magic=0x698e]
sent [LCP EchoRep id=0x1 magic=0xfaa1d318]
sent [LCP EchoReq id=0x1 magic=0xfaa1d318]
rcvd [LCP EchoRep id=0x1 magic=0x698e]
rcvd [LCP EchoReq id=0x2 magic=0x698e]
sent [LCP EchoRep id=0x2 magic=0xfaa1d318]
rcvd [LCP EchoReq id=0x3 magic=0x698e]
sent [LCP EchoRep id=0x3 magic=0xfaa1d318]
sent [LCP EchoReq id=0x2 magic=0xfaa1d318]
rcvd [LCP EchoRep id=0x2 magic=0x698e]
rcvd [LCP EchoReq id=0x4 magic=0x698e]
sent [LCP EchoRep id=0x4 magic=0xfaa1d318]
sent [LCP EchoReq id=0x3 magic=0xfaa1d318]
rcvd [LCP EchoRep id=0x3 magic=0x698e]
rcvd [LCP EchoReq id=0x5 magic=0x698e]
sent [LCP EchoRep id=0x5 magic=0xfaa1d318]
Terminating on signal 15
Connect time 2.0 minutes.
Sent 0 bytes, received 41000 bytes.
Overriding mtu 1500 to 1460
PPPoL2TP options: tid 30274 sid 29983 debugmask 15
Overriding mru 1500 to mtu value 1460
sent [LCP TermReq id=0x2 "User request"]
rcvd [LCP TermAck id=0x2]
Connection terminated.
</code>

The output of openl2tp -f -D
<code>root@WRXXX:~# openl2tpd -D -f
Start, trace_flags=00000000 (debug enabled)
OpenL2TP V1.8, (c) Copyright 2004-2010 Katalix Systems Ltd.
Loading plugin /usr/lib/openl2tp/ppp_unix.so, version V1.5
Using config file: /etc/openl2tpd.conf
FUNC: tunl 30274: allocated context using profile 'default'
FSM: CCE(30274) event OPEN_REQ in state IDLE
AVP: tunl 30274: building SCCRQ message, 9 AVPs
PROTO: tunl 30274: sending SCCRQ
XPRT: tunl 30274: queuing tx packet, type 1, len 128, ns/nr 0/0
XPRT: tunl 30274: update ns to 1
XPRT: tunl 30274: adding packet to ackq, type 1, len 128, ns/nr 0/0
DATA: TX: tunl 30274/0: send 128 bytes to peer 10.10.10.1, packet ns/nr 0/0 type 1, retry 0
FSM: CCE(30274) state change: IDLE --> WAITCTLREPLY
FUNC: tunl 30274 created
FSM: LAIC(30274/29983) event INCALL_IND in state IDLE
PROTO: tunl 30274/29983: waiting for tunnel up
FSM: LAIC(30274/29983) state change: IDLE --> WAITTUNNEL
30274/29983: creating UNIX pppd context
30274/29983: using ppp profile 'default'
XPRT: RX: tunl 30274/0: len=78 ns/nr=0/1, our ns/nr=1/0, peer ns/nr=0/0
XPRT: tunl 30274: peer ns/nr is 0/1
XPRT: tunl 30274: pkt 0/0 is acked by nr 1
DATA: RX: tunl 30274/0: rcv 78 bytes from peer 10.10.10.1, packet ns/nr 0/1 type 0
XPRT: tunl 30274: update nr from 0 to 1
AVP: tunl 30274: SCCRP message decode of 58 bytes started
AVPDATA: PROTOCOL_VERSION: ver=1 rev=0
AVPDATA: FRAMING_CAP: cap=3
AVPDATA: HOST_NAME: name=xxx_vpdn
AVPDATA: TUNNEL_ID: id=6869
AVPDATA: BEARER_CAP: cap=3
AVPDATA: RX_WINDOW_SIZE: size=10
PROTO: tunl 30274: SCCRP received from peer 6869
FSM: CCE(30274) event SCCRP_ACCEPT in state WAITCTLREPLY
AVP: tunl 30274: building SCCCN message, 1 AVPs
PROTO: tunl 30274: sending SCCCN to peer 6869
XPRT: tunl 30274: queuing tx packet, type 3, len 20, ns/nr 1/1
XPRT: tunl 30274: update ns to 2
XPRT: tunl 30274: adding packet to ackq, type 3, len 20, ns/nr 1/1
DATA: TX: tunl 30274/0: send 20 bytes to peer 10.10.10.1, packet ns/nr 1/1 type 3, retry 0
FUNC: tunl 30274 up
FSM: CCE(30274) state change: WAITCTLREPLY --> ESTABLISHED
FSM: LAIC(30274/29983) event TUNNEL_OPEN_IND in state WAITTUNNEL
AVP: tunl 30274: building ICRQ message, 4 AVPs
PROTO: tunl 30274/0: sending ICRQ to peer 6869/0
XPRT: tunl 30274: queuing tx packet, type 10, len 48, ns/nr 2/1
DATA: TX: tunl 30274/0: send 48 bytes to peer 10.10.10.1, packet ns/nr 2/1 type 10, retry 0
FSM: LAIC(30274/29983) state change: WAITTUNNEL --> WAITREPLY
XPRT: RX: tunl 30274/0: len=12 ns/nr=1/2, our ns/nr=3/1, peer ns/nr=0/1
XPRT: tunl 30274: zlb ack received: ns/nr=1/2
XPRT: tunl 30274: peer ns/nr is 1/2
XPRT: tunl 30274: pkt 1/1 is acked by nr 2
XPRT: RX: tunl 30274/29983: len=28 ns/nr=1/3, our ns/nr=3/1, peer ns/nr=1/2
XPRT: tunl 30274: peer ns/nr is 1/3
XPRT: tunl 30274: pkt 2/1 is acked by nr 3
DATA: RX: tunl 30274/29983: rcv 28 bytes from peer 10.10.10.1, packet ns/nr 1/3 type 0
XPRT: tunl 30274: update nr from 1 to 2
AVP: tunl 30274: ICRP message decode of 8 bytes started
AVPDATA: SESSION_ID: id=23167
PROTO: tunl 30274/29983: ICRP received from peer 6869
FSM: LAIC(30274/29983) event ICRP_ACCEPT in state WAITREPLY
AVP: tunl 30274: building ICCN message, 3 AVPs
PROTO: tunl 30274/29983: sending ICCN to peer 6869/23167
XPRT: tunl 30274: queuing tx packet, type 12, len 40, ns/nr 3/2
XPRT: tunl 30274: update ns to 4
XPRT: tunl 30274: adding packet to ackq, type 12, len 40, ns/nr 3/2
DATA: TX: tunl 30274/23167: send 40 bytes to peer 10.10.10.1, packet ns/nr 3/2 type 12, retry 0
30274/29983: starting UNIX pppd
sess 30274/29983: spawned pppd pid=2045
FSM: LAIC(30274/29983) state change: WAITREPLY --> ESTABLISHED
XPRT: RX: tunl 30274/0: len=12 ns/nr=2/4, our ns/nr=4/2, peer ns/nr=1/3
XPRT: tunl 30274: zlb ack received: ns/nr=2/4
XPRT: tunl 30274: peer ns/nr is 2/4
XPRT: tunl 30274: pkt 3/2 is acked by nr 4
sess 30274/29983: pppd debug kdebug 7 mtu 1460 noipdefault sync refuse-eap refuse-mschap-v2 refuse-mschap nodetach user 10000030250 local noauth noaccomp nopcomp nobsdcomp nodeflate nopredictor1 novj novjccomp noendpoint nomp noproxyarp plugin pppol2tp.so pppol2tp 15 pppol2tp_tunnel_id 30274 pppol2tp_session_id 29983 pppol2tp_debug_mask 15
XPRT: tunl 30274: send zlb ack, ns/nr=4/2
XPRT: RX: tunl 30274/0: len=20 ns/nr=2/4, our ns/nr=4/2, peer ns/nr=2/4
XPRT: tunl 30274: peer ns/nr is 2/4
DATA: RX: tunl 30274/0: rcv 20 bytes from peer 10.10.10.1, packet ns/nr 2/4 type 0
XPRT: tunl 30274: update nr from 2 to 3
AVP: tunl 30274: HELLO message decode of 0 bytes started
PROTO: tunl 30274: HELLO received from peer 6869
XPRT: tunl 30274: send zlb ack, ns/nr=4/3
XPRT: RX: tunl 30274/0: len=20 ns/nr=3/4, our ns/nr=4/3, peer ns/nr=2/4
XPRT: tunl 30274: peer ns/nr is 3/4
DATA: RX: tunl 30274/0: rcv 20 bytes from peer 10.10.10.1, packet ns/nr 3/4 type 0
XPRT: tunl 30274: update nr from 3 to 4
AVP: tunl 30274: HELLO message decode of 0 bytes started
PROTO: tunl 30274: HELLO received from peer 6869
30274/29983: ppp setup timeout
30274/29983: stopping unix pppd pid 2045
FSM: LAIC(30274/29983) event CLOSE_REQ in state ESTABLISHED
AVP: tunl 30274: building CDN message, 3 AVPs
PROTO: tunl 30274/52428: sending CDN to peer 6869/23167
XPRT: tunl 30274: queuing tx packet, type 14, len 36, ns/nr 4/4
XPRT: tunl 30274: update ns to 5
XPRT: tunl 30274: adding packet to ackq, type 14, len 36, ns/nr 4/4
DATA: TX: tunl 30274/23167: send 36 bytes to peer 10.10.10.1, packet ns/nr 4/4 type 14, retry 0
30274/29983: cleaning UNIX pppd context
FUNC: tunl 30274/29983: holding locally created session in persistent tunnel for retry
FSM: LAIC(30274/29983) state change: ESTABLISHED --> IDLE
XPRT: RX: tunl 30274/0: len=12 ns/nr=4/5, our ns/nr=5/4, peer ns/nr=3/4
XPRT: tunl 30274: zlb ack received: ns/nr=4/5
XPRT: tunl 30274: peer ns/nr is 4/5
XPRT: tunl 30274: pkt 4/4 is acked by nr 5
CExiting
Cleaning up before exiting
L2TP: tunl 30274/29983: free when use_count=2
tunl 30274: free when use_count=3
Unloading plugin /usr/lib/openl2tp/ppp_unix.so
</code>

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by anonymous

I find it is pppd's problem, becuase when I use xl2tpd which can't work at all, but the same config works in state, and in log of AA, it ppp died.It become more sereve,

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:3 Changed 3 years ago by jogo

  • Resolution set to wontfix
  • Status changed from new to closed

Openl2tp is unmaintained. No changes will be made to it until it is submitted to github and maintained by somebody.
See https://github.com/openwrt/packages/blob/master/CONTRIBUTING.md for details.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.