<?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>Craig Mayhew's Blog &#187; VPN Client</title>
	<atom:link href="http://www.craigmayhew.com/blog/tag/vpn-client/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.craigmayhew.com/blog</link>
	<description></description>
	<lastBuildDate>Sun, 29 Jan 2012 21:51:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting Up PPTP VPN in Ubuntu 9.10 Karmic Koala</title>
		<link>http://www.craigmayhew.com/blog/2009/11/setting-up-vpn-in-ubuntu-9-10-karmic-koala/</link>
		<comments>http://www.craigmayhew.com/blog/2009/11/setting-up-vpn-in-ubuntu-9-10-karmic-koala/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 07:00:21 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Guides/Fixes]]></category>
		<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>
		<category><![CDATA[VPN Client]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=543</guid>
		<description><![CDATA[Ubuntu 9.10 doesn&#8217;t come with VPN connectivity out of the box. So you need to install 3 packages to get it to work. Symptoms of these packages not being installed are grayed out &#8220;Add&#8221; buttons and grayed out &#8220;Apply&#8221; buttons in the VPN connection manager.
Here&#8217;s the command to install the 3 packages:

sudo apt-get install network-manager-pptp [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 9.10 doesn&#8217;t come with VPN connectivity out of the box. So you need to install 3 packages to get it to work. Symptoms of these packages not being installed are grayed out &#8220;Add&#8221; buttons and grayed out &#8220;Apply&#8221; buttons in the VPN connection manager.</p>
<p>Here&#8217;s the command to install the 3 packages:</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">
sudo apt-get install network-manager-pptp network-manager-vpnc network-manager-openvpn
</pre>
<p>I have no idea why Ubuntu doesn&#8217;t include these packages by default. Looks like a great many people are having this issue: https://bugs.launchpad.net/ubuntu/+source/network-manager-pptp/+bug/107738</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2009/11/setting-up-vpn-in-ubuntu-9-10-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Fixing Ubuntu 9.04 VPN &#8211; Adding remote network to routing table</title>
		<link>http://www.craigmayhew.com/blog/2009/07/fixing-ubuntu-9-04-vpn-adding-remote-network-to-routing-table/</link>
		<comments>http://www.craigmayhew.com/blog/2009/07/fixing-ubuntu-9-04-vpn-adding-remote-network-to-routing-table/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 11:49:46 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Guides/Fixes]]></category>
		<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Network Manager]]></category>
		<category><![CDATA[Routing Table]]></category>
		<category><![CDATA[Ubuntu 9.04]]></category>
		<category><![CDATA[VPN Client]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=119</guid>
		<description><![CDATA[The new network manager is a massive improvement over the previous network tools in Ubuntu. Coming from a windows background I am used to routing tables being updated automatically. However, after connecting to a VPN using the Ubuntu 9.04 network manager I&#8217;m unable to access or even ping anything on the remote network, yet the [...]]]></description>
			<content:encoded><![CDATA[<p>The new network manager is a massive improvement over the previous network tools in Ubuntu. Coming from a windows background I am used to routing tables being updated automatically. However, after connecting to a VPN using the Ubuntu 9.04 network manager I&#8217;m unable to access or even ping anything on the remote network, yet the VPN is connected. This is due to the computer not knowing about the computers on the VPN. This is where routing tables come into play. My works ip range is 192.168.10.* so this needs to be added to the routing table.</p>
<p>The easiest way to do this is to have the network manager handle it all by adding a setting in the network manager like so:</p>
<p>Click on the network manager icon then &#8220;VPN Connections&#8221; and the following menu should appear: Click &#8220;Configure VPN&#8221;.<br />
<img class="size-full wp-image-140" title="Configure VPN" src="http://www.craigmayhew.com/blog/wp-content/uploads/2009/07/Configure-VPN.jpg" alt="Configure VPN" width="186" height="82" /></p>
<p>Click the VPN tab. The VPN you have already created should appear in the list. Click your VPN and then click edit.<br />
<img class="size-full wp-image-131" title="Network Connections - Click Edit VPN" src="http://www.craigmayhew.com/blog/wp-content/uploads/2009/07/Network-Connections-Click-Edit-VPN.jpg" alt="Network Connections - Click Edit VPN" width="525" height="353" /></p>
<p>Another window should appear, click the &#8220;IPv4 Settings&#8221; tab. Then click the &#8220;Routes&#8230;&#8221; button.<br />
<img class="size-full wp-image-132" title="Network Connection - Edit VPN - IPV4 Settings - Click Routes" src="http://www.craigmayhew.com/blog/wp-content/uploads/2009/07/Network-Connection-Edit-VPN-IPV4-Settings-Click-Routes.jpg" alt="Network Connection - Edit VPN - IPV4 Settings - Click Routes" width="440" height="544" /></p>
<p>Now you need to add a route so your computer can talk to other computers on the VPN. In this case I have added the address as 192.168.10.0 as all computers on the office network have an IP that begins with &#8220;192.168.10&#8243; and a netmask of 255.255.255.0. The gateway is the IP of my home router, in this case my home router is &#8220;10.11.12.1&#8243;.<br />
<img class="size-full wp-image-133" title="Network Connection - Edit VPN - IPV4 Settings - Routes - Add Route" src="http://www.craigmayhew.com/blog/wp-content/uploads/2009/07/Network-Connection-Edit-VPN-IPV4-Settings-Routes-Add-Route.jpg" alt="Network Connection - Edit VPN - IPV4 Settings - Routes - Add Route" width="534" height="283" /></p>
<p>At this point it&#8217;s also worth mentioning as a side note that if &#8220;Use this connection only for resources on its network&#8221; is NOT ticked then all of your regular internet traffic will go via the VPN and not just when you want to access something on VPN like shared files and folders. This would really slow down your internet access. I personally would have this ticked.</p>
<p>And there you have it, that will now allow your computer to talk to other computers on the office/remote network.</p>
<p>For those of you who want a more hands on approach and really want to see whats going on behind the scenes (everyone else stop reading here):</p>
<p>Run the route command to view the routing table:</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">route</pre>
<p>This is the route table with the missing route:</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
office.mywork   my.router       255.255.255.255 UGH   0      0        0 eth2
10.11.0.0       *               255.255.0.0     U     1      0        0 eth2
link-local      *               255.255.0.0     U     1000   0        0 eth2
default         my.router       0.0.0.0         UG    0      0        0 eth2</pre>
<p>The network manager automatically adds the correct route to the routing table when the VPN connection is created. You can achieve the same result with the following command. In this case we are using the network range 192.168.10.*:</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">sudo route add -net 192.168.10.0/24 ppp0</pre>
<p>Now check the routes table again:</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">route</pre>
<p>And here we have a route that allows us to access computers on the remote network:</p>
<pre style="border: 1px solid #FFFFFF; padding: 5px; overflow:auto;">Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
office.mywork   10.11.12.1      255.255.255.255 UGH   0      0        0 eth2
192.168.10.0    *               255.255.255.0   U     0      0        0 ppp0
10.11.0.0       *               255.255.0.0     U     1      0        0 eth2
link-local      *               255.255.0.0     U     1000   0        0 eth2
default         10.11.12.1      0.0.0.0         UG    0      0        0 eth2</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2009/07/fixing-ubuntu-9-04-vpn-adding-remote-network-to-routing-table/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VPN Client in Ubuntu 8.04</title>
		<link>http://www.craigmayhew.com/blog/2008/11/vpn-client-in-ubuntu-804/</link>
		<comments>http://www.craigmayhew.com/blog/2008/11/vpn-client-in-ubuntu-804/#comments</comments>
		<pubDate>Tue, 04 Nov 2008 08:22:12 +0000</pubDate>
		<dc:creator>Craig Mayhew</dc:creator>
				<category><![CDATA[Guides/Fixes]]></category>
		<category><![CDATA[Linux/Ubuntu]]></category>
		<category><![CDATA[Hardy Heron]]></category>
		<category><![CDATA[Interpid Ibex]]></category>
		<category><![CDATA[network-manager-pptp]]></category>
		<category><![CDATA[Ubuntu 8.04]]></category>
		<category><![CDATA[Ubuntu 8.10]]></category>
		<category><![CDATA[VPN Client]]></category>

		<guid isPermaLink="false">http://www.craigmayhew.com/blog/?p=32</guid>
		<description><![CDATA[Here&#8217;s an excellent guide to getting VPN connections working in gutsy and hardy.
http://tipotheday.com/2007/11/28/connect-to-windows-vpn-server-pptp-with-ubuntu-gutsy/
Unfortunately when using the network-manager-pptp package there is a bug with one of the network packages that prevents anyone with a static IP from succesfully connecting to a VPN server. When you left click your network icon you should see one of your [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an excellent guide to getting VPN connections working in gutsy and hardy.</p>
<p><a href="http://tipotheday.com/2007/11/28/connect-to-windows-vpn-server-pptp-with-ubuntu-gutsy/">http://tipotheday.com/2007/11/28/connect-to-windows-vpn-server-pptp-with-ubuntu-gutsy/</a></p>
<p>Unfortunately when using the <strong>network-manager-pptp</strong> package there is a bug with one of the network packages that prevents anyone with a <strong>static IP</strong> from succesfully connecting to a VPN server. When you left click your network icon you should see one of your network connections as selected. If they are all greyed out then you will suffer from this VPN issue. Unfortunately at the time of writing there is no fix other than to set your network connection from a static IP to <strong>roaming mode</strong>. Some people have suggested that <strong>Interpid Ibex will have a fix for this problem</strong>.</p>
<p>The bug tracker for this can be found at <a href="https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/116274">https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/116274</a></p>
<p>Does anyone know a better work-around for this?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.craigmayhew.com/blog/2008/11/vpn-client-in-ubuntu-804/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

