<?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; vpnc</title>
	<atom:link href="http://www.alunduil.com/tag/vpnc/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>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 246/246 objects using memcached

Served from: www.alunduil.com @ 2012-02-06 09:09:23 -->
