LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-29-2011, 02:27 PM   #1
daotiansi
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
Question xl2tpd gives errors and can't connect


I'm trying to connect to a l2tp vpn service that uses L2TP without IPSEC. The server works well while I've used windows xp dial software to connect successful. However, when I installed and configured xl2tpd, I don't know how to make it work.

The configure file as below,

#xl2tpd.conf:
[lac vpdn]
lns = 60.190.129.52
require chap = yes
refuse pap = yes
require authentication = yes
; Name should be the same as the username in the PPP authentication!
name = dcyjx
ppp debug = yes
pppoptfile = /etc/ppp/options.l2tpd.client
length bit = yes


vpdn.l2tpd:
ipcp-accept-local
ipcp-accept-remote
refuse-eap
noccp
noauth
crtscts
idle 1800
mtu 1410
mru 1410
nodefaultroute
debug
lock
#proxyarp
connect-delay 5000

The log says the following:

Jul 30 14:04:25 localhost xl2tpd[8901]: setsockopt recvref[22]: Protocol not available
Jul 30 14:04:25 localhost xl2tpd[8901]: This binary does not support kernel L2TP.
Jul 30 14:04:25 localhost xl2tpd[8902]: xl2tpd version xl2tpd-1.2.6 started on localhost.localdomain PID:8902
Jul 30 14:04:25 localhost xl2tpd[8902]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
Jul 30 14:04:25 localhost xl2tpd[8902]: Forked by Scott Balmos and David Stipp, (C) 2001
Jul 30 14:04:25 localhost xl2tpd[8902]: Inherited by Jeff McAdams, (C) 2002
Jul 30 14:04:25 localhost xl2tpd[8902]: Forked again by Xelerance (www.xelerance.com) (C) 2006
Jul 30 14:04:25 localhost xl2tpd[8902]: Listening on IP address 0.0.0.0, port 1701
Jul 30 14:04:46 localhost xl2tpd[8902]: Connecting to host 60.190.129.52, port 1701
Jul 30 14:04:46 localhost xl2tpd[8902]: Connection established to 60.190.129.52, 1701. Local: 31891, Remote: 9070 (ref=0/0).
Jul 30 14:04:46 localhost xl2tpd[8902]: Calling on tunnel 31891
Jul 30 14:04:46 localhost xl2tpd[8902]: Call established with 60.190.129.52, Local: 54766, Remote: 32785, Serial: 1 (ref=0/0)
Jul 30 14:04:46 localhost pppd[8905]: pppd 2.4.4 started by root, uid 0
Jul 30 14:04:46 localhost pppd[8905]: Using interface ppp0
Jul 30 14:04:46 localhost pppd[8905]: Connect: ppp0 <--> /dev/pts/5
Jul 30 14:04:46 localhost xl2tpd[8902]: control_finish: Connection closed to 60.190.129.52, serial 1 ()
Jul 30 14:05:18 localhost xl2tpd[8902]: Calling on tunnel 31891
Jul 30 14:05:18 localhost xl2tpd[8902]: Call established with 60.190.129.52, Local: 8575, Remote: 30332, Serial: 2 (ref=0/0)

Could someone help me out?
Let me know what more info is needed.
I'm using redhat rhel 5

Last edited by daotiansi; 07-30-2011 at 01:07 AM.
 
Old 07-29-2011, 07:32 PM   #2
daotiansi
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Can anyone help me ?
It has troubled me for so long!
 
Old 07-30-2011, 01:02 AM   #3
daotiansi
LQ Newbie
 
Registered: Jul 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Today, I use the debug command to check the problem, and it seems that there is something wrong with my baud rate. However, I don't know how to fix it, can someone help me ?

