<?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>Alunduil&#039;s Hosting &#187; VPN</title>
	<atom:link href="http://www.alunduil.com/tag/vpn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alunduil.com</link>
	<description>Gentoo Hackery and Other Fun ...</description>
	<lastBuildDate>Sun, 01 May 2011 22:00:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Hamachi on Gentoo</title>
		<link>http://www.alunduil.com/2010/09/27/hamachi-on-gentoo/</link>
		<comments>http://www.alunduil.com/2010/09/27/hamachi-on-gentoo/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 21:11:12 +0000</pubDate>
		<dc:creator>Alex Brandt</dc:creator>
				<category><![CDATA[Linux Guides]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[hamachi]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://www.alunduil.com/?p=217</guid>
		<description><![CDATA[Introduction Hamachi is a lightweight personal VPN connector that is a breeze to setup but there can be some pain if you don&#8217;t know what to expect. As always Gentoo provides us with an ebuild that simplifies the installation process but getting up and running is still a little confusing. Installation and Setup User Specific <a href='http://www.alunduil.com/2010/09/27/hamachi-on-gentoo/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<h1>Introduction</h1>
<p><a href="https://secure.logmein.com/products/hamachi2/">Hamachi</a> is a lightweight personal VPN connector that is a breeze to setup but there can be some pain if you don&#8217;t know what to expect.  As always Gentoo provides us with an ebuild that simplifies the installation process but getting up and running is still a little confusing.</p>
<h1>Installation and Setup</h1>
<h2>User Specific Configurations</h2>
<p>The obvious first step is `emerge -av hamachi` (this only available to ~arch right now so add to `package.keywords` as necessary).  The following are the typical instructions to install hamachi on Gentoo from portage:</p>
<ol>
<li>Add to `packages.keywords` if necessary</li>
<li>`emerge -av hamachi`</li>
<li>`rc-update add tuncfg default`</li>
</ol>
<p>After these steps have been taken you can run hamachi as any user on the system for ad-hoc VPN creation.</p>
<h2>Server Wide Configuration</h2>
<p>If you prefer to do a system wide on boot VPN with hamachi this is also possible but requires a slightly different setup:</p>
<ol>
<li>Add to `packages.keywords` if necessary</li>
<li>`emerge -av hamachi`</li>
<li>rc-update add hamachi default</li>
</ol>
<p>Now all configuration should be placed inside `/etc/hamachi` for this setup so the system will automatically start routing traffic correctly.</p>
<h1>Kernel Configuration</h1>
<p>For hamachi to work correctly you do need the tun parameter in your kernel or loaded as a module.  This parameter is located in Device Drivers-&gt;Network device support-&gt;Universal TUN/TAP device driver support.</p>
<h1>Using Hamachi</h1>
<p>Now that hamachi is on the system we need to start using it.  The server-wide installation doesn&#8217;t require this (but I&#8217;m sure you can use this method to create a configuration usable by the server-wide instance) but the user specific usage does.</p>
<p>Starting hamachi is as simple as the following:</p>
<ol>
<li>`hamachi-init`</li>
<li>`hamachi start`</li>
<li>`hamachi login`</li>
<li>`hamachi create  [ ]`</li>
<li>`hamachi join  [ ]`</li>
<li>`hamachi go-online `</li>
</ol>
<p>That&#8217;s it.  You&#8217;re now connected to a private network named .  You can view who else is connected to your network with `hamachi list` and `hamachi get-nicks`.</p>
<h1>Conclusion</h1>
<p>Setting up a VPN can be daunting (see the OpenVPN configuration documentation) or it can be a breeze with hamachi.  Need a quick VPN for LAN gaming or a VPN for performing maintenance over the internet on a device behind a firewall?  Hamachi may be the quick solution you&#8217;re looking for.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alunduil.com/2010/09/27/hamachi-on-gentoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connecting a Linux Computer to a VPN</title>
		<link>http://www.alunduil.com/2007/02/20/connecting-a-linux-computer-to-a-vpn/</link>
		<comments>http://www.alunduil.com/2007/02/20/connecting-a-linux-computer-to-a-vpn/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 04:38:25 +0000</pubDate>
		<dc:creator>Alex Brandt</dc:creator>
				<category><![CDATA[Linux Guides]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[vpnc]]></category>

		<guid isPermaLink="false">http://www.alunduil.com/?p=17</guid>
		<description><![CDATA[Installing VPNC VPNC is found in many of the distributions&#8217; package managements systems.  So before scouring after the source, try searching your package repositories.  If downloading the source is inevitable, the install is quite simple: `$make &#38;&#38; su -c &#8220;make install&#8221;` or `$make &#38;&#38; sudo make install` (for sudoers). Be sure the tun/tap device driver <a href='http://www.alunduil.com/2007/02/20/connecting-a-linux-computer-to-a-vpn/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<h1>Installing VPNC</h1>
<p>VPNC is found in many of the distributions&#8217; package managements systems.  So before scouring after the source, try searching your package repositories.  If downloading the source is inevitable, the install is quite simple:</p>
<ol>
<li>`$make &amp;&amp; su -c &#8220;make install&#8221;` or `$make &amp;&amp; sudo make install` (for sudoers).</li>
<li>Be sure the tun/tap device driver is built into your kernel (vpnc will tell you if it isn&#8217;t when you first run vpnc).</li>
</ol>
<h1>Configuring VPNC</h1>
<p>Edit the configuration file:</p>
<pre>#Interface name tun0
IPSec gateway 199.17.118.250
IPSec ID wireless
IPSec secret XXXXXXXXXXXXXXX
Xauth username (Your DragonMail UserName)
[Xauth password (Your DragonMail Password)]</pre>
<p>Only use the password line if you don&#8217;t want to have to type your password every time.  Please, e-mail your name and dragonID to <a href="mailto:alunduil@alunduil.com">Alex Brandt</a> to get the password that goes in the `IPSec secret` line  (Thanks to Conor Shenk for getting the password decrypted).</p>
<p>If you decide to include your password in the configuration file, then take the necessary precautions (e.g. `chmod 600 /etc/vpnc.conf`).</p>
<h1>Checking Functionality</h1>
<p>Now with everything properly configured and installed,  all you need to do is (as root for now) run `vpnc`.   If it works, congratulations, continue reading to learn how to customize it so certain users can run vpnc without becoming root. If it did not work try going through the steps again and experiment a little.  The first place you should check is the <a href="http://www.unix-at.uni-kl.de/~massar/vpnc/">vpnc homepage</a>.</p>
<h1>Adding Convenience</h1>
<h2>Autostarting VPNC</h2>
<p>If you want vpnc to start every time you start your computer, put it in your `rc.local` file.  This is located in different places based on the distribution you are running; so, please, consult the documentation for your distribution if you don&#8217;t know where it is. You will also want to add `vpnc-disconnect` to your shutdown scripts (this isn&#8217;t required, but is good practice).</p>
<h2>Unprivileged VPNC with Sudo</h2>
<p>If you want to allow a user to connect to the network, but not use a startup script; I recommend installing sudo to handle the security.  Using the `visudo` editor (I know how much some people like vim, but there is a tutor available by running `vimtutor`).  Now, just add this line to your sudoers file (using our handy visudo):</p>
<pre>username    hostname    =   NOPASSWD:/usr/bin/vpnc,/usr/bin/vpnc-disconnect</pre>
<p>Now, your specified user can start the vpn client with the following statement: `sudo vpnc`, and stop it with `sudo vpnc-disconnect`.</p>
<h2>Aliasing VPNC</h2>
<p>Using aliases can make your life even easier. The user can add the following lines to his `~/.bashrc` file to simplify commands requiring the school&#8217;s network.</p>
<pre>alias vpnc="sudo vpnc"
alias vpnc-disconnect="sudo vpnc-disconnect"
alias program="sudo vpnc &amp;&amp; program &amp;&amp; sudo vpnc-disconnect"</pre>
<p>This last one is invaluable if you need to log into the network for a specific program&#8217;s license or whatnot, but use your imagination and you can make your computing experience as easy as you like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alunduil.com/2007/02/20/connecting-a-linux-computer-to-a-vpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 4/6 queries in 0.006 seconds using memcached
Object Caching 299/300 objects using memcached

Served from: www.alunduil.com @ 2012-02-06 08:59:51 -->
