<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:series="http://organizeseries.com/"
		>
<channel>
	<title>Comments on: Iptables: How-to Share your internet connection</title>
	<atom:link href="http://www.debuntu.org/iptables-how-to-share-your-internet-connection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/</link>
	<description>Debian/Ubuntu Tips and Tricks</description>
	<lastBuildDate>Tue, 21 May 2013 04:29:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: chantra</title>
		<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/#comment-137858</link>
		<dc:creator>chantra</dc:creator>
		<pubDate>Tue, 21 May 2013 04:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=442#comment-137858</guid>
		<description><![CDATA[Nadia, You router is most likely getting its gateway/dns from your ADSL provider with dhcp.
On you router, your eth1 should look like:
&lt;code&gt;
auto eth1
iface eth1 inet static
   address 192.168.0.1
   netmask 255.255.255.0
&lt;/code&gt;
Your PC on your LAN has to use your router as a gateway, its eth0 config should look like:
&lt;code&gt;
# Local Network eth0
auto eth0
iface eth0 inet static
  address 192.168.0.2
  netmask 255.255.255.0
  gateway 192.168.0.1
  dns-nameservers my_dns
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Nadia, You router is most likely getting its gateway/dns from your ADSL provider with dhcp.<br />
On you router, your eth1 should look like:<br />
<code><br />
auto eth1<br />
iface eth1 inet static<br />
   address 192.168.0.1<br />
   netmask 255.255.255.0<br />
</code></p>
<p>Your PC on your LAN has to use your router as a gateway, its eth0 config should look like:<br />
<code><br />
# Local Network eth0<br />
auto eth0<br />
iface eth0 inet static<br />
  address 192.168.0.2<br />
  netmask 255.255.255.0<br />
  gateway 192.168.0.1<br />
  dns-nameservers my_dns<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nadia</title>
		<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/#comment-137851</link>
		<dc:creator>nadia</dc:creator>
		<pubDate>Mon, 20 May 2013 23:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=442#comment-137851</guid>
		<description><![CDATA[i well i do not know what to do now
my settings of my firewall :
# The loopback network interface
auto lo
iface lo inet loopback
# ADSL eth2
# Local Network eth1 ....interfaces for my LAN switch
auto eth1
iface eth1 inet static
	address 192.168.0.1
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255
	gateway 192.168.0.254
	dns-nameservers my_dns
on the pc of my LAN :
# The loopback network interface
auto lo
iface lo inet loopback
# Local Network eth0
auto eth0
iface eth0 inet static
	address 192.168.0.2
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255
	gateway 192.168.0.254
	dns-nameservers my_dns
for the last test i have only do :
iptables -t nat -A POSTROUTING -o $WAN -j MASQUERADE
thanks]]></description>
		<content:encoded><![CDATA[<p>i well i do not know what to do now</p>
<p>my settings of my firewall :</p>
<p># The loopback network interface<br />
auto lo<br />
iface lo inet loopback</p>
<p># ADSL eth2</p>
<p># Local Network eth1 &#8230;.interfaces for my LAN switch<br />
auto eth1<br />
iface eth1 inet static<br />
	address 192.168.0.1<br />
	netmask 255.255.255.0<br />
	network 192.168.0.0<br />
	broadcast 192.168.0.255<br />
	gateway 192.168.0.254<br />
	dns-nameservers my_dns</p>
<p>on the pc of my LAN :</p>
<p># The loopback network interface<br />
auto lo<br />
iface lo inet loopback</p>
<p># Local Network eth0<br />
auto eth0<br />
iface eth0 inet static<br />
	address 192.168.0.2<br />
	netmask 255.255.255.0<br />
	network 192.168.0.0<br />
	broadcast 192.168.0.255<br />
	gateway 192.168.0.254<br />
	dns-nameservers my_dns</p>
<p>for the last test i have only do :<br />
iptables -t nat -A POSTROUTING -o $WAN -j MASQUERADE</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nadia</title>
		<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/#comment-137730</link>
		<dc:creator>nadia</dc:creator>
		<pubDate>Wed, 15 May 2013 00:17:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=442#comment-137730</guid>
		<description><![CDATA[hi well i never thaught that a gateway will be 192.168.0.254! not from website like https://help.ubuntu.com/12.10/serverguide/network-configuration.html
so right now on pc from my LAN the basic settings are :
ip 192.168.0.4
netmask 255.255.255.0
gateway 192.168.0.254
and on my firewall
the eth2 is my adsl interfaces
and
the LAN interfaces :
auto eth1
iface eth1 inet static
	address 192.168.0.1
	netmask 255.255.255.0
	gateway 192.168.0.254
	dns-nameservers my_dns_ip
my LAN still not ping google.com]]></description>
		<content:encoded><![CDATA[<p>hi well i never thaught that a gateway will be 192.168.0.254! not from website like <a href="https://help.ubuntu.com/12.10/serverguide/network-configuration.html" rel="nofollow">https://help.ubuntu.com/12.10/serverguide/network-configuration.html</a></p>
<p>so right now on pc from my LAN the basic settings are :<br />
ip 192.168.0.4<br />
netmask 255.255.255.0<br />
gateway 192.168.0.254</p>
<p>and on my firewall<br />
the eth2 is my adsl interfaces<br />
and<br />
the LAN interfaces :</p>
<p>auto eth1<br />
iface eth1 inet static<br />
	address 192.168.0.1<br />
	netmask 255.255.255.0<br />
	gateway 192.168.0.254<br />
	dns-nameservers my_dns_ip</p>
<p>my LAN still not ping google.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chantra</title>
		<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/#comment-137707</link>
		<dc:creator>chantra</dc:creator>
		<pubDate>Mon, 13 May 2013 03:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=442#comment-137707</guid>
		<description><![CDATA[your /etc/network/interfaces does not look right syntactically, and even if it did, ip 192.168.0.1 for your lan pc with gateway 192.168.0.1 is plain wrong. Googling should help you solving these kind of issues. http://wiki.debian.org/NetworkConfiguration contains great material on setting up your network interfaces in Debian.]]></description>
		<content:encoded><![CDATA[<p>your /etc/network/interfaces does not look right syntactically, and even if it did, ip 192.168.0.1 for your lan pc with gateway 192.168.0.1 is plain wrong. Googling should help you solving these kind of issues. <a href="http://wiki.debian.org/NetworkConfiguration" rel="nofollow">http://wiki.debian.org/NetworkConfiguration</a> contains great material on setting up your network interfaces in Debian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nadia</title>
		<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/#comment-137696</link>
		<dc:creator>Nadia</dc:creator>
		<pubDate>Sun, 12 May 2013 02:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=442#comment-137696</guid>
		<description><![CDATA[hi
if i do only this rule iptables -t nat -A POSTROUTING -o -j MASQUERADE nothing work the lan don&#039;t go outside
the 2 interfaces on my firewall when i do ethtool or mii-tool ... respond link ok
i have change cable from the switch to firewall same error
yes here is my config from my LAN pc in /etc/network/interfaces
ip 192.168.0.1/24
gateway 192.168.0.1
netmask 255.255.255.0
dns-nameserver my_dns
and the usual network broadcast settings
when i do traceroute 8.8.8.8 goes nowhere * * * *.... all the 30 hops
thanks for your help]]></description>
		<content:encoded><![CDATA[<p>hi</p>
<p>if i do only this rule iptables -t nat -A POSTROUTING -o -j MASQUERADE nothing work the lan don&#8217;t go outside</p>
<p>the 2 interfaces on my firewall when i do ethtool or mii-tool &#8230; respond link ok<br />
i have change cable from the switch to firewall same error</p>
<p>yes here is my config from my LAN pc in /etc/network/interfaces</p>
<p>ip 192.168.0.1/24<br />
gateway 192.168.0.1<br />
netmask 255.255.255.0<br />
dns-nameserver my_dns<br />
and the usual network broadcast settings</p>
<p>when i do traceroute 8.8.8.8 goes nowhere * * * *&#8230;. all the 30 hops</p>
<p>thanks for your help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chantra</title>
		<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/#comment-137694</link>
		<dc:creator>chantra</dc:creator>
		<pubDate>Sat, 11 May 2013 17:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=442#comment-137694</guid>
		<description><![CDATA[Hi Nadia,
There could be thousand reason why your settings are not working. Did you try to use the 1 simple iptables rule to share your connection?
iptables -t nat -A POSTROUTING -o &lt;WANINTERFACE&gt; -j MASQUERADE
Your host unreacheable issue sound like a routing issue. Do you give a default route to your LAN devices?
Have you tried to traceroute do a known destination like 8.8.8.8 (google dns).]]></description>
		<content:encoded><![CDATA[<p>Hi Nadia,</p>
<p>There could be thousand reason why your settings are not working. Did you try to use the 1 simple iptables rule to share your connection?<br />
iptables -t nat -A POSTROUTING -o <waninterface> -j MASQUERADE</p>
<p>Your host unreacheable issue sound like a routing issue. Do you give a default route to your LAN devices?</p>
<p>Have you tried to traceroute do a known destination like 8.8.8.8 (google dns).</waninterface></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nadia</title>
		<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/#comment-137693</link>
		<dc:creator>nadia</dc:creator>
		<pubDate>Sat, 11 May 2013 17:11:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=442#comment-137693</guid>
		<description><![CDATA[still working on that but now i think i will take a break, still get the host destination unreachable error from the LAN trying to ping outside the world
and also i saw that nobody help me since 10 days so i will take a break.]]></description>
		<content:encoded><![CDATA[<p>still working on that but now i think i will take a break, still get the host destination unreachable error from the LAN trying to ping outside the world</p>
<p>and also i saw that nobody help me since 10 days so i will take a break.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nadia</title>
		<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/#comment-137681</link>
		<dc:creator>nadia</dc:creator>
		<pubDate>Thu, 09 May 2013 20:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=442#comment-137681</guid>
		<description><![CDATA[today i had change the cable to see if it&#039;s ok between the switch and the firewall and still get the same dest. host unreachable error. so it&#039;s not the rj45 cable the problem.
keep working]]></description>
		<content:encoded><![CDATA[<p>today i had change the cable to see if it&#8217;s ok between the switch and the firewall and still get the same dest. host unreachable error. so it&#8217;s not the rj45 cable the problem.</p>
<p>keep working</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nadia</title>
		<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/#comment-137676</link>
		<dc:creator>nadia</dc:creator>
		<pubDate>Thu, 09 May 2013 02:14:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=442#comment-137676</guid>
		<description><![CDATA[i also had an error on my netmask (before it was LAN : 192.168.1.1... and 255.255.255.0 i changed for 255.255.255.0 but 192.168.0.1)
still have destination host unreachable from my LAN to out...
keep working....]]></description>
		<content:encoded><![CDATA[<p>i also had an error on my netmask (before it was LAN : 192.168.1.1&#8230; and 255.255.255.0 i changed for 255.255.255.0 but 192.168.0.1)</p>
<p>still have destination host unreachable from my LAN to out&#8230;</p>
<p>keep working&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nadia</title>
		<link>http://www.debuntu.org/iptables-how-to-share-your-internet-connection/#comment-137674</link>
		<dc:creator>nadia</dc:creator>
		<pubDate>Wed, 08 May 2013 23:25:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.debuntu.org/?p=442#comment-137674</guid>
		<description><![CDATA[i was validating the dns and some errors were in my configuration. so now the dns are ok on each configuration of interfaces LAN and WAN
so now between pc from the LAN they can ping each others.
192.168.1.4 ping 192.168.1.2 ....
but both received destination unreachable when they do ping www.google.com or ping ip_google
both cannot ping dns1 of my firewall, but can ping my ip_static
my firewall can ping all pcs from my LAN
everything is ok for my firewall
maybe a rules?
nadia]]></description>
		<content:encoded><![CDATA[<p>i was validating the dns and some errors were in my configuration. so now the dns are ok on each configuration of interfaces LAN and WAN</p>
<p>so now between pc from the LAN they can ping each others.<br />
192.168.1.4 ping 192.168.1.2 &#8230;.</p>
<p>but both received destination unreachable when they do ping <a href="http://www.google.com" rel="nofollow">http://www.google.com</a> or ping ip_google<br />
both cannot ping dns1 of my firewall, but can ping my ip_static</p>
<p>my firewall can ping all pcs from my LAN<br />
everything is ok for my firewall</p>
<p>maybe a rules?</p>
<p>nadia</p>
]]></content:encoded>
	</item>
</channel>
</rss>