<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mac OS X L2TP VPN to Cisco IOS</title>
	<atom:link href="http://inodes.org/2008/12/16/mac-os-x-l2tp-vpn-to-cisco-ios/feed/" rel="self" type="application/rss+xml" />
	<link>http://inodes.org/2008/12/16/mac-os-x-l2tp-vpn-to-cisco-ios/</link>
	<description>Moo - Development, Trouble-shooting and Random thoughts...</description>
	<lastBuildDate>Thu, 01 Jul 2010 03:27:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Daniele</title>
		<link>http://inodes.org/2008/12/16/mac-os-x-l2tp-vpn-to-cisco-ios/comment-page-1/#comment-2516</link>
		<dc:creator>Daniele</dc:creator>
		<pubDate>Wed, 22 Apr 2009 17:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://inodes.org/blog/?p=108#comment-2516</guid>
		<description>@John: thank you for the reply. I tried to give to the Mac a public ip address, in order to avoid nat-related problems, but this didn&#039;t fix the issue. Anyway I have a doubt about my (and your) config...the command crypto keyring should be applied to a crypto isakmp profile, or am I wrong?

From Cisco Command Reference:
#############################################
Usage Guidelines

A keyring is a repository of preshared and Rivest, Shamir, and Adelman (RSA) public keys. The keyring is used in the ISAKMP profile configuration mode. The ISAKMP profile successfully completes authentication of peers if the peer keys are defined in the keyring that is attached to this profile.

Examples
The following example shows that a keyring and its usage have been defined:

crypto keyring vpnkeys
pre-shared-key address 10.72.23.11 key vpnsecret

crypto isakmp profile vpnprofile
keyring vpnkeys 
#############################################

