<?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>Adrian's Thoughts &#187; routing</title>
	<atom:link href="http://blog.frith.co.za/tag/routing/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.frith.co.za</link>
	<description>Ramblings about life, university, mathematics, computing, Linux, open source, etc.</description>
	<lastBuildDate>Thu, 19 Mar 2009 10:23:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HSDPA modem and custom routing</title>
		<link>http://blog.frith.co.za/2009/01/13/hsdpa-modem-and-custom-routing/</link>
		<comments>http://blog.frith.co.za/2009/01/13/hsdpa-modem-and-custom-routing/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 21:40:24 +0000</pubDate>
		<dc:creator>adrian</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[University]]></category>
		<category><![CDATA[hsdpa]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[UCT]]></category>

		<guid isPermaLink="false">http://blog.frith.co.za/?p=58</guid>
		<description><![CDATA[So, for my Christmas present to myself I got a Huawei E220 HSDPA modem &#8211; it&#8217;s one of the Vodafone-branded ones, but I reflashed it with the generic firmware. Anyway, it&#8217;s an awesome thing to have for a geek like me &#8211; I can be connected to the Internet at broadband speeds almost anywhere in [...]]]></description>
			<content:encoded><![CDATA[<p>So, for my Christmas present to myself I got a <a href="http://en.wikipedia.org/wiki/Huawei_E220">Huawei E220</a> HSDPA modem &#8211; it&#8217;s one of the Vodafone-branded ones, but I reflashed it with the generic firmware. Anyway, it&#8217;s an awesome thing to have for a geek like me &#8211; I can be connected to the Internet at broadband speeds almost anywhere in the city. It&#8217;s particularly useful when i&#8217;m on campus, so I can avoid the dog-slow UCT internet connection.</p>
<p>Problem is, I&#8217;d like to stay connected to the UCT network as well so that I don&#8217;t use up my precious* data bundle for UCT services, and this requires a bit of custom routing magic. So I have a script:</p>
<p><code>#!/bin/sh<br />
GATEWAY=137.158.32.97<br />
route add -net 137.158.0.0/16 gw $GATEWAY<br />
route add -net 192.48.253.0/24 gw $GATEWAY<br />
route del default<br />
route add default ppp0</code></p>
<p>137.158.0.0/16 and 192.48.253.0/24 are the UCT netblocks, and 137.158.32.97 is the router on the subnet that I&#8217;m mostly using at the moment. ppp0 is, of course, the name of the interface associated with the HSDPA connection.</p>
<p>The problems with this script currently are that I have to edit it to change the gateway for each subnet that I&#8217;m on, that I have to run it manually each time I connect, and that it doesn&#8217;t restore the original routing when I disconnect. The first and third problems should be reasonably easy to solve, but the second will probably require that I dig into the mysterious world of NetworkManager. <em>(Cue dramatic music.)</em></p>
<p><small>*It&#8217;s ourssss, my preciousss&#8230; they wants to take it from us, the nasssty Vodacom&#8230;</small></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.frith.co.za/2009/01/13/hsdpa-modem-and-custom-routing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
