<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Serious Orange &#187; OS X</title>
	<atom:link href="http://seriousorange.com/tag/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://seriousorange.com</link>
	<description></description>
	<lastBuildDate>Fri, 08 Jan 2010 02:40:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Setting up a L2TP/IPSec VPN on OS X 10.5</title>
		<link>http://seriousorange.com/2009/08/setting-up-a-l2tpipsec-vpn-on-mac-os-x-10-5/</link>
		<comments>http://seriousorange.com/2009/08/setting-up-a-l2tpipsec-vpn-on-mac-os-x-10-5/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 13:01:43 +0000</pubDate>
		<dc:creator>Roger</dc:creator>
				<category><![CDATA[Server Configuration]]></category>
		<category><![CDATA[IPSec]]></category>
		<category><![CDATA[L2TP]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://seriousorange.com/?p=3</guid>
		<description><![CDATA[A little known fact is that the non-server version of Mac OS X ships with a VPN server, but you&#8217;ll have to go down to the command line to configure it. There&#8217;s various bits of information about the web on how to do this, so I thought I&#8217;d wrap it all up here. An article [...]]]></description>
			<content:encoded><![CDATA[<p>A little known fact is that the non-server version of Mac OS X ships with a VPN server, but you&#8217;ll have to go down to the command line to configure it. There&#8217;s various bits of information about the web on how to do this, so I thought I&#8217;d wrap it all up here.</p>
<ol class="spaced">
<li>An article on <a href="http://www.macosxhints.com/article.php?story=20060616150640529">macosxhints.com</a> will get you started. It&#8217;s for 10.4 but applies to 10.5 almost perfectly.</li>
<li>Before starting the vpn server, though, run:
<p><tt>sudo racoon -vF</tt></p>
<p>If you&#8217;ve done everything right in step 1, the key manager will pop up. Click Always Allow and then ctrl-c to stop racoon running. Now you can start vpnd.</li>
<li>It looks like Back To My Mac uses L2TP as well, but changes the default configuration such that it won&#8217;t work with normal L2TP clients. If you&#8217;re not going to use Back To My Mac again, go into <tt>/etc/racoon/remote</tt>. You should find a file called <tt>anonymous.conf.orig</tt>. Copy that file on top of <tt>anonymous.conf</tt>, killall vpnd and racoon, and then start vpnd up again.</li>
<li>You only need to forward UDP ports 500 and 4500 from your firewall. Some other guides recommend forwarding the L2TP port &#8211; you shouldn&#8217;t do this as you want everything to run through IPSec. You do not need to change the OS X firewall &#8211; any of the three settings allows ports 500/4500 through.</li>
<li>It looks like when you create a new user, it doesn&#8217;t (always?) set up a shadow hash that&#8217;s compatible with the MSCHAP2 authentication algorithm. You might have this problem if some users authenticate fine and others don&#8217;t. There&#8217;s a <a href="http://www.macosxhints.com/comment.php?mode=display&amp;format=threaded&amp;order=ASC&amp;pid=76292">comment here</a> that tells you what you need to do to fix that.</li>
</ol>
<p>I made a group named &#8220;vpn&#8221; using the Accounts preference pane, assigned the users I wanted to have VPN access to it, and then specified it in the <tt>com.apple.RemoteAccessServers.plist</tt> file instead of using &#8220;admin&#8221;.</p>
<p>If it&#8217;s not working for you, <tt>sudo killall vpn racoon</tt>, and then start up <tt>sudo racoon -vF</tt> and try connecting. That way you&#8217;ll get a whole heap of debug information on what&#8217;s going on with the authentication process, or if indeed the connection is even reaching your computer.</p>
<p>All works brilliantly here. Can connect to the VPN via another Mac or using the iPhone.</p>
]]></content:encoded>
			<wfw:commentRss>http://seriousorange.com/2009/08/setting-up-a-l2tpipsec-vpn-on-mac-os-x-10-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

