LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-16-2013, 05:50 PM   #1
cchildress
LQ Newbie
 
Registered: Jan 2013
Distribution: Gentoo
Posts: 5

Rep: Reputation: Disabled
xl2tpd / ppp setup for an IPsec+L2TP VPn


Hello everyone,
I'm working on getting xl2tpd and ppp working to finish my VPN setup.
Right now ppp seems to disconnect shortly after the connection is started. I'm not sure what I'm missing at this point.

router output:
Code:
kaylee ~ # xl2tpd -D
xl2tpd[12108]: setsockopt recvref[30]: Protocol not available
xl2tpd[12108]: Using l2tp kernel support.
xl2tpd[12108]: xl2tpd version xl2tpd-1.3.1 started on kaylee PID:12108
xl2tpd[12108]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[12108]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[12108]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[12108]: Forked again by Xelerance (www.xelerance.com) (C) 2006
xl2tpd[12108]: Listening on IP address 0.0.0.0, port 1701
xl2tpd[12108]: control_finish: Peer requested tunnel 61024 twice, ignoring second one.
xl2tpd[12108]: control_finish: Peer requested tunnel 61024 twice, ignoring second one.
xl2tpd[12108]: Connection established to 96.10.246.121, 1701.  Local: 45815, Remote: 61024 (ref=0/0).  LNS session is 'default'
xl2tpd[12108]: control_finish: Warning: Peer did not specify transmit speed
xl2tpd[12108]: start_pppd: I'm running: 
xl2tpd[12108]: "/usr/sbin/pppd" 
xl2tpd[12108]: "passive" 
xl2tpd[12108]: "nodetach" 
xl2tpd[12108]: "10.42.0.1:10.42.0.70" 
xl2tpd[12108]: "refuse-pap" 
xl2tpd[12108]: "auth" 
xl2tpd[12108]: "debug" 
xl2tpd[12108]: "file" 
xl2tpd[12108]: "/etc/ppp/options.xl2tpd" 
xl2tpd[12108]: "ipparam" 
xl2tpd[12108]: "96.10.246.121" 
xl2tpd[12108]: "plugin" 
xl2tpd[12108]: "pppol2tp.so" 
xl2tpd[12108]: "pppol2tp" 
xl2tpd[12108]: "7" 
xl2tpd[12108]: Call established with 96.10.246.121, Local: 48125, Remote: 20231, Serial: 1
xl2tpd[12108]: control_finish: Connection closed to 96.10.246.121, serial 1 ()
xl2tpd[12108]: Terminating pppd: sending TERM signal to pid 12109
xl2tpd[12108]: control_finish: Connection closed to 96.10.246.121, port 1701 (Server closing), Local: 45815, Remote: 61024
client output:
Code:
kaylee ~ # xl2tpd -D
xl2tpd[12108]: setsockopt recvref[30]: Protocol not available
xl2tpd[12108]: Using l2tp kernel support.
xl2tpd[12108]: xl2tpd version xl2tpd-1.3.1 started on kaylee PID:12108
xl2tpd[12108]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc.
xl2tpd[12108]: Forked by Scott Balmos and David Stipp, (C) 2001
xl2tpd[12108]: Inherited by Jeff McAdams, (C) 2002
xl2tpd[12108]: Forked again by Xelerance (www.xelerance.com) (C) 2006
xl2tpd[12108]: Listening on IP address 0.0.0.0, port 1701
xl2tpd[12108]: control_finish: Peer requested tunnel 61024 twice, ignoring second one.
xl2tpd[12108]: control_finish: Peer requested tunnel 61024 twice, ignoring second one.
xl2tpd[12108]: Connection established to 96.10.246.121, 1701.  Local: 45815, Remote: 61024 (ref=0/0).  LNS session is 'default'
xl2tpd[12108]: control_finish: Warning: Peer did not specify transmit speed
xl2tpd[12108]: start_pppd: I'm running: 
xl2tpd[12108]: "/usr/sbin/pppd" 
xl2tpd[12108]: "passive" 
xl2tpd[12108]: "nodetach" 
xl2tpd[12108]: "10.42.0.1:10.42.0.70" 
xl2tpd[12108]: "refuse-pap" 
xl2tpd[12108]: "auth" 
xl2tpd[12108]: "debug" 
xl2tpd[12108]: "file" 
xl2tpd[12108]: "/etc/ppp/options.xl2tpd" 
xl2tpd[12108]: "ipparam" 
xl2tpd[12108]: "96.10.246.121" 
xl2tpd[12108]: "plugin" 
xl2tpd[12108]: "pppol2tp.so" 
xl2tpd[12108]: "pppol2tp" 
xl2tpd[12108]: "7" 
xl2tpd[12108]: Call established with 96.10.246.121, Local: 48125, Remote: 20231, Serial: 1
xl2tpd[12108]: control_finish: Connection closed to 96.10.246.121, serial 1 ()
xl2tpd[12108]: Terminating pppd: sending TERM signal to pid 12109
xl2tpd[12108]: control_finish: Connection closed to 96.10.246.121, port 1701 (Server closing), Local: 45815, Remote: 61024
ppp options file:
Code:
ipcp-accept-local
ipcp-accept-remote
require-mschap-v2
ms-dns 10.42.0.1
#asyncmap 0
auth
mtu 1410
mru 1410
nodefaultroute
#crtscts
hide-password
lock
#modem
debug
name l2tpd
proxyarp
connect-delay 5000
#nomppe
lcp-echo-interval 30
lcp-echo-failure 5
 
Old 02-16-2013, 06:17 PM   #2
cchildress
LQ Newbie
 
Registered: Jan 2013
Distribution: Gentoo
Posts: 5

Original Poster
Rep: Reputation: Disabled
I forgot to include this, but here's what I have in syslog:
Code:
Feb 16 18:03:36 kaylee pppd[12050]: Plugin pppol2tp.so loaded.
Feb 16 18:03:36 kaylee pppd[12050]: pppd 2.4.5 started by root, uid 0
Feb 16 18:03:36 kaylee pppd[12050]: using channel 6
Feb 16 18:03:36 kaylee pppd[12050]: Using interface ppp0
Feb 16 18:03:36 kaylee pppd[12050]: Connect: ppp0 <-->
Feb 16 18:03:36 kaylee pppd[12050]: Overriding mtu 1500 to 1410
Feb 16 18:03:36 kaylee pppd[12050]: PPPoL2TP options: debugmask 0
Feb 16 18:03:36 kaylee pppd[12050]: Overriding mru 1500 to mtu value 1410
Feb 16 18:03:36 kaylee pppd[12050]: sent [LCP ConfReq id=0x1 <mru 1410> <asyncmap 0x0> <auth chap MS-v2> <magic 0xfd06472>]
Feb 16 18:03:36 kaylee pppd[12050]: Terminating on signal 15
Feb 16 18:03:36 kaylee pppd[12050]: sent [LCP TermReq id=0x2 "User request"]
Feb 16 18:03:39 kaylee pppd[12050]: sent [LCP TermReq id=0x3 "User request"]
Feb 16 18:03:42 kaylee pppd[12050]: Connection terminated.
Feb 16 18:03:42 kaylee pppd[12050]: Modem hangup
Feb 16 18:03:42 kaylee pppd[12050]: Exit
 
  


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
LXer: Set up a IPsec/L2TP VPN with Ubuntu 12.04 with OpenSwan, xl2tpd and ppp LXer Syndicated Linux News 0 10-14-2012 12:50 PM
Setting up L2TP over IPSec VPN server under CentOS 5.3 fantasygoat Linux - Networking 5 10-04-2012 04:08 PM
unable to setup l2tp over ipsec using racoon and xl2tpd tusharsharma43 Linux - Server 1 12-09-2011 05:19 AM
IPSec L2TP VPN server on Ubuntu for iPhone Apollo77 Linux - Networking 27 12-03-2010 09:27 AM
IPsec/L2TP VPN question IPsecLearner Linux - Networking 3 04-19-2005 11:32 AM


All times are GMT -5. The time now is 08:43 PM.

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