LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-31-2013, 09:39 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 535

Rep: Reputation: 30
Question xl2tpd auth error?


i setup the l2tp tunnel with xl2tpd and openswan, ipsec get connected but xl2tpd get this error in /var/log/messages:
Quote:
Mar 30 16:57:25 user pppd[4662]: Plugin pppol2tp.so loaded.
Mar 30 16:57:25 user pppd[4662]: pppd 2.4.5 started by user, uid 0
Mar 30 16:57:25 user pppd[4662]: Using interface ppp1
Mar 30 16:57:25 user pppd[4662]: Connect: ppp1 <--> /dev/pts/2
Mar 30 16:57:28 user pppd[4662]: No CHAP secret found for authenticating us to l2tpd
this is xl2tpd.conf:
Quote:
[global]
access control = no
port = 1701
ipsec saref = yes
auth file = /etc/ppp/chap-secrets
debug tunnel = yes

[lac vpnserver]
lns = 46.165.221.230
name = client01855348
require chap = yes
refuse pap = yes
require authentication = yes
ppp debug = yes
pppoptfile = /etc/ppp/options.xl2tpd
length bit = yes
redial = yes
redial timeout = 10
max redials = 6
this is /etc/ppp/options.xl2tpd:
Quote:
ipcp-accept-local
ipcp-accept-remote
ms-dns 8.8.8.8
ms-dns 8.8.4.4
refuse-eap
noauth
crtscts
idle 1800
mtu 1400
mru 1400
nodefaultroute
connect-delay 5000
plugin pppol2tp.so
lock
debug
noccp
proxyarp
#lcp-echo-interval 30
#lcp-echo-failure 4
logfile /var/log/xl2tpd.log
this is /etc/ppp/chap-secrets:
Quote:
# Secrets for authentication using CHAP
# client server secret IP addresses
client01855348 vpnserver "c698aghw6ce" *
vpnserver client01855348 "c698aghw6ce" *
client01855348 is the user name and c698aghw6ce is the password for the vpnserver.

Last edited by shams; 03-31-2013 at 09:45 AM.
 
Old 04-03-2013, 02:16 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
L2TP tunnel use its own authentication, user name and password could be different from VPN tunnel.
 
Old 04-06-2013, 08:02 AM   #3
shams
Member
 
Registered: Jan 2004
Posts: 535

Original Poster
Rep: Reputation: 30
Thanks for reply, the above username and apassword are for the l2tp authentication given to me by the vpn server.
 
Old 04-08-2013, 02:36 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You can disable CHAP authentication to isolate the issue.
 
Old 04-10-2013, 04:24 AM   #5
shams
Member
 
Registered: Jan 2004
Posts: 535

Original Poster
Rep: Reputation: 30
I desable the chap and this is the /var/log/daemon.log:
Quote:
# tail -f daemon.log
Apr 10 13:57:22 user xl2tpd[6451]: Maximum retries exceeded for tunnel 25690. Closing.
Apr 10 13:57:22 user xl2tpd[6451]: Connection 0 closed to 46.165.221.230, port 1701 (Timeout)
Apr 10 13:57:25 user xl2tpd[6451]: build_fdset: closing down tunnel 25690
Apr 10 13:57:25 user xl2tpd[6451]: Will redial in 10 seconds
Apr 10 13:57:25 user xl2tpd[6451]: Can not find tunnel 25690 (refhim=0)
Apr 10 13:57:25 user xl2tpd[6451]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 25690 Dumping.
Apr 10 13:57:26 user xl2tpd[6451]: Can not find tunnel 25690 (refhim=0)
Apr 10 13:57:26 user xl2tpd[6451]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 25690 Dumping.
Apr 10 13:57:28 user xl2tpd[6451]: Can not find tunnel 25690 (refhim=0)
Apr 10 13:57:28 user xl2tpd[6451]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 25690 Dumping.
Apr 10 13:57:29 user transmission-daemon[3687]: ubuntu-12.10-desktop-i386.iso IPv4 DHT announce done (tr-dht.c:542)
Apr 10 13:57:31 user xl2tpd[6451]: Can not find tunnel 25690 (refhim=0)
Apr 10 13:57:31 user xl2tpd[6451]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 25690 Dumping.
Apr 10 13:57:32 user xl2tpd[6451]: Can not find tunnel 25690 (refhim=0)
Apr 10 13:57:32 user xl2tpd[6451]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 25690 Dumping.
Apr 10 13:57:35 user xl2tpd[6451]: get_call: allocating new tunnel for host 46.165.221.230, port 1701.
Apr 10 13:57:35 user xl2tpd[6451]: Connecting to host 46.165.221.230, port 1701
Apr 10 13:57:40 user xl2tpd[6451]: Maximum retries exceeded for tunnel 54814. Closing.
Apr 10 13:57:40 user xl2tpd[6451]: Connection 0 closed to 46.165.221.230, port 1701 (Timeout)
Apr 10 13:57:42 user xl2tpd[6451]: Connection established to 46.165.221.230, 1701. Local: 54814, Remote: 64086 (ref=0/0).
Apr 10 13:57:42 user xl2tpd[6451]: magic_lac_dial: maximum retries exceeded.
Apr 10 13:57:42 user xl2tpd[6451]: check_control: Received out of order control packet on tunnel 64086 (got 0, expected 1)
Apr 10 13:57:42 user xl2tpd[6451]: handle_packet: bad control packet!
Apr 10 13:57:42 user xl2tpd[6451]: network_thread: bad packet
Apr 10 13:57:45 user xl2tpd[6451]: check_control: Received out of order control packet on tunnel 64086 (got 0, expected 1)
Apr 10 13:57:45 user xl2tpd[6451]: handle_packet: bad control packet!
Apr 10 13:57:45 user xl2tpd[6451]: network_thread: bad packet
Apr 10 13:57:45 user xl2tpd[6451]: Unable to deliver closing message for tunnel 54814. Destroying anyway.
Apr 10 13:57:45 user xl2tpd[6451]: Will redial in 10 seconds
Apr 10 13:57:47 user xl2tpd[6451]: Can not find tunnel 54814 (refhim=0)
Apr 10 13:57:47 user xl2tpd[6451]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 54814 Dumping.
Apr 10 13:57:50 user xl2tpd[6451]: Can not find tunnel 54814 (refhim=0)
Apr 10 13:57:50 user xl2tpd[6451]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 54814 Dumping.
Apr 10 13:57:51 user xl2tpd[6451]: Can not find tunnel 54814 (refhim=0)
Apr 10 13:57:51 user xl2tpd[6451]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 54814 Dumping.
Apr 10 13:57:55 user xl2tpd[6451]: magic_lac_dial: maximum retries exceeded.
 
Old 04-10-2013, 03:09 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Too much trouble.
Do you try configuration set of following link? They are different from yours.
https://wiki.archlinux.org/index.php...N_client_setup
 
  


Reply



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
[SOLVED] Openswan+xl2tpd VPN xl2tpd failure nightradio Linux - Networking 1 01-23-2013 06:19 PM
dovecot-auth: pam_succeed_if(dovecot:auth): error retrieving information about user karsel Linux - Newbie 0 12-11-2012 07:44 AM
xl2tpd gives errors and can't connect daotiansi Linux - Software 2 07-30-2011 01:02 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration