<?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>Too Far North &#187; guides</title>
	<atom:link href="http://daffy.za.net/category/guides/feed/" rel="self" type="application/rss+xml" />
	<link>http://daffy.za.net</link>
	<description>Adventures, just a little too far north</description>
	<lastBuildDate>Fri, 18 May 2012 12:17:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Imagine WiMax</title>
		<link>http://daffy.za.net/2011/10/imagine-wimax/</link>
		<comments>http://daffy.za.net/2011/10/imagine-wimax/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 20:42:26 +0000</pubDate>
		<dc:creator>daffy</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[wimax]]></category>
		<guid isPermaLink="false">http://daffy.za.net/?p=1160</guid>
		<description><![CDATA[Yes, WiMax (or WiMAX for those that care). I spent a few weeks, a long time ago, getting the Imagine WiMax Motorola USBw35200 dongle working under Linux using the Sprint 4G Developer software, but it was a nasty hack. A Hack that stopped working recently. Or at least, when I tried to use it this [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, WiMax (or WiMAX for those that care).</p>
<p>I spent a few weeks, a long time ago, getting the Imagine WiMax Motorola USBw35200 dongle working under Linux using the Sprint 4G Developer software, but it was a nasty hack.</p>
<p><span id="more-1160"></span>A Hack that stopped working recently. Or at least, when I tried to use it this week it didn&#8217;t work.</p>
<p>The basics:<br />
Linux Kernel 3.0.0 has the right kernel module.<br />
You need to build the Spring 4G package to get the firmware out, copy it to /lib/firmware<br />
Imagine uses EAP-TLS<br />
You can get the WiMAX and Imagine server certs from the CD-ROM partition on the dongle (disable usb modeswitch before you insert it)</p>
<p>The problem:<br />
You need a Device Private Key to connect, which is stored in a memory location on the dongle itself. I have no idea how to get it out, or how to point the wimax userspace agents to that memory.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://daffy.za.net/2011/10/imagine-wimax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: Multicast Irish Freeview (Saorview)</title>
		<link>http://daffy.za.net/2011/05/howto-multicast-irish-freeview-saorview/</link>
		<comments>http://daffy.za.net/2011/05/howto-multicast-irish-freeview-saorview/#comments</comments>
		<pubDate>Tue, 17 May 2011 19:12:20 +0000</pubDate>
		<dc:creator>daffy</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mumudvb]]></category>
		<guid isPermaLink="false">http://daffy.za.net/?p=990</guid>
		<description><![CDATA[If you&#8217;re in Ireland and you&#8217;ve been watching TV, you probably know about Saorview and the migration to Digital Terrestrial TV. Being a geek, I decided that using a TV to view TV wasn&#8217;t really the way to do things. So instead, I decided to find a way of viewing Saorview on my PC. So [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re in Ireland and you&#8217;ve been watching TV, you probably know about <a title="Saorview" href="http://www.saorview.ie/">Saorview </a>and the migration to Digital Terrestrial TV.</p>
<p>Being a geek, I decided that using a TV to view TV wasn&#8217;t really the way to do things.<br />
So instead, I decided to find a way of viewing Saorview on my PC.</p>
<p>So the easy way, is to get a DVB-T receiver for a PC, and tune to the channel you want to view. I&#8217;m not going to show you how to do this, because the guys at <a title="mpeg4ireland" href="http://www.mpeg4ireland.com/">mpeg4ireland</a> <a href="http://www.mpeg4ireland.com/saorview-dtt-on-a-pc">already have</a>.</p>
<p>I&#8217;m going to show you how to receive <span style="text-decoration: underline;"><strong>every</strong></span> Saorview channel at the same time.<br />
Although I&#8217;m sure you&#8217;re not going to be able to watch them all at the same time&#8230;</p>
<p><span id="more-990"></span>First, you need a DVB-T receiver.</p>
<p>I used a €40 Hauppauge Nova-T USB Stick.</p>
<p>Then you&#8217;ll need MumuDVB. You&#8217;ll need at least version 1.6.1<br />
I got the latest release from <a href="http://mumudvb.braice.net/mumudrupal/fr/node/25">here.<br />
</a>Yes, Ubuntu has a version in their repo&#8217;s, but thats version 1.6. It will NOT work. (well, if you only want to receive the radio stations and the test pattern, then 1.6 is for you!)</p>
<p>Plug your DVB-T card/stick in, make sure it gets recognised and you get an entry in /dev/dvb</p>
<pre>$ ls /dev/dvb/
adapter0</pre>
<p>Install dvb-apps</p>
<pre>sudo apt-get install dvb-apps</pre>
<p>Grab the <a href="http://www.mpeg4ireland.com/download/wideband">wideband tuning file from the mpeg4ireland site</a> and use it to scan for channels.</p>
<pre>scan wideband &gt; channels.conf</pre>
<p>Make sure there&#8217;s something useful in your channels.conf<br />
The start of each line should be a channel name, followed by a frequency.<br />
If there&#8217;s something in there, make a note of the frequency that you see.<br />
In my case, since I&#8217;m getting signal from Three Rock Dublin, my frequency is 738000000 (or 738Mhz)</p>
<p>If you don&#8217;t get anything, you might have some problems. So I suggest doing some research on Saorview using the mpeg4ireland site to see if you have coverage.</p>
<p>Now, unpack MumuDVB and build it.</p>
<pre>tar -zxvf mumudvb-beta.tar.gz
cd mumudvb
autoreconf -i -f
./configure
make
sudo make install</pre>
<p>Then create a config file (mumu.conf). Make sure you set your frequency correctly to the one you extracted from channels.conf earlier. (Divide the long number by 1000000 to get MHz).</p>
<pre>freq=738
autoconfiguration=2
autoconf_radios=1
autoconf_ip_header=239.192
multicast_ttl=5
sap=1
sap_default_group=Saorview
sap_organisation=RTENL</pre>
<p>Now start up MumuDVB using this configuration. There will be loads of debug output, just so you can see what its up to.</p>
<p>sudo mumudvb -c mumu.conf -s -t -vv -d</p>
<p>Then install VLC on your PC (or another PC on the same network).<br />
Start it up, and press Ctrl-P to get the Preferences.<br />
In the bottom left, select Show settings All.<br />
In the Tree, select Playlist &gt; Service Discovery.<br />
Enable Network streams (SAP)<br />
Click Save.<br />
Press Ctrl-L and wait 10 seconds.<br />
You should see a folder caller Saorview.<br />
Expand it, and double click the channel you wish to view.</p>
<p>OR</p>
<p>Launch VLC, and open the Network address udp://@239.192.0.0:1234/ (Should be RTE One)<br />
udp://@239.192.0.1:1234/ should be RTE Two.<br />
udp://@239.192.0.2:1234/ should be TV3.<br />
etc&#8230;</p>
<p>&nbsp;</p>
<p>Voila!<br />
If you poke around in the VLC options, you&#8217;ll notice that Teletext works too.<br />
There&#8217;s even a Program Guide that has the next 7 days line-up in it. (Tools &gt; Program Guide)<br />
Subtitles work, and on some channels there may even be a second Audio stream.</p>
<p>Now do it on another PC, and view a different channel at the same time. Continue until you get bored.<br />
For fun, check the CPU usage of the mumudvb process.<br />
On my system it only uses around 5% of 1 CPU since its not actually doing very much. Not bad&#8230;</p>
<p>The process will be spewing out loads of stats, like Bit error rate, Signal Strength and SNR. Their meaning is self evident.<br />
Every 5 seconds it will also output Traffic information, which is quite interesting since it displays the actual Bandwidth used per channel.</p>
<p>As an exercise for the reader, I&#8217;ll leave you to figure out how to get it to start up in the background.<br />
Personally, I run it in a screen session so I can easily open it up again and see the Signal Strength, etc.</p>
<p>Note: RTE Two is broadcast in HD, and viewing it may be a bit CPU intensive.</p>
]]></content:encoded>
			<wfw:commentRss>http://daffy.za.net/2011/05/howto-multicast-irish-freeview-saorview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN mini-guides: Mikrotik RouterOS VPN Client</title>
		<link>http://daffy.za.net/2010/02/openvpn-mini-guides-mikrotirk-routeros-vpn-client/</link>
		<comments>http://daffy.za.net/2010/02/openvpn-mini-guides-mikrotirk-routeros-vpn-client/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 09:17:48 +0000</pubDate>
		<dc:creator>daffy</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mikrotik]]></category>
		<category><![CDATA[openvpn]]></category>
		<guid isPermaLink="false">http://daffy.za.net/?p=466</guid>
		<description><![CDATA[In the last article I showed how to configure a Mikrotik RouterOS router as an OpenVPN Server. In this mini-guide, I&#8217;ll show how to configure a Mikrotik RouterOS router as an OpenVPN Client, and connect it to the server. First, you&#8217;ll need to copy a client certificate to your client router. You can use this [...]]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://daffy.za.net/2010/02/openvpn-mini-guides-mikrotik-routeros-vpn-server/">last article</a> I showed how to configure a Mikrotik RouterOS router as an OpenVPN Server.</p>
<p>In this mini-guide, I&#8217;ll show how to configure a Mikrotik RouterOS router as an OpenVPN Client, and connect it to the server.<span id="more-466"></span></p>
<p>First, you&#8217;ll need to copy a client certificate to your client router. You can use <a href="http://daffy.za.net/2010/02/openvpn-mini-guides-certificates/">this guide</a> to help you generate one if you haven&#8217;t already done so. Then import them into RouterOS, as per the instructions.</p>
<p>Then you need to create a PPP Profile.</p>
<pre>/ppp profile
add change-tcp-mss=default comment="" name=openvpn-out only-one=default \
use-compression=default use-encryption=default use-vj-compression=default</pre>
<p>Next, you need to add the ovpn-client interface. Make sure that the certificate is the one that you imported, and that the username and password match what you configured on your server.</p>
<pre>/interface ovpn-client
add add-default-route=no auth=sha1 certificate=client1 cipher=aes128 \
comment="" connect-to= disabled=no mode=ip name=OVPN-Client \
user=client 1 password=password1 port=1194 profile=openvpn-out</pre>
<p>And thats it! Pretty simple really&#8230;<br />
If you want all your internet traffic to go over the VPN, change the add-default-route=no to yes, and it will add the default route down the VPN every time it connects.</p>
]]></content:encoded>
			<wfw:commentRss>http://daffy.za.net/2010/02/openvpn-mini-guides-mikrotirk-routeros-vpn-client/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN mini-guides: Mikrotik RouterOS VPN Server</title>
		<link>http://daffy.za.net/2010/02/openvpn-mini-guides-mikrotik-routeros-vpn-server/</link>
		<comments>http://daffy.za.net/2010/02/openvpn-mini-guides-mikrotik-routeros-vpn-server/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 11:20:42 +0000</pubDate>
		<dc:creator>daffy</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mikrotik]]></category>
		<category><![CDATA[openvpn]]></category>
		<guid isPermaLink="false">http://daffy.za.net/?p=459</guid>
		<description><![CDATA[In the first mini-guide of this series, I showed how to generate SSL Certificates for use with an OpenVPN setup. This next mini-guide will show how to configure a Mikrotik RouterOS router for use as an OpenVPN Server. This is where your various devices will &#8220;dial-in&#8221; to. Obviously, everyone&#8217;s network is different. So I&#8217;ll try [...]]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://daffy.za.net/2010/02/openvpn-mini-guides-certificates/">first mini-guide</a> of this series, I showed how to generate SSL Certificates for use with an OpenVPN setup.</p>
<p>This next mini-guide will show how to configure a Mikrotik RouterOS router for use as an OpenVPN Server. This is where your various devices will &#8220;dial-in&#8221; to.</p>
<p>Obviously, everyone&#8217;s network is different. So I&#8217;ll try and make this as generic as possible, but without straying from my policy of being as straight forward as I need to be.<br />
So, hopefully, you already have a configured RouterOS router, thats already part of your network.</p>
<p><span id="more-459"></span>Designing the VPN Network</p>
<p>The first step of any network change, is to decide where we want to be when we&#8217;re done.<br />
This mini-guide is going to show you how to create layer-3 tunnels from a remote device, to your home/office gateway router (running RouterOS).</p>
<p>Because we&#8217;re doing a layer-3 configuration, you&#8217;ll need to put aside a range of IPs for your VPN clients.<br />
In this setup, I&#8217;m going to use 10.0.0.1/24 for our LAN, 10.1.0.1/24 for the VPN.</p>
<p>We create an IP Pool, which RouterOS will use to select and assign IPs for the VPN clients. Start at the second IP, since we&#8217;ll use the first IP for the server itself.</p>
<pre>/ip pool add name=ovpn-pool ranges=10.1.0.2-10.1.0.100</pre>
<p>Then we create an PPP Profile, which is used to define the settings of the session created with a VPN Client.</p>
<pre>/ppp profile
add change-tcp-mss=default comment="" local-address=10.1.0.1 \
name="openvpn-in" only-one=default remote-address=openvpn-pool \
use-compression=default use-encryption=required use-vj-compression=default</pre>
<p>Configure the OpenVPN Server. For this, we&#8217;ll need to remember the name of the imported server certificate that you generated in the <a href="http://daffy.za.net/2010/02/openvpn-mini-guides-certificates/">previous article</a>.</p>
<pre>/interface ovpn-server server set auth=sha1,md5 certificate=server-cert \
cipher=blowfish128,aes128,aes192,aes256 default-profile=openvpn-in \
enabled=yes keepalive-timeout=disabled max-mtu=1500 mode=ip netmask=24 \
port=1194 require-client-certificate=no</pre>
<p>Configure your Firewall to allow inbound OpenVPN connections, and allow the OpenVPN Clients to NAT out of your Internet connection (if you want to allow them internet access).</p>
<pre>/ip firewall filter add action=accept chain=input disabled=no protocol=tcp dst-port=1194
/ip firewall nat add action=masquerade chain=src-nat out-interface=</pre>
<p>Then, for every user, you should define a username and password. This also gives you the ability to assign each client a fixed IP, and you&#8217;ll notice that in the ip pool definition I left a chunk of IPs at the end of the /24 free for this.</p>
<pre>/ppp secret add disabled=no name="client1" password="password1"</pre>
<p>This user will have a static IP assigned.</p>
<pre>
/ppp secret add disabled=no name="client2" password="password2" remote-address=10.1.0.101</pre>
<p>And that is the OpenVPN Server, all configured.<br />
In the next mini-guide, I&#8217;ll show you got to set up a Mikrotik RouterOS router as an OpenVPN client.</p>
]]></content:encoded>
			<wfw:commentRss>http://daffy.za.net/2010/02/openvpn-mini-guides-mikrotik-routeros-vpn-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenVPN mini-guides: Certificates</title>
		<link>http://daffy.za.net/2010/02/openvpn-mini-guides-certificates/</link>
		<comments>http://daffy.za.net/2010/02/openvpn-mini-guides-certificates/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 22:12:25 +0000</pubDate>
		<dc:creator>daffy</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mikrotik]]></category>
		<category><![CDATA[openvpn]]></category>
		<guid isPermaLink="false">http://daffy.za.net/?p=449</guid>
		<description><![CDATA[In this mini-howto, I&#8217;m going to show how to generate Certificates for use with OpenVPN. Its part of a series of posts that will hopefully include: Configuring a Mikrotik RouterOS router as a Server Configuring a Mikrotik RouterOS router as a Client Configuring a Linux machine as a Client Configuring a DD-WRT router as a [...]]]></description>
			<content:encoded><![CDATA[<p>In this mini-howto, I&#8217;m going to show how to generate Certificates for use with OpenVPN.</p>
<p>Its part of a series of posts that will hopefully include:<br />
Configuring a Mikrotik RouterOS router as a Server<br />
Configuring a Mikrotik RouterOS router as a Client<br />
Configuring a Linux machine as a Client<br />
Configuring a DD-WRT router as a Client</p>
<p>And <a href="http://freagh.com/">Tomtom</a> will be working with me to produce instructions on connecting to the server from an iPod Touch, iPhone and Nokia N900.</p>
<p>So, lets begin&#8230;<span id="more-449"></span></p>
<p>All the Certificates that we generate, for the server and clients, need to be signed by the same Certificate Authority.<br />
Then, we can generate the server and client certificates.</p>
<h2>Generating Certificates</h2>
<p>Thankfully, there&#8217;s an easy-to-use set of scripts that come with the linux OpenVPN packages, called easy-rsa. So we&#8217;ll first be needing a Debian/Ubuntu machine to follow this howto.</p>
<p>First, install OpenVPN on a linux machine.</p>
<pre>sudo apt-get install openvpn</pre>
<p>Then, lets move the easy-rsa scripts to somewhere useful and easier to remember, and create a directory where we&#8217;ll store the certificates.</p>
<pre>sudo mkdir /etc/openvpn/{easy-rsa,keys}
sudo cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa</pre>
<p>Then, change to the /etc/openvpn/easy-rsa directory and edit the configuration files.</p>
<pre>cd /etc/openvpn/easy-rsa
sudo vi vars</pre>
<p>Edit the file, changing a few of the variables as below:</p>
<pre>export EASY_RSA="/etc/openvpn/easy-rsa"
export KEY_DIR="/etc/openvpn/keys"</pre>
<p>If you want, you can change the values for KEY_COUNTRY, KEY_PROVINCE, KEY_CITY, KEY_ORG and KEY_EMAIL to values that make sense for your setup. Now, since we&#8217;ll be setting environment variables, we need an environment.</p>
<pre>sudo bash
source vars</pre>
<p>Take careful notice of that warning. You should only run clean-all ONCE, and this is the time you&#8217;re going to do it.</p>
<pre>./clean-all</pre>
<p>Thats all thats needed to setup the easy-rsa scripts.<br />
Lets get on with generating the keys.<br />
First, the CA (Certificate Authority)</p>
<pre>./pkitool --initca</pre>
<p>Next, we generate the Certificate for the OpenVPN Server.</p>
<pre>./pkitool --server ovpn-server</pre>
<p>Then, for each client, you generate a uniquely named client certificate.</p>
<pre>./pkitool client1</pre>
<p>Repeat for each client</p>
<p>If you want to come back later in a few days to generate a new certificate for a new client, here&#8217;s a quick list of commands to do that.</p>
<pre>sudo bash
cd /etc/openvpn/easy-rsa
source vars
./pkitool client99</pre>
<p>Copying certificates to the RouterOS OpenVPN Server.<br />
Using whatever means you prefer, copy the ca.crt, ovpn-server.crt and ovpn-server.key to your RouterOS router.<br />
I prefer using scp.</p>
<pre>scp ca.crt ovpn-server.crt ovpn-server.key admin@&lt;IP of Router&gt;:.</pre>
<p>Then, on the RouterOS Router, you should import these certificates.</p>
<pre>/certificate import=ca.crt
/certificate import=ovpn-server.crt
/certificate import=ovpn-server.key</pre>
<p>You may want to rename the entries to something you&#8217;ll understand, since they&#8217;ll be named cert1 and cert2 by default.</p>
<p>For your clients, you&#8217;ll need ca.crt, clientX.crt and clientX.key</p>
<p><strong><span style="color: #ffffff;">NEVER</span></strong> distribute ca.key, not even to your OpenVPN Server.</p>
]]></content:encoded>
			<wfw:commentRss>http://daffy.za.net/2010/02/openvpn-mini-guides-certificates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why is District 9 awesome?</title>
		<link>http://daffy.za.net/2009/09/why-is-district-9-awesome/</link>
		<comments>http://daffy.za.net/2009/09/why-is-district-9-awesome/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 22:04:24 +0000</pubDate>
		<dc:creator>daffy</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[district 9]]></category>
		<category><![CDATA[movies]]></category>
		<guid isPermaLink="false">http://daffy.za.net/?p=409</guid>
		<description><![CDATA[It just is. Its a Sci-Fi Movie, it has aliens, and people go splat alot. Its great. And best of all, there&#8217;s a guy with a South African accent, swearing in Afrikaans. Thats the last thing I thought I&#8217;d see on an Irish cinema screen. I could go into all the details, comment on the [...]]]></description>
			<content:encoded><![CDATA[<p>It just is.</p>
<p>Its a Sci-Fi Movie, it has aliens, and people go splat alot.</p>
<p>Its great.<br />
<span id="more-409"></span></p>
<p>And best of all, there&#8217;s a guy with a South African accent, swearing in Afrikaans. Thats the last thing I thought I&#8217;d see on an Irish cinema screen.</p>
<p>I could go into all the details, comment on the obvious parallels to Apartheid and all that, but that just made the movie better. It wasn&#8217;t the reason I enjoyed it, but it certainly added to the experience.</p>
<p>Seeing Johannesburg like that (and &#8220;bolting&#8221; 3 giant Heli-pads to the roof of the Carlton Hotel, and then blowing bits of it up), was priceless.</p>
<p>Just go see it, especially if you&#8217;re a Sci-Fi person. The Skop, skiet en donner aspect makes it awesome!</p>
]]></content:encoded>
			<wfw:commentRss>http://daffy.za.net/2009/09/why-is-district-9-awesome/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Monster VPN Project &#8211; Installing OpenVPN</title>
		<link>http://daffy.za.net/2009/04/monster-vpn-project-installing-openvpn/</link>
		<comments>http://daffy.za.net/2009/04/monster-vpn-project-installing-openvpn/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 10:13:30 +0000</pubDate>
		<dc:creator>daffy</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[vpn]]></category>
		<guid isPermaLink="false">http://daffy.za.net/?p=365</guid>
		<description><![CDATA[The next part of this project, is to install OpenVPN. Again, in Debian, this is pretty simple. So make sure you&#8217;re logged in as root, and run the following: apt-get install openvpn See, I said it was easy. Now there&#8217;s a little more of a complex part, where we setup the CA and utilities needed [...]]]></description>
			<content:encoded><![CDATA[<p>The next part of <a href="http://daffy.za.net/2009/04/monster-vpn-project/">this project</a>, is to install OpenVPN.  Again, in Debian, this is pretty simple.  So make sure you&#8217;re logged in as root, and run the following:</p>
<pre>  apt-get install openvpn</pre>
<p>See, I said it was easy.  Now there&#8217;s a little more of a complex part, where we setup the CA and utilities needed for generating Certificates for the Server and all the Clients.</p>
<p><span id="more-365"></span></p>
<p>I like to move the easy-rsa directory into my /etc/openvpn directory, since its easier to work with it there (and easier to remember where it is). So run the following command to copy it across:</p>
<pre>mkdir /etc/openvpn/{keys,easy-rsa}
cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0/* /etc/openvpn/easy-rsa/ </pre>
<p>Then you need to edit your /etc/openvpn/easy-rsa/vars file, and make a few changes. I&#8217;ve set the following variables.</p>
<pre><span style="font-family: Georgia; line-height: 19px; white-space: normal;">e</span>xport EASY_RSA="/etc/openvpn/easy-rsa/"
export KEY_DIR="/etc/openvpn/keys"</pre>
<p>And I tweaked my KEY_ variables so I don&#8217;t have to fill them in every time:</p>
<p>Then, you need to setup your environment by running</p>
<pre><span style="font-family: Georgia; line-height: 19px; white-space: normal;">c</span>d /etc/openvpn/easy-rsa
. vars
./clean-all</pre>
<p>Careful with the clean-all command. Only run this ONCE, when you FIRST start this setup. It deletes ALL your keys, so you have a blank slate!</p>
<p>Now you build your own Certificate Authority (CA) certificate and key</p>
<pre>./build-ca</pre>
<p>Then build your Diffie-Hellman Paramaters (for SSL/TLS connections)</p>
<pre>./build-dh</pre>
<p>Then, build a key for your OpenVPN server. This generates a server.crt and server.key<br />
Make sure you set the CommonName attribute to something meaningful for you (and unique) </p>
<pre>./build-key-server server</pre>
<p>Now you&#8217;ll want to generate a key for each of the connecting clients. We can do one now, and then you can come back to follow these steps to add more at a later stage. Make sure the CommonName attribute is unique in all of these. Infact, I&#8217;d urge you to make them correspond to the username that the will authenticate with (this will be stored in the database).</p>
<pre>./build-key client1</pre>
<p>The basics of RSA dictate that anything with a .key is to be kept private, and is relevant only to the machine it was intended for, and the .crt is for your local machine, and the remote end too.</p>
<p>So: <br />
server.key never leaves the server<br />
server.crt gets copied to the client<br />
client1.key gets copied to the client<br />
client1.crt gets copied to the client<br />
dh1024.pem gets copied to the client<br />
ca.crt gets copied to the client.<br />
ca.key is super secret. If someone got their hands on it, they could create more client certificates, which is a bad thing &#8482;. </p>
<p>And thats all I&#8217;ll cover in this Howto.</p>
<p>In the next one, we&#8217;ll install radiusplugin, and I&#8217;ll show you the configuration files needed for the server and clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://daffy.za.net/2009/04/monster-vpn-project-installing-openvpn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monster VPN Project &#8211; Installing MySQL</title>
		<link>http://daffy.za.net/2009/04/monster-vpn-project-installing-mysql/</link>
		<comments>http://daffy.za.net/2009/04/monster-vpn-project-installing-mysql/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 17:44:46 +0000</pubDate>
		<dc:creator>daffy</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[vpn]]></category>
		<guid isPermaLink="false">http://daffy.za.net/?p=357</guid>
		<description><![CDATA[As with all projects, you have to start by laying the basic blocks to build the interesting parts on. So this is where we will begin the Monster VPN Project I&#8217;m assuming you&#8217;ve already got Debian installed. I&#8217;m not going into this, as its been documented all over the place, and isn&#8217;t that much of [...]]]></description>
			<content:encoded><![CDATA[<p>As with all projects, you have to start by laying the basic blocks to build the interesting parts on.</p>
<p>So this is where we will begin the <a href="http://daffy.za.net/2009/04/monster-vpn-project/">Monster VPN Project</a></p>
<p>I&#8217;m assuming you&#8217;ve already got Debian installed. I&#8217;m not going into this, as its been documented all over the place, and isn&#8217;t that much of a problem. (And in all honesty, if you struggle with this, you might want to reconsider continueing this project) </p>
<p>The best place to start on this project, is to install MySQL. Since its going to be the database that stores all the data for the VPN&#8217;s, its best to have this in place before you start with the rest of it.</p>
<p><span id="more-357"></span></p>
<p>Thankfully, this is pretty simple in Debian.</p>
<p>Make sure you&#8217;re logged in as root, and run</p>
<pre>apt-get install mysql-client-5.0 mysql-common mysql-server-5.0 </pre>
<p>This will install the binaries needed to run a MySQL server, and the client. But since we&#8217;ll be compiling radiusplugin from source, we also need the -dev libraries for the MySQL client, so run the following too:</p>
<pre>apt-get install libmysqlclient15-dev</pre>
<p>Well, thats it! I did say it was easy&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://daffy.za.net/2009/04/monster-vpn-project-installing-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monster VPN Project</title>
		<link>http://daffy.za.net/2009/04/monster-vpn-project/</link>
		<comments>http://daffy.za.net/2009/04/monster-vpn-project/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 10:32:14 +0000</pubDate>
		<dc:creator>daffy</dc:creator>
				<category><![CDATA[guides]]></category>
		<category><![CDATA[freeradius]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[radiusplugin]]></category>
		<category><![CDATA[vpn]]></category>
		<guid isPermaLink="false">http://daffy.za.net/?p=353</guid>
		<description><![CDATA[I&#8217;ve decided to try my hand at creating a Virtual Network service. The idea is to have a simple web interface where I can add/remove/edit user accounts, Generate Certificates for endpoints and check users usage. RADIUS is a fantastic AAA (Accounting Authentication And Authorization) protocol, which is used for almost everything ISP related (dial-up, dsl, wimax, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to try my hand at creating a Virtual Network service.</p>
<p>The idea is to have a simple web interface where I can add/remove/edit user accounts, Generate Certificates for endpoints and check users usage.</p>
<p>RADIUS is a fantastic AAA (Accounting Authentication And Authorization) protocol, which is used for almost everything ISP related (dial-up, dsl, wimax, wifi hotspots), so it seems only fitting that I use it for this application. It also means I can integrate other things into it, without serious modification (since its a standard). I may even start using it for building my own Hotspot controller for Mikrotik RouterOS based hotspots.</p>
<p><span id="more-353"></span></p>
<p>Here&#8217;s the plan:<br />
<a href="http://debian.org/">Debian</a> as the Linux flavour<br />
<a href="http://www.mysql.com/">MySQL</a> to store all the authentication and configuration information (<a href="http://daffy.za.net/2009/04/monster-vpn-project-installing-mysql/">howto</a>)<br />
<a href="http://freeradius.org/">FreeRADIUS</a> to provide an interface into getting at the information, and for accounting<br />
<a href="http://openvpn.org/">OpenVPN</a> for the actual VPN server<br />
<a href="http://www.nongnu.org/radiusplugin/">RadiusPlugin</a> for making OpenVPN play nicely with FreeRADIUS <br />
<a href="http://httpd.apache.org/">Apache HTTP server</a>, since its going to be a web frontend<br />
<a href="http://php.net/">PHP</a> for the service side part of the web frontend </p>
<p>I&#8217;ve followed a few guides to get this going, and <a href="http://www.roessner-net.com/?p=4">this one</a> is possibly the most useful one I&#8217;ve come across.</p>
<p>So far, I&#8217;ve had bits and pieces working, but I haven&#8217;t managed to get them all working together at the same time.</p>
<p>Over the next few days, I&#8217;ll be documenting (in as much details as I can remember), the steps needed to set this up. I&#8217;m doing this for personal documentation purposes as well as to share with the community should anyone else want to do something similar.</p>
<p>So stay tuned, subscribe to my <a href="http://daffy.za.net/feed">RSS feed</a>, and keep your eyes open for my follow-up posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://daffy.za.net/2009/04/monster-vpn-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

