<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>egloo &#187; firewall</title>
	<atom:link href="http://egloo.wordpress.com/tag/firewall/feed/" rel="self" type="application/rss+xml" />
	<link>http://egloo.wordpress.com</link>
	<description>Linux Sysadmin Blog</description>
	<lastBuildDate>Sat, 18 Apr 2009 19:35:52 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='egloo.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/4f738d3a8dae6c0af9ecb7fb5c48f4a5?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>egloo &#187; firewall</title>
		<link>http://egloo.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://egloo.wordpress.com/osd.xml" title="egloo" />
		<item>
		<title>Linux Internet Connection Sharing</title>
		<link>http://egloo.wordpress.com/2008/09/24/linux-internet-connection-sharing/</link>
		<comments>http://egloo.wordpress.com/2008/09/24/linux-internet-connection-sharing/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 16:51:24 +0000</pubDate>
		<dc:creator>pcabrerat</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://egloo.wordpress.com/?p=115</guid>
		<description><![CDATA[Iptables is a well known program for its firewall and traffic filtering capabilities. But it also can be used to share our beloved Internet connection. And amazingly it&#8217;s relatively easy to setup a shared connection in Linux.
For this example I will be using a Fedora 9 x86_64 system with a wireless Ethernet device named wlan0
First [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&blog=4102430&post=115&subd=egloo&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="alignleft size-thumbnail wp-image-136" title="networkcable1" src="http://egloo.files.wordpress.com/2008/09/networkcable1.jpg?w=128&#038;h=96" alt="" width="128" height="96" />Iptables is a well known program for its firewall and traffic filtering capabilities. But it also can be used to share our beloved Internet connection. And amazingly it&#8217;s relatively easy to setup a shared connection in Linux.</p>
<p>For this example I will be using a Fedora 9 x86_64 system with a wireless Ethernet device named <em>wlan0</em></p>
<p>First you have to enable IP forwarding. Log in as root and type:</p>
<p><code># echo "net.ipv4.ip_forward=1" &gt;&gt; /etc/sysctl.conf</code><br />
<code># /sbin/iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE</code><br />
<code># /etc/init.d/iptables save</code></p>
<p>Now a little bit of theory on what the previous commands do.</p>
<p>The first command is mostly self explanatory; it just tells the system to activate the IP forwarding feature.<br />
Next, the iptables command line defines a Routing Table of NAT (Network Address Translation) type which is used to hide (masquerade) an IP address space behind a single IP address in another address space.<br />
Finally, the last command just saves the configuration.</p>
<p>At this point, the configuration is ready and the only thing left is to actually modify the machines network configuration:</p>
<p><strong>Example Router Address:</strong><br />
IP: 192.168.1.1</p>
<p><strong>First Computer (Connected to Internet):</strong><br />
IP: 192.168.1.10<br />
Netmask: 255.255.255.0<br />
Gateway: 192.168.1.1</p>
<p><strong>Second Computer:</strong><br />
IP: 192.168.1.20<br />
Netmask: 255.255.255.0<br />
Gateway: 192.168.1.10</p>
<p>That&#8217;s it, now both computers share the same Internet connection&#8230; fast and simple.</p>
<p>Be aware that this is a very simple example of network sharing, not an Enterprise Level solution. There are many alternative ways&#8230; more &#8220;elegant&#8221; and more secure ways to share a connection (proxy servers, SSH encrypted tunnels, etc)&#8230; you might want to try different methods and go for the one that fits your needs.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/egloo.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/egloo.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/egloo.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/egloo.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/egloo.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/egloo.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/egloo.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/egloo.wordpress.com/115/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/egloo.wordpress.com/115/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/egloo.wordpress.com/115/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=egloo.wordpress.com&blog=4102430&post=115&subd=egloo&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://egloo.wordpress.com/2008/09/24/linux-internet-connection-sharing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">pcabrerat</media:title>
		</media:content>

		<media:content url="http://egloo.files.wordpress.com/2008/09/networkcable1.jpg?w=128" medium="image">
			<media:title type="html">networkcable1</media:title>
		</media:content>
	</item>
	</channel>
</rss>