debug info in my server:
[root@localhost aaa]# /usr/sbin/l2tpd -D
This binary does not support kernel L2TP.
l2tpd version 0.69 started on localhost.localdomain PID:10319
Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
Forked by Scott Balmos and David Stipp, (C) 2001
Inhereted by Jeff McAdams, (C) 2002
Linux version 2.6.18-53.el5 on a i686, listening on IP address 0.0.0.0, port 1701
ourtid = 36250, entropy_buf = 8d9a
check_control: control, cid = 0, Ns = 0, Nr = 0
handle_avps: handling avp's for tunnel 36250, call 0
message_type_avp: message type 1 (Start-Control-Connection-Request)
protocol_version_avp: peer is using version 1, revision 0.
framing_caps_avp: supported peer frames: async sync
bearer_caps_avp: supported peer bearers:
firmware_rev_avp: peer reports firmware version 1680 (0x0690)
hostname_avp: peer reports hostname 'localhost.localdomain'
vendor_avp: peer reports vendor 'xelerance.com'
assigned_tunnel_avp: using peer's tunnel 49517
receive_window_size_avp: peer wants RWS of 4. Will use flow control.
check_control: control, cid = 0, Ns = 1, Nr = 1
handle_avps: handling avp's for tunnel 36250, call 0
message_type_avp: message type 3 (Start-Control-Connection-Connected)
control_finish: Connection established to 60.190.129.51, 1701. Local: 36250, Remote: 49517. LNS session is 'default'
check_control: control, cid = 0, Ns = 2, Nr = 1
handle_avps: handling avp's for tunnel 36250, call 0
message_type_avp: message type 10 (Incoming-Call-Request)
message_type_avp: new incoming call
ourcid = 51788, entropy_buf = ca4c
assigned_call_avp: using peer's call 56350
call_serno_avp: serial number is 4
bearer_type_avp: peer bears:digital
check_control: control, cid = 56350, Ns = 3, Nr = 2
handle_avps: handling avp's for tunnel 36250, call 51788
message_type_avp: message type 12 (Incoming-Call-Connected)
tx_speed_avp: transmit baud rate is 0
frame_type_avp: peer uses:sync frames
rx_speed_avp: receive baud rate is 0
control_finish: Peer did not specify transmit speed
call_close: Call 51788 to 60.190.129.51 disconnected

debug info in my client:
[root@localhost dcyjx]# /usr/sbin/xl2tpd -D &
[1] 8865
[root@localhost dcyjx]# xl2tpd[8865]: parse_config: lac context descriptor vpdn
xl2tpd[8865]: parse_config: field is lns, value is 60.190.129.52
xl2tpd[8865]: set_lns: setting LNS to '60.190.129.52'
xl2tpd[8865]: parse_config: field is require chap, value is yes
xl2tpd[8865]: set_require chap: require chap flag to 'yes'
xl2tpd[8865]: parse_config: field is refuse pap, value is yes
xl2tpd[8865]: set_refuse pap: refuse pap flag to 'yes'
xl2tpd[8865]: parse_config: field is require authentication, value is yes
xl2tpd[8865]: set_require authentication: require authentication flag to 'yes'
xl2tpd[8865]: parse_config: field is name, value is dcyjx
xl2tpd[8865]: set_name: name flag to 'dcyjx'
xl2tpd[8865]: parse_config: field is ppp debug, value is yes
xl2tpd[8865]: set_ppp debug: ppp debug flag to 'yes'
xl2tpd[8865]: parse_config: field is pppoptfile, value is /etc/ppp/options.l2tpd.client
xl2tpd[8865]: set_pppoptfile: pppoptfile flag to '/etc/ppp/options.l2tpd.client'
xl2tpd[8865]: parse_config: field is length bit, value is yes
xl2tpd[8865]: set_length bit: length bit flag to 'yes'
xl2tpd[8865]: setsockopt recvref[22]: Protocol not available
xl2tpd[8865]: This binary does not support kernel L2TP.
xl2tpd[8865]: xl2tpd version xl2tpd-1.2.6 started on localhost.localdomain PID:8865
xl2tpd[8865]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[8865]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[8865]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[8865]: Forked again by Xelerance (www.xelerance.com) (C) 2006
xl2tpd[8865]: Listening on IP address 0.0.0.0, port 1701

