<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>@Lathi.net: VPN Configuration</title>
    <link>http://blog.lathi.net/articles/2006/01/19/vpn-configurtion</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>On Life, Fatherhood, Christianity, and Computers</description>
    <item>
      <title>VPN Configuration</title>
      <description>&lt;p&gt;I&amp;#8217;m working from home a lot requiring a &lt;span class="caps"&gt;VPN&lt;/span&gt; connection to my work.  The default &lt;span class="caps"&gt;VPN&lt;/span&gt; setup for the Mac is a little less than ideal; it routes all traffic through the &lt;span class="caps"&gt;VPN&lt;/span&gt;.  As our &lt;span class="caps"&gt;VPN&lt;/span&gt; is a little sluggish, I&amp;#8217;d like for only work related traffic to route through the &lt;span class="caps"&gt;VPN&lt;/span&gt;.  Here&amp;#8217;s what I had to do.&lt;/p&gt;


	&lt;p&gt;I started with this Mac &lt;span class="caps"&gt;OSX&lt;/span&gt; Hint to &lt;a href="http://www.macosxhints.com/article.php?story=20050531163742751"&gt;Set no default route for &lt;span class="caps"&gt;VPN&lt;/span&gt; Client via &lt;span class="caps"&gt;PPTP&lt;/span&gt;/L2TP&lt;/a&gt;.  The hint says to set &lt;code&gt;nodefaltrouter&lt;/code&gt; in &lt;code&gt;/etc/ppp/vpn-name&lt;/code&gt; and then do my routing in &lt;code&gt;/etc/ppp/ip-up&lt;/code&gt;.  The good news is that in Mac &lt;span class="caps"&gt;OS 10&lt;/span&gt;.4 Tiger, there&amp;#8217;s a configuration option for Internet Connect to toggle setting of the default route.  Progress: all my traffic is no longer going over &lt;span class="caps"&gt;VPN&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;Problem: my local &lt;span class="caps"&gt;DNS&lt;/span&gt; can&amp;#8217;t do lookups for the company&amp;#8217;s &lt;span class="caps"&gt;LAN&lt;/span&gt;.  So, I go into Network Preferences for the &lt;span class="caps"&gt;VPN&lt;/span&gt; and statically assign the &lt;span class="caps"&gt;DNS&lt;/span&gt; Servers.&lt;/p&gt;


	&lt;p&gt;Hmmm, that should work but host name lookup still doesn&amp;#8217;t work.  Ah, I still don&amp;#8217;t have a route defined for the corporate &lt;span class="caps"&gt;LAN&lt;/span&gt; to use the &lt;span class="caps"&gt;VPN&lt;/span&gt;.  So, I create &lt;code&gt;/etc/ppp/ip-up&lt;/code&gt; to include this simple command:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_shell "&gt;#!/bin/sh
route add 10.1.0.0/16 -interface ppp0&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Unfortunately, this doesn&amp;#8217;t automatically set the route when I establish the &lt;span class="caps"&gt;VPN&lt;/span&gt; connection.  So, that&amp;#8217;s where I stand.  I&amp;#8217;ve got &lt;code&gt;/etc/ppp/ip-up&lt;/code&gt; &lt;code&gt;chmod +x&lt;/code&gt; and manually run it when I initiate my &lt;span class="caps"&gt;VPN&lt;/span&gt; connection.  Also, I think this whole setup will affect my other &lt;span class="caps"&gt;VPN&lt;/span&gt; configuration for which I &lt;em&gt;do&lt;/em&gt; want all traffic to use.  Ah, well&amp;#8230; nothing&amp;#8217;s perfect.&lt;/p&gt;</description>
      <pubDate>Thu, 19 Jan 2006 14:06:15 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:3d990c52-fe81-47a2-ad88-36e176af21ed</guid>
      <author>Doug</author>
      <link>http://blog.lathi.net/articles/2006/01/19/vpn-configurtion</link>
      <category>Security</category>
      <category>Internet</category>
      <category>Apple</category>
      <category>Tiger</category>
      <category>VPN</category>
    </item>
  </channel>
</rss>
