<?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>Matheus Bratfisch &#187; internet</title>
	<atom:link href="http://www.matbra.com/tag/internet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.matbra.com</link>
	<description>&#34;Cogito ergo sum&#34;</description>
	<lastBuildDate>Tue, 20 Dec 2011 00:03:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Share internet in a SERVER connected to WAN port.</title>
		<link>http://www.matbra.com/en/2009/05/26/compartilhar-internet-com-servidor-na-porta-wan/</link>
		<comments>http://www.matbra.com/en/2009/05/26/compartilhar-internet-com-servidor-na-porta-wan/#comments</comments>
		<pubDate>Tue, 26 May 2009 21:01:41 +0000</pubDate>
		<dc:creator>Matheus (X-warrior) Bratfisch</dc:creator>
				<category><![CDATA[Aprendendo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[compartilhar]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[modem]]></category>
		<category><![CDATA[roteador]]></category>
		<category><![CDATA[servidor]]></category>
		<category><![CDATA[wan]]></category>

		<guid isPermaLink="false">http://www.matbra.com/?p=278</guid>
		<description><![CDATA[Hello, The last days I keep trying to configure my server. I know how to configure the network to this: MODEM -> (eth0) Servidor (eth1) -> (LAN Port) Router (LAN Ports) -> Computers This topology don`t work for me, because in this way I lost one WAN Port. So I thought in this topology: MODEM [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>The last days I keep trying to configure my server. I know how to configure the network to this: </p>
<blockquote><p>MODEM -> (eth0) Servidor (eth1) -> (LAN Port) Router (LAN Ports) -> Computers</p></blockquote>
<p>This topology don`t work for me, because in this way I lost one WAN Port. So I thought in this topology:</p>
<blockquote><p>MODEM -> (eth0) Servidor (eth1) -> (Porta WAN) Router (Portas LAN) -> Computadores</blockqu</p>
<p>First of all configure your eth1 manyally as (edit /etc/network/interfaces):</p>
<blockquote><p>auto eth1<br />
iface eth1 inet static<br />
address 192.168.100.254<br />
netmask 255.255.255.0<br />
network 192.168.100.0<br />
broadcast 192.168.100.255</p></blockquote>
<p>After this I add this iptables rules:</p>
<blockquote><p>sysctl net.ipv4.ip_forward=1<br />
iptables -t nat -A POSTROUTING &#8211;out-interface eth0 -j MASQUERADE<br />
iptables -A FORWARD &#8211;in-interface eth0 -j ACCEPT</p></blockquote>
<p>I need to setup the router manually:</p>
<blockquote><p>IP Address : 192.168.100.1<br />
Subnet Mask : 255.255.255.0<br />
ISP Gateway Address : 192.168.100.254<br />
Primary DNS Address : 200.247.141.11 (DNS)<br />
Secondary DNS Address : 200.247.141.12 (DNS)</p></blockquote>
<p>So up and running</p>
<p>Matheus</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matbra.com/en/2009/05/26/compartilhar-internet-com-servidor-na-porta-wan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

