<?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>Fri, 13 Aug 2010 17:25:11 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.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 &#38; Configuring VPNC VPNC is found in many of the distributions&#8217; package managements systems.  So, before you go scouring after the source try searching your package repositories. If you must download the source; the install is quite simple: $make &#38;&#38; su -c "make install" or $make &#38;&#38; sudo make install (for sudoers). Check that [...]]]></description> <content:encoded><![CDATA[<h1>Installing &amp; Configuring VPNC</h1><p>VPNC is found in many of the distributions&#8217; package managements systems.  So, before you go scouring after the source try searching your package repositories.  If you must download the source; the install is quite simple: <code>$make &amp;&amp; su -c "make install"</code> or <code>$make &amp;&amp; sudo make install</code> (for sudoers).</p><p>Check that the tun/tap device driver is built into your kernel (vpnc will tell you if it isn&#8217;t when you first run vpnc).</p><p>Edit the configuration file:</p><pre><code>#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)]
</code></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 <code>IPSec secret</code> 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. <code>chmod 600 /etc/vpnc.conf</code>).</p><h1>Checking Functionality</h1><p>Now, if everything is properly configured and installed then all you need to do is (as root for now) run <code>vpnc</code>.   If it works congratulations, continue reading to learn how to make 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 everytime you start your computer put it in your <code>rc.local</code> 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 <code>vpnc-disconnect</code> to your shutdown scripts (this isn&#8217;t required, but is good practice).</p><h2>Unpriveleged VPNC with Sudo</h2><p>If you want to have a user be able to connect to the network, but not use a startup script; I recommend installing sudo to handle the security.  Using the <code>visudo</code> editor (I know how much some people like vim, but there is a tutor available by running <code>vimtutor</code>).  Now, just add this line to your sudoers file (using our handy visudo): pre>username    hostname    =   NOPASSWD:/usr/bin/vpnc,/usr/bin/vpnc-disconnect Now, your specified user can start the vpn client with the following statement: <code>sudo vpnc</code>, and stop it with <code>sudo vpnc-disconnect</code>.</p><h2>Aliasing VPNC</h2><p>Using aliases you can make your life even easier. The user can add the following lines to his <code>~/.bashrc</code> file to simplify commands requiring the school&#8217;s network. alias vpnc=&#8221;sudo vpnc&#8221; alias vpnc-disconnect=&#8221;sudo vpnc-disconnect&#8221; alias program=&#8221;sudo vpnc &amp;&amp; program &amp;&amp; sudo vpnc-disconnect&#8221; 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/

Minified using apc
Page Caching using memcached (user agent is rejected)
Database Caching 2/12 queries in 0.016 seconds using memcached

Served from: www.alunduil.com @ 2010-09-09 07:50:29 -->