<?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>Linux etc. &#187; Networking</title>
	<atom:link href="http://promberger.info/linux/category/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://promberger.info/linux</link>
	<description>my outsourced memory for your perusal</description>
	<lastBuildDate>Thu, 08 Sep 2011 11:06:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using your linux machine as a router</title>
		<link>http://promberger.info/linux/2007/08/23/using-your-linux-machine-as-a-router/</link>
		<comments>http://promberger.info/linux/2007/08/23/using-your-linux-machine-as-a-router/#comments</comments>
		<pubDate>Thu, 23 Aug 2007 09:35:30 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://www.promberger.info/linux/2007/08/23/using-your-linux-machine-as-a-router/</guid>
		<description><![CDATA[The wireless card of my old old old Toshiba laptop (urmel) seems not to be getting along with the 128bit WEP key. Since I use it only very rarely, I&#8217;ve now set my everyday laptop (audrey) up to act as a router for urmel, using these instructions: Audrey is connected to the router via WLAN [...]]]></description>
			<content:encoded><![CDATA[<p>The wireless card of my old old old Toshiba laptop (urmel) seems not to be getting along with the 128bit WEP key. Since I use it only very rarely, I&#8217;ve now set my everyday laptop (audrey) up to act as a router for urmel, using <a href="http://www.ubuntugeek.com/sharing-internet-connection-in-ubuntu.html">these instructions</a>:</p>
<p><span id="more-44"></span><br />
Audrey is connected to the router via WLAN (ath0), getting the IP 192.168.0.4 via DHCP. </p>
<p>On audrey:</p>
<pre>sudo -s
ifconfig eth0 192.168.1.1
iptables -t nat -A POSTROUTING -o ath0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
aptitude install dnsmasq ipmasq
/etc/init.d/dnsmasq restart
dpkg-reconfigure ipmasq # accepted all the defaults
</pre>
<p>Uncomment the line <code>net.ipv4.ip_forward = 1</code> in <code>/etc/sysctl.conf</code></p>
<p>On urmel:</p>
<pre>sudo ifconfig eth0 192.168.1.2</pre>
<p>Add gateway 192.168.1.1</p>
<p>Both connections use the same subnet mask (255.255.255.0).</p>
<h3>Addendum</h3>
<p>After a reboot, I wasn&#8217;t able to go online or even connect to the router on either machine. On audrey, pinging google gave &#8220;host not found&#8221;, and pinging the router gave <code>ping: sendmsg: Operation not permitted</code>. </p>
<p>This was solved by running</p>
<pre>sudo dpkg-reconfigure ipmasq</pre>
<p>once more. </p>
<p>I don&#8217;t know whether this problem will persist, and  if it does, how to solve it permanently.</p>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2007/08/23/using-your-linux-machine-as-a-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