[root@localhost dcyjx]# echo "c vpdn" > /var/run/xl2tpd/l2tp-control
[root@localhost dcyjx]# xl2tpd[8865]: do_control: Got message c vpdn (6 bytes long)
xl2tpd[8865]: ourtid = 43333, entropy_buf = a945
xl2tpd[8865]: Connecting to host 60.190.129.52, port 1701
xl2tpd[8865]: trying to send control packet to 43333
xl2tpd[8865]: control_xmit: Scheduling and transmitting packet 0
xl2tpd[8865]: check_control: control, cid = 0, Ns = 0, Nr = 1
xl2tpd[8865]: trying to send control packet to 43333
xl2tpd[8865]: control_xmit: Scheduling and transmitting packet 1
xl2tpd[8865]: control_finish: scheduling initial HELLO on 43333
xl2tpd[8865]: Connection established to 60.190.129.52, 1701. Local: 43333, Remote: 64277 (ref=0/0).
xl2tpd[8865]: ourcid = 1671, entropy_buf = 687
xl2tpd[8865]: Calling on tunnel 43333
xl2tpd[8865]: trying to send control packet to 43333
xl2tpd[8865]: control_xmit: Scheduling and transmitting packet 2
xl2tpd[8865]: check_control: control, cid = 0, Ns = 1, Nr = 2
xl2tpd[8865]: handle_packet: control ZLB received
xl2tpd[8865]: check_control: control, cid = 0, Ns = 1, Nr = 3
xl2tpd[8865]: Call established with 60.190.129.52, Local: 1671, Remote: 38090, Serial: 1 (ref=0/0)
xl2tpd[8865]: trying to send control packet to 43333
xl2tpd[8865]: control_xmit: Scheduling and transmitting packet 3
xl2tpd[8865]: start_pppd: I'm running:
xl2tpd[8865]: "/usr/sbin/pppd"
xl2tpd[8865]: "passive"
xl2tpd[8865]: "nodetach"
xl2tpd[8865]: ":"
xl2tpd[8865]: "refuse-pap"
xl2tpd[8865]: "auth"
xl2tpd[8865]: "require-chap"
xl2tpd[8865]: "name"
xl2tpd[8865]: "dcyjx"
xl2tpd[8865]: "debug"
xl2tpd[8865]: "file"
xl2tpd[8865]: "/etc/ppp/options.l2tpd.client"
xl2tpd[8865]: "/dev/pts/5"
xl2tpd[8865]: check_control: control, cid = 0, Ns = 2, Nr = 3
xl2tpd[8865]: handle_packet: control ZLB received
xl2tpd[8865]: check_control: control, cid = 38090, Ns = 2, Nr = 4
xl2tpd[8865]: handle_packet: control ZLB received
xl2tpd[8865]: check_control: control, cid = 38090, Ns = 2, Nr = 4
xl2tpd[8865]: control_finish: Connection closed to 60.190.129.52, serial 1 ()
xl2tpd[8865]: control_zlb: sending control ZLB on tunnel 64277
xl2tpd[8865]: call_close: Actually closing call 1671
xl2tpd[8865]: Terminating pppd: sending KILL signal to pid 8866
xl2tpd[8865]: trying to send control packet to 43333
xl2tpd[8865]: control_xmit: Tossing packet 0
xl2tpd[8865]: trying to send control packet to 43333
xl2tpd[8865]: control_xmit: Tossing packet 1
xl2tpd[8865]: trying to send control packet to 43333
xl2tpd[8865]: control_xmit: Tossing packet 2
xl2tpd[8865]: trying to send control packet to 43333
xl2tpd[8865]: control_xmit: Tossing packet 3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XL2TPD over IPSEC on Debian with OS X / iPhone clients thePiet Linux - Networking 1 11-01-2013 04:19 AM
Problem while disconnecting in xl2tpd neerajnayak Linux - Newbie 0 01-04-2011 12:40 AM
xl2tpd gives errors and disconnects garm0 Linux - Newbie 0 02-24-2009 07:31 PM
myODBC connect errors bwreath Linux - Software 5 06-10-2004 08:56 AM
Can connect to ISP but get errors in netscape. justiceisblind Linux - Newbie 3 03-18-2002 09:54 PM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration