LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-11-2013, 05:58 PM   #1
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Rep: Reputation: 16
L2TP/IPSec road warrior setup; but packets aren't being encrypted.


Hi All,

I've followed the following example setup of an L2TP/IPSec VPN for a dynamic VPN client (Windows 7).

http://wingloon.com/2012/01/11/how-t...-debian-lenny/

However, when checking that the data is being encrypted, I'm seeing the packets being encapsulated in l2tp, but the payload is clear; no encryption at all.

I've checked and double-checked the config and it matches, but still no success.

The VPN server is Debian using ipsec and xl2tpd. The process show:

Code:
23051 ?        S      0:00 /bin/sh /usr/lib/ipsec/_plutorun --debug  --uniqueids yes --force_busy no --nocrsend no --strictcrlpolicy no --nat_traversal yes --keep_alive  --protostack netkey --force_keepalive
23053 ?        S      0:00  \_ /bin/sh /usr/lib/ipsec/_plutorun --debug  --uniqueids yes --force_busy no --nocrsend no --strictcrlpolicy no --nat_traversal yes --keep_alive  --protostack netkey --force_keepa
23058 ?        S      0:00  |   \_ /usr/lib/ipsec/pluto --nofork --secretsfile /etc/ipsec.secrets --ipsecdir /etc/ipsec.d --use-netkey --uniqueids --nat_traversal --virtual_private %v4:10.0.0.0/8,%v4:192.168
23085 ?        S      0:00  |       \_ _pluto_adns
23054 ?        S      0:00  \_ /bin/sh /usr/lib/ipsec/_plutoload --wait no --post 
23052 ?        S      0:00 logger -s -p daemon.error -t ipsec__plutorun
23102 ?        Ss     0:01 /usr/sbin/xl2tpd

When testing the connection from the VPN client, I can see that I'm properly tunneling to the server and getting internet through it, but all as clear packets.

How can I ensure the payloads are being encrypted?

Thanks
Anubis.
 
Old 02-11-2013, 09:18 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
If the packets are in clear, then IPsec does not have the outer IP addresses mapped to be encrypted. Check IPsec configs.
 
Old 02-11-2013, 09:52 PM   #3
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Original Poster
Rep: Reputation: 16
Hi,

Thanks for the reply.

Below is the ipsec.conf I'm running on; does anything stand out in here as I was following a tutorial (link posted in first post) which was supposed to enable ipsec on the link.

Thanks
Anubis


Code:
# /etc/ipsec.conf - Openswan IPsec configuration file

# This file:  /usr/share/doc/openswan/ipsec.conf-sample
#
# Manual:     ipsec.conf.5


version	2.0	# conforms to second version of ipsec.conf specification

# basic configuration
config setup
	nat_traversal=yes
	virtual_private=%v4:10.0.0.0/8,%v4:192.168.0.0/16,%v4:172.16.0.0/12
	nhelpers=0
	protostack=netkey
	oe=off

# Add connections here
conn L2TP-PSK-CLIENTS
	authby=secret
	pfs=no
	auto=add
	keyingtries=3
	rekey=no
	type=transport
	#left=%defaultroute
	#leftnexthop=%defaultroute
	#leftprotoport=17/1701
	left=XXX.XXX.XXX.XXX  <<< vpn server's wan address
	leftnexthop=XXX.XXX.XXX.XXX <<< vpn server's default gateway
	leftprotoport=17/1701
	right=%any
	rightsubnet=vhost:%priv,%no
	rightprotoport=17/%any
	dpddelay=40
	dpdtimeout=130
	dpdaction=clear
 
Old 02-14-2013, 08:06 PM   #4
systemlordanubis
Member
 
Registered: Jun 2010
Distribution: Debian, Ubuntu, Win
Posts: 143

Original Poster
Rep: Reputation: 16
Hi All,

The problem's been resolved. The issue was some old VPN software that was installed on the client PC which was some how overriding the built-in windows VPN settings/control. Removing this software returned windows to normal and the VPN connection now works as expected.

Thanks
Anubis.
 
Old 02-14-2013, 08:47 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Thanks for the update.
 
  


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
unable to setup l2tp over ipsec using racoon and xl2tpd tusharsharma43 Linux - Server 1 12-09-2011 05:19 AM
LXer: Report: Must-Haves For The Linux Road Warrior LXer Syndicated Linux News 0 08-22-2006 12:54 AM
IPsec Road-Warrior VPN possible at all? mariusak Linux - Networking 4 04-10-2006 04:21 PM
VPN (Including windows Road Warrior) jbogins Linux - Networking 1 12-01-2005 02:54 PM
Mandriva Wireless Road Warrior schuelerj Linux - Wireless Networking 0 10-18-2005 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:57 AM.

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