Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-31-2013, 10:39 AM
|
#1
|
Member
Registered: Jan 2004
Posts: 537
Rep:
|
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 10:45 AM.
|
|
|
04-03-2013, 03:16 PM
|
#2
|
Senior Member
Registered: Apr 2009
Posts: 1,893
Rep:
|
L2TP tunnel use its own authentication, user name and password could be different from VPN tunnel.
|
|
|
04-06-2013, 09:02 AM
|
#3
|
Member
Registered: Jan 2004
Posts: 537
Original Poster
Rep:
|
Thanks for reply, the above username and apassword are for the l2tp authentication given to me by the vpn server.
|
|
|
04-08-2013, 03:36 PM
|
#4
|
Senior Member
Registered: Apr 2009
Posts: 1,893
Rep:
|
You can disable CHAP authentication to isolate the issue.
|
|
|
04-10-2013, 05:24 AM
|
#5
|
Member
Registered: Jan 2004
Posts: 537
Original Poster
Rep:
|
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.
|
|
|
|
All times are GMT -5. The time now is 10:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|