<?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"
	>

<channel>
	<title>This Geek</title>
	<atom:link href="http://www.midnightreign.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.midnightreign.org</link>
	<description>Just farting in the wind...</description>
	<pubDate>Thu, 19 Jun 2008 15:01:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>How to access the web gui of a modem/router behind an IPCop or other Linux router/firewall</title>
		<link>http://www.midnightreign.org/2008/06/19/how-to-access-the-web-gui-of-a-modemrouter-behind-an-ipcop-or-other-linux-routerfirewall/</link>
		<comments>http://www.midnightreign.org/2008/06/19/how-to-access-the-web-gui-of-a-modemrouter-behind-an-ipcop-or-other-linux-routerfirewall/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 14:54:52 +0000</pubDate>
		<dc:creator>TG</dc:creator>
		
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.midnightreign.org/?p=228</guid>
		<description><![CDATA[For those of you who are using an ADSL modem or any kind of router behind an IPCop, it can sometimes become an annoying process to access the router&#8217;s web gui so that you can view connection statistics, etc. Usually you need to unplug the router and then hook it up directly to your local [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who are using an ADSL modem or any kind of router behind an IPCop, it can sometimes become an annoying process to access the router&#8217;s web gui so that you can view connection statistics, etc. Usually you need to unplug the router and then hook it up directly to your local LAN, etc. Whatever you need to do, it can be annoying.</p>

<p>I have come up with a way around that. It just involves using some nifty tricks via SSH, and I will show you how to configure your system with minimal fuss in order to get to your router&#8217;s web gui. It&#8217;s easy to modify so you can access any other port too.</p>

<p>You will need:</p>

<ul>
<li>A copy of <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a></li>
<li>A Web Browser</li>
</ul>

<p>Firstly, you need to enable one or two options in your IPCop&#8217;s web gui.
Access the IPCop web gui using your browser, and select System -> SSH Access.</p>

<p>Login when prompted using your admin user.</p>

<p>If you haven&#8217;t already, enable &#8216;SSH Access&#8217;, and in particular, enable &#8216;Allow TCP Forwarding&#8217;. You should have at least &#8216;Allow password based authentication&#8217; as well.</p>

<p>Note that you access SSH on port 222.</p>

<p>Save the settings, and you can close your session.</p>

<p>If you&#8217;re not using an IPCop, just ensure that you can access your firewall via ssh.</p>

<p>Now comes the &#8220;hard&#8221; part (which is actually pretty easy as you will see).</p>

<p>Extract the putty archive somewhere useful, and create a shortcut to the putty.exe somewhere convenient. I usually create the shortcut on my Quick Launch toolbar. Or  you can just run the exe directly. It&#8217;s entirely up to you. I&#8217;m not going to tell you how to manage your software. <img src='http://www.midnightreign.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<p>Run putty, and you will be presented with a confusing interface.  The basic idea is that you type in the IP or hostname of the machine you want to connect to, select the type of connection, and hit enter, which launches the connection.</p>

<p>In our case, we are going to be creating a couple of saved sessions, so that all we will need to do is to double click the entry in the saved sessions list, and the connection  will be established, or the command will be executed.</p>

<p>In the hostname field, enter the hostname or ip address of your IPCop firewall. By default, the connection type will be SSH. Set the port field to 222 (Adjust as necessary for your own firewall).</p>

<p>Now since we will ALWAYS be logging in to the firewall as user &#8216;root&#8217;, we can set the username so that we don&#8217;t always have to type it. This step is optional.
In the left &#8220;tree&#8221;, expand &#8216;Connection&#8217;, and select &#8216;Data&#8217;.  In the very top field, under &#8216;Auto-login username&#8217; enter &#8216;root&#8217; (without the quotes).</p>

<p>On the left tree, select &#8216;Session&#8217; at the top to return to the session configuration page.</p>

<p>In the &#8216;Saved Sessions&#8217; field, give your session a name. Use &#8216;IPCop Console&#8217; if it will make you feel better, and then click the &#8216;Save&#8217; button. You now have a saved session. Since the session is already technically loaded, we can click the &#8216;Open&#8217; button at the bottom of the window to launch the session, or you can simply double click the new &#8216;IPCop Console&#8217; saved session to launch it.</p>

<pre><code>Using username "root".
root@ipcop's password:
</code></pre>

<p>Since we set the &#8216;auto login&#8217; feature, the username will automatically be entered for us, and you will just be prompted for the password.  Enter the IPCop root password, and you should be presented with a colourful prompt.</p>

<pre><code>Using username "root".
root@dementor.hogwarts.dom's password:
Last login: Sun Apr 13 13:10:13 2008 from blah
root@ipcop:~ #
</code></pre>

<p>This is good enough for our purposes, so just press CTRL+D to quit the session. &#8216;logout&#8217; or &#8216;exit&#8217; will work just as well.</p>

<p>When using IPCop to establish the pppoe sessions for us, it sets the RED interface to an IP address of 1.1.1.1, which is not very helpful for us if we want to talk to a modem/router using an IP address of say 192.168.1.254 (Billion default).  Therefore what we need to do is to add an ip address of the same network that your router uses to the IPCop RED interface.</p>

<p>NOTE: If you are using a different modem/router brand, simply adjust the subnets / addresses as necessary.</p>

<p>Since the router is by default using 192.168.1.254, we can configure the IPCop using ANY other address on the same subnet (since we know that there isn&#8217;t anything else using that subnet on our RED interface anyway). For simplicity&#8217;s sake, I will use 192.168.1.1 for the RED interface.</p>

<p>We are now going to create another session in putty to add the IP address 192.168.1.1 to the red interface for us automatically.</p>

<p>Start up putty again. Select the IPCop Console session, and press the LOAD button. NOTE - we do NOT want to establish a session at this time.</p>

<p>The settings for the IPCop Console connection will now be loaded in to putty.  In the left tree, expand &#8216;Connection&#8217;, and then select &#8216;SSH&#8217;.
At the top of the page, you will see a field &#8216;Remote command&#8217;.  This is where we will add the command that putty will execute for us.</p>

<p>Type the text below in to the &#8216;Remote command&#8217; field.  Change 192.168.1.1 to whatever address you would need to use to talk to your brand of modem/router.</p>

<pre><code>/sbin/ip addr add 192.168.1.1/24 dev eth1
</code></pre>

<p>In the tree at the left, click &#8216;Session&#8217; at the top.
Now, under &#8216;Saved Sessions&#8217;, change the name of the session to something else. In my case, I used &#8216;ADSL Router Access Start&#8217;. Below the &#8216;Saved Sessions&#8217; field, you will see an option &#8216;Close window on exit&#8217;. Set the option &#8216;only on clean exit&#8217; and then click the SAVE button.</p>

<p>In the left tree, select &#8216;Connections -> SSH&#8217; again.  In the remote command field, change the word &#8216;add&#8217; to &#8216;del&#8217; so that the remote command looks like this:</p>

<pre><code>/sbin/ip addr del 192.168.1.1/24 dev eth1
</code></pre>

<p>In the tree at the left, click &#8216;Session&#8217; at the top again, and change the field under &#8216;Saved Sessions&#8217; to something else. I used &#8216;ADSL Router Access Stop&#8217; and click the SAVE button.</p>

<p>Now you should have three sessions in your session list:  IPCop Console, ADSL Router Access Start, and ADSL Router Access Stop.</p>

<p>We have one more session to create.</p>

<p>In the Saved Sessions list, select IPCop Console, and press the LOAD button.</p>

<p>In the tree at the left, select &#8216;Connection -> SSH&#8217; again.  This time we leave &#8216;Remote command&#8217; blank, but now we need to set the option &#8216;Don&#8217;t start a shell or command at all&#8217;. Once you have selected that, in the left tree, expand the &#8216;SSH&#8217; node that is currently highlighted, and then select &#8216;Tunnels&#8217;.</p>

<p>We&#8217;re only concerned with the options near the bottom, Source Port, Destination, etc.</p>

<p>Enter a source port.  This can be anything you like (up to 65535) - AS LONG AS IT IS NOT IN USE ON YOUR COMPUTER.
<em>If you want to see what ports are currently in use on your computer, open a command prompt, and type &#8216;netstat -an&#8217;. You&#8217;re concerned with the column called &#8216;Local Address&#8217;, which will have a whole bunch of entries like 127.0.0.1:137 or 0.0.0.0:500, with various other addresses on your machine. The part that you&#8217;re concerned with is the bit after the &#8220;:&#8221; - so x.x.x.x:400 &lt;&#8211; that is the port.  If the port you want to use is listed here, you will need to choose something else - as long as it doesn&#8217;t appear on that list. NOTE - on Vista you might need to run the command prompt as an Administrator (Right click the shortcut).</em></p>

<p>In my case, I just used the port 12345.  Enter the destination.  This will be the modem/router IP address, and the web port. So I used 192.168.1.254:80(Port 80 is the port that web servers listen on).</p>

<p>Click &#8216;ADD&#8217;.</p>

<p>In the box above that section (called Forwarded Ports), you will now see an entry: </p>

<pre><code>L12345    192.168.1.254:80
</code></pre>

<p>In the left tree, click &#8216;Session&#8217;, and under &#8216;Saved Sessions&#8217;, give the session a new name. I used &#8216;ADSL Router Port Forward&#8217; and click SAVE.</p>

<p>Congratulations. The configuration is now complete.</p>

<p>How to use it:</p>

<p>Start Putty. Double click the &#8216;ADSL Router Access Start&#8217; session.  Enter the password.  Almost immediately, the putty window will close. THIS IS NORMAL.  All putty did was tell the IPCop to add the IP Address of 192.168.1.1 to the RED interface so that we can access the router.
If you run this command more than once, nothing bad will happen, so if you&#8217;re not sure if you ran it,  you can safely launch it again.</p>

<p>Start Putty again. This time, double click the &#8216;ADSL Router Port Forward&#8217;. Enter the password, and then nothing much will happen. You will not get a command prompt, nor will anything further appear on the screen. DO NOT CLOSE THE WINDOW. Just minimize it to get it out the way.</p>

<p>Now open up your web browser, and enter the url: <a href="http://localhost:12345">http://localhost:12345</a>.  You should be prompted to enter your modem/router password. Congratulations, you are now accessing the configuration pages for your modem/router.</p>

<p>When you are finished with the modem configuration, you can close the putty window that you opened previously.  This will terminate the tunnel through your IPCop to your modem, and accessing localhost on port 12345 will no longer work.</p>

<p>While not entirely necessary, you can start putty, and launch the &#8216;ADSL Router Access Stop&#8217; session, which will remove the 192.168.1.1 ip address off the RED interface.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.midnightreign.org/2008/06/19/how-to-access-the-web-gui-of-a-modemrouter-behind-an-ipcop-or-other-linux-routerfirewall/feed/</wfw:commentRss>
		</item>
		<item>
		<title>She&#8217;s here!</title>
		<link>http://www.midnightreign.org/2008/06/03/shes-here/</link>
		<comments>http://www.midnightreign.org/2008/06/03/shes-here/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 19:45:04 +0000</pubDate>
		<dc:creator>TG</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.midnightreign.org/?p=227</guid>
		<description><![CDATA[She was born at 13h36, weighing exactly 3kg. She&#8217;s tiny, but beautiful.

I don&#8217;t know why, but as soon as I saw my child for the first time, I cried.

I&#8217;ve cried at all three of my children&#8217;s births. Does that make me a wimp?
]]></description>
			<content:encoded><![CDATA[<p>She was born at 13h36, weighing exactly 3kg. She&#8217;s tiny, but beautiful.</p>

<p>I don&#8217;t know why, but as soon as I saw my child for the first time, I cried.</p>

<p>I&#8217;ve cried at all three of my children&#8217;s births. Does that make me a wimp?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.midnightreign.org/2008/06/03/shes-here/feed/</wfw:commentRss>
		</item>
		<item>
		<title>It&#8217;s happening again</title>
		<link>http://www.midnightreign.org/2008/06/02/its-happening-again/</link>
		<comments>http://www.midnightreign.org/2008/06/02/its-happening-again/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 21:43:14 +0000</pubDate>
		<dc:creator>TG</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.midnightreign.org/?p=226</guid>
		<description><![CDATA[I just got home from the hospital where I booked my wife in&#8230; to the maternity ward.
Our third child, another daughter, will be born tomorrow via C/Section.

It&#8217;s quite amazing.  Every flippin&#8217; time they put her in the same ward, in the same bed. :p
I guess it means everything will be just fine  

It&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I just got home from the hospital where I booked my wife in&#8230; to the maternity ward.
Our third child, another daughter, will be born tomorrow via C/Section.</p>

<p>It&#8217;s quite amazing.  Every flippin&#8217; time they put her in the same ward, in the same bed. :p
I guess it means everything will be just fine <img src='http://www.midnightreign.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p>It&#8217;s been 5 years now since our last child.  Everything is scary again in that &#8216;Oh boy, here we go again&#8217; kind of fashion, but at least we know what we&#8217;re doing. Well, I hope we know what we&#8217;re doing. :p</p>
]]></content:encoded>
			<wfw:commentRss>http://www.midnightreign.org/2008/06/02/its-happening-again/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Safari on Windows</title>
		<link>http://www.midnightreign.org/2008/05/10/safari-on-windows/</link>
		<comments>http://www.midnightreign.org/2008/05/10/safari-on-windows/#comments</comments>
		<pubDate>Sat, 10 May 2008 13:18:22 +0000</pubDate>
		<dc:creator>TG</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.midnightreign.org/?p=225</guid>
		<description><![CDATA[Running Apple Software Updater (to get the latest version of iTunes), I noticed that Safari is now available for Windows.  So, I decided to give it a bash. I mean, why not? I&#8217;m bored. :p

It&#8217;s cute. It&#8217;s got the typical Apple OSX style skin, but I don&#8217;t really understand the point. It doesn&#8217;t seem [...]]]></description>
			<content:encoded><![CDATA[<p>Running Apple Software Updater (to get the latest version of iTunes), I noticed that Safari is now available for Windows.  So, I decided to give it a bash. I mean, why not? I&#8217;m bored. :p</p>

<p>It&#8217;s cute. It&#8217;s got the typical Apple OSX style skin, but I don&#8217;t really understand the point. It doesn&#8217;t seem like there are any addons for it&#8230; like StumbleUpon (which I use quite a lot).  Other than that, it seems like a pretty normal browser. Does tabbed browsing&#8230; what more do you need? I don&#8217;t see any particular compelling reason to us it, quite honestly. Firefox is more than adequate for my needs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.midnightreign.org/2008/05/10/safari-on-windows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Form Validation Irritation</title>
		<link>http://www.midnightreign.org/2008/04/27/form-validation-irritation/</link>
		<comments>http://www.midnightreign.org/2008/04/27/form-validation-irritation/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 22:17:23 +0000</pubDate>
		<dc:creator>TG</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.midnightreign.org/?p=223</guid>
		<description><![CDATA[I&#8217;m finding a lot of forms that validate email addresses are marking email addresses with a + sign in it as invalid.  What crap! A + sign is a perfectly valid character in an email address. I wish people would catch a wake up, and code their validation according to the RFC&#8217;s. Argh!

If you [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m finding a lot of forms that validate email addresses are marking email addresses with a + sign in it as invalid.  What crap! A + sign is a perfectly valid character in an email address. I wish people would catch a wake up, and code their validation according to the RFC&#8217;s. Argh!</p>

<p>If you weren&#8217;t aware, GMail and <a href="http://www.google.com/a">GMail hosted domains</a> support the use of + signs in email addresses so that you can classify email.  So for eg, you can go to a site and sign up for an account, you can set the email as something like:  youraddress+sometexthere@domain.com - and you will receive the mail. You can then know immediately where it came from - even if it&#8217;s spam, you can know where the original source was.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.midnightreign.org/2008/04/27/form-validation-irritation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Telkom Sucks</title>
		<link>http://www.midnightreign.org/2008/04/07/telkom-sucks/</link>
		<comments>http://www.midnightreign.org/2008/04/07/telkom-sucks/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 12:29:10 +0000</pubDate>
		<dc:creator>TG</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.midnightreign.org/?p=222</guid>
		<description><![CDATA[My ADSL line at home has been dead for the past 11 days now.  It took me 35 minutes on hold on the 27th March before I could get through to a call centre agent to log the fault.  I started receiving daily 9am SMSs from Telkom telling me that they were &#8220;still [...]]]></description>
			<content:encoded><![CDATA[<p>My ADSL line at home has been dead for the past 11 days now.  It took me 35 minutes on hold on the 27th March before I could get through to a call centre agent to log the fault.  I started receiving daily 9am SMSs from Telkom telling me that they were &#8220;still working to resolve the fault&#8221;. Funny though, the SMSs stopped coming through last Saturday, so I&#8217;m guessing they&#8217;ve closed the call without resolving it.</p>

<p>I escalated the call on the 1 April (April Fool, me!) at 06h33. Yes, in the morning.  Funnily enough, I got through instantly.</p>

<p>I escalated again on the 4th April at 06h39. I don&#8217;t think &#8220;escalating&#8221; actually does anything. It certainly hasn&#8217;t done anything for me <img src='http://www.midnightreign.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>

<p>I tried to get through to help desk this morning.  I was on hold from 08h15. I eventually gave up at 11h45. Three and a half hours. On hold. Trying to find out what the fuck is going on with my dead line.</p>

<p>What cheeses me off is that while I can request a refund from Telkom for the down time - I can&#8217;t request a refund from Blizzard for the days I haven&#8217;t been able to play <a href="http://www.wow-europe.com">WoW</a>.</p>

<p>It also pisses my wife off, because she&#8217;s been on holiday for the past few weeks, and she was looking forward to finally getting a chance to play WoW for a change. Hahaha. Shoulda known.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.midnightreign.org/2008/04/07/telkom-sucks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Reach out and touch faith</title>
		<link>http://www.midnightreign.org/2008/02/18/reach-out-and-touch-faith/</link>
		<comments>http://www.midnightreign.org/2008/02/18/reach-out-and-touch-faith/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 13:26:45 +0000</pubDate>
		<dc:creator>TG</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.midnightreign.org/2008/02/18/reach-out-and-touch-faith/</guid>
		<description><![CDATA[I haven&#8217;t listened to Marilyn Manson in a long time, so, this morning while at work, I pulled out my iPod, selected the artist, and since I was in the mood for it, just pressed play so that everything would be queued, rather than refining my selection to one of the albums.

A while later, I [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t listened to Marilyn Manson in a long time, so, this morning while at work, I pulled out my iPod, selected the artist, and since I was in the mood for it, just pressed play so that everything would be queued, rather than refining my selection to one of the albums.</p>

<p>A while later, I headed home, so I plugged the iTrip into the iPod, and continued listening to Marilyn Manson.  On my drive home, I was contemplating the album art for &#8220;Smells Like Children&#8221;, which, to my mind is quite garish and ugly, so I was wondering what his usual fan base response would have been to a more artistic type album cover, perhaps something along the lines of an image of stylized hands praying, or perhaps a potentially blasphemous (yet artistic) image of old Marilyn hanging on a cross.  Not even 30 seconds passed when all of a sudden his cover of &#8220;Personal Jesus&#8221; started playing.</p>

<p>Very weird.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.midnightreign.org/2008/02/18/reach-out-and-touch-faith/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