Regards - Daniele</description>
		<content:encoded><![CDATA[<p>@John: thank you for the reply. I tried to give to the Mac a public ip address, in order to avoid nat-related problems, but this didn&#8217;t fix the issue. Anyway I have a doubt about my (and your) config&#8230;the command crypto keyring should be applied to a crypto isakmp profile, or am I wrong?</p>
<p>From Cisco Command Reference:<br />
#############################################<br />
Usage Guidelines</p>
<p>A keyring is a repository of preshared and Rivest, Shamir, and Adelman (RSA) public keys. The keyring is used in the ISAKMP profile configuration mode. The ISAKMP profile successfully completes authentication of peers if the peer keys are defined in the keyring that is attached to this profile.</p>
<p>Examples<br />
The following example shows that a keyring and its usage have been defined:</p>
<p>crypto keyring vpnkeys<br />
pre-shared-key address 10.72.23.11 key vpnsecret</p>
<p>crypto isakmp profile vpnprofile<br />
keyring vpnkeys<br />
#############################################</p>
<p>Regards &#8211; Daniele</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnf</title>
		<link>http://inodes.org/2008/12/16/mac-os-x-l2tp-vpn-to-cisco-ios/comment-page-1/#comment-2515</link>
		<dc:creator>johnf</dc:creator>
		<pubDate>Wed, 22 Apr 2009 07:26:29 +0000</pubDate>
		<guid isPermaLink="false">http://inodes.org/blog/?p=108#comment-2515</guid>
		<description>@Daniele: Is it possible that your NAT router is blocking outbound connections? Connection refused looks like something in the path is blocking the UDP packets. Try using tcpdump on the Mac OS X client to see if you can work out what&#039;s sending the ICMP packet.</description>
		<content:encoded><![CDATA[<p>@Daniele: Is it possible that your NAT router is blocking outbound connections? Connection refused looks like something in the path is blocking the UDP packets. Try using tcpdump on the Mac OS X client to see if you can work out what&#8217;s sending the ICMP packet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniele</title>
		<link>http://inodes.org/2008/12/16/mac-os-x-l2tp-vpn-to-cisco-ios/comment-page-1/#comment-2508</link>
		<dc:creator>Daniele</dc:creator>
		<pubDate>Fri, 10 Apr 2009 12:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://inodes.org/blog/?p=108#comment-2508</guid>
		<description>Hi John,

I&#039;m trying to realize a l2tp vpn from the Mac OS X native client to a Cisco router, so this is the same scenario of your post.

Obviously the connection isn&#039;t working and I cannot understand the reason. I activated several debug on the router in order to see what happens, but I don&#039;t see any useful info. From the Mac OS X side, I can only see that the connection is refused, nothing more.

I don&#039;t know if it&#039;s relevant, but the Mac OS X box is behind a router that does NAT, so the network diagram is:

MAC OS X ----&gt; NAT ROUTER -----INTERNET CLOUD---------&gt;CISCO ROUTER

Pls can you help me?

This is my relevant config:

###################################################################
aaa new-model
!
!
aaa authentication ppp default local
!
crypto keyring L2TP
  pre-shared-key address 0.0.0.0 0.0.0.0 key PASSWORD
!
crypto isakmp policy 10
 encr 3des
 authentication pre-share
 group 2
!
!
crypto ipsec transform-set 3DES-SHA-TRANS esp-3des esp-sha-hmac
 mode transport
!
crypto dynamic-map L2TP 10
 set nat demux
 set transform-set 3DES-SHA-TRANS
 match address L2TP
!
!
!
crypto map INTERNET 65000 ipsec-isakmp dynamic L2TP
!
!
vpdn enable
!
vpdn-group 1
! Default L2TP VPDN group
 accept-dialin
  protocol l2tp
  virtual-template 1
 no l2tp tunnel authentication
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
 ip address PUBLIC-IP-ADDRESS 255.255.255.252
 ip nat outside
 ip virtual-reassembly
 duplex auto
 speed auto
 crypto map INTERNET
!
interface Virtual-Template1
 ip unnumbered Loopback0
 peer default ip address pool remote_clients_pool
 ppp mtu adaptive
 ppp authentication chap ms-chap
!
ip local pool remote_clients_pool 192.168.100.1 192.168.100.254
no ip classless
ip route 0.0.0.0 0.0.0.0 XXX.XXX.XXX.XXX
!
ip access-list extended L2TP
 permit udp any eq 1701 any
!
####################################################################

Thank you in advance,

Kind Regards - Daniele (from Italy)</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>I&#8217;m trying to realize a l2tp vpn from the Mac OS X native client to a Cisco router, so this is the same scenario of your post.</p>
<p>Obviously the connection isn&#8217;t working and I cannot understand the reason. I activated several debug on the router in order to see what happens, but I don&#8217;t see any useful info. From the Mac OS X side, I can only see that the connection is refused, nothing more.</p>
<p>I don&#8217;t know if it&#8217;s relevant, but the Mac OS X box is behind a router that does NAT, so the network diagram is:</p>
<p>MAC OS X &#8212;-&gt; NAT ROUTER &#8212;&#8211;INTERNET CLOUD&#8212;&#8212;&#8212;&gt;CISCO ROUTER</p>
<p>Pls can you help me?</p>
<p>This is my relevant config:</p>
<p>###################################################################<br />
aaa new-model<br />
!<br />
!<br />
aaa authentication ppp default local<br />
!<br />
crypto keyring L2TP<br />
  pre-shared-key address 0.0.0.0 0.0.0.0 key PASSWORD<br />
!<br />
crypto isakmp policy 10<br />
 encr 3des<br />
 authentication pre-share<br />
 group 2<br />
!<br />
!<br />
crypto ipsec transform-set 3DES-SHA-TRANS esp-3des esp-sha-hmac<br />
 mode transport<br />
!<br />
crypto dynamic-map L2TP 10<br />
 set nat demux<br />
 set transform-set 3DES-SHA-TRANS<br />
 match address L2TP<br />
!<br />
!<br />
!<br />
crypto map INTERNET 65000 ipsec-isakmp dynamic L2TP<br />
!<br />
!<br />
vpdn enable<br />
!<br />
vpdn-group 1<br />
! Default L2TP VPDN group<br />
 accept-dialin<br />
  protocol l2tp<br />
  virtual-template 1<br />
 no l2tp tunnel authentication<br />
!<br />
interface Loopback0<br />
 ip address 1.1.1.1 255.255.255.255<br />
!<br />
interface FastEthernet0/0<br />
 ip address PUBLIC-IP-ADDRESS 255.255.255.252<br />
 ip nat outside<br />
 ip virtual-reassembly<br />
 duplex auto<br />
 speed auto<br />
 crypto map INTERNET<br />
!<br />
interface Virtual-Template1<br />
 ip unnumbered Loopback0<br />
 peer default ip address pool remote_clients_pool<br />
 ppp mtu adaptive<br />
 ppp authentication chap ms-chap<br />
!<br />
ip local pool remote_clients_pool 192.168.100.1 192.168.100.254<br />
no ip classless<br />
ip route 0.0.0.0 0.0.0.0 XXX.XXX.XXX.XXX<br />
!<br />
ip access-list extended L2TP<br />
 permit udp any eq 1701 any<br />
!<br />
####################################################################</p>
<p>Thank you in advance,</p>
<p>Kind Regards &#8211; Daniele (from Italy)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johnf</title>
		<link>http://inodes.org/2008/12/16/mac-os-x-l2tp-vpn-to-cisco-ios/comment-page-1/#comment-2445</link>
		<dc:creator>johnf</dc:creator>
		<pubDate>Fri, 26 Dec 2008 23:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://inodes.org/blog/?p=108#comment-2445</guid>
		<description>Hi Phil,

The ACL needs to be applied to the crypto map. The basic config looks something like



vpdn enable
!
vpdn-group L2TP
! Default L2TP VPDN group
 description L2TP Clients
 accept-dialin
  protocol l2tp
  virtual-template 1
 no l2tp tunnel authentication
!
crypto keyring L2TP
  pre-shared-key address 0.0.0.0 0.0.0.0 key SECRET
!
crypto isakmp policy 10
 encr 3des
 authentication pre-share
 group 2
ipsec transform-set 3DES-SHA-TRANS esp-3des esp-sha-hmac.
 mode transport
!
crypto dynamic-map L2TP 10
 set nat demux
 set transform-set 3DES-SHA-TRANS
 match address L2TP
!
crypto map INTERNET 65000 ipsec-isakmp dynamic L2TP
!
interface Virtual-Template1
 ip unnumbered Loopback0
 no peer default ip address
 ppp mtu adaptive
 ppp authentication ms-chap vpdn
 ppp authorization vpdn
 ppp accounting vpdn



The above config is probably missing the IP pool setup since I do that via RADIUS

Cheers,
John</description>
		<content:encoded><![CDATA[<p>Hi Phil,</p>
<p>The ACL needs to be applied to the crypto map. The basic config looks something like</p>
<p>vpdn enable<br />
!<br />
vpdn-group L2TP<br />
! Default L2TP VPDN group<br />
 description L2TP Clients<br />
 accept-dialin<br />
  protocol l2tp<br />
  virtual-template 1<br />
 no l2tp tunnel authentication<br />
!<br />
crypto keyring L2TP<br />
  pre-shared-key address 0.0.0.0 0.0.0.0 key SECRET<br />
!<br />
crypto isakmp policy 10<br />
 encr 3des<br />
 authentication pre-share<br />
 group 2<br />
ipsec transform-set 3DES-SHA-TRANS esp-3des esp-sha-hmac.<br />
 mode transport<br />
!<br />
crypto dynamic-map L2TP 10<br />
 set nat demux<br />
 set transform-set 3DES-SHA-TRANS<br />
 match address L2TP<br />
!<br />
crypto map INTERNET 65000 ipsec-isakmp dynamic L2TP<br />
!<br />
interface Virtual-Template1<br />
 ip unnumbered Loopback0<br />
 no peer default ip address<br />
 ppp mtu adaptive<br />
 ppp authentication ms-chap vpdn<br />
 ppp authorization vpdn<br />
 ppp accounting vpdn</p>
<p>The above config is probably missing the IP pool setup since I do that via RADIUS</p>
<p>Cheers,<br />
John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://inodes.org/2008/12/16/mac-os-x-l2tp-vpn-to-cisco-ios/comment-page-1/#comment-2444</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Sat, 20 Dec 2008 07:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://inodes.org/blog/?p=108#comment-2444</guid>
		<description>Hi John,

I have been having the same problems with connecting Mac OS via L2TP/IPSec.  Where does that access list need to be applied? Would you be able to paste me your full configuration?

Cheers,
Phil.</description>
		<content:encoded><![CDATA[<p>Hi John,</p>
<p>I have been having the same problems with connecting Mac OS via L2TP/IPSec.  Where does that access list need to be applied? Would you be able to paste me your full configuration?</p>
<p>Cheers,<br />
Phil.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
