<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How implement NAT on debian sarge machine in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786338#M23336</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There are my examples. &lt;BR /&gt;&lt;BR /&gt;# 1 NAT rule. This rule translates 140.X.X.X:81 {eth0} to 192.X.X.1:80 {eth1}&lt;BR /&gt;&lt;BR /&gt;iptables -t nat -A PREROUTING -d 140.X.X.X \&lt;BR /&gt; -i eth0 --protocol tcp --destination-port 81 \&lt;BR /&gt; -j DNAT --to-destination 192.X.X.1:80 &lt;BR /&gt;&lt;BR /&gt;# 2 NAT rule. This rule translates 140.X.X.X:82 {eth0} to 192.X.X.2:80 {eth1}&lt;BR /&gt;&lt;BR /&gt;iptables -t nat -A PREROUTING -d 140.X.X.X \&lt;BR /&gt; -i eth0 --protocol tcp --destination-port 82 \&lt;BR /&gt; -j DNAT --to-destination 192.X.X.2:80 &lt;BR /&gt;&lt;BR /&gt;Regards</description>
    <pubDate>Thu, 11 May 2006 03:21:09 GMT</pubDate>
    <dc:creator>Sergejs Svitnevs</dc:creator>
    <dc:date>2006-05-11T03:21:09Z</dc:date>
    <item>
      <title>How implement NAT on debian sarge machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786337#M23335</link>
      <description>Hi all, &lt;BR /&gt;I am tring to make same firewall for my SOHO at home and I have the following situation.&lt;BR /&gt;&lt;BR /&gt;HostA ( two network cards eth0=140.x.x.x and eth1=192.x.x.x) will be a firewall which will NAT  &lt;BR /&gt;some ports from eth0 to eth1. On eth1 I will connect the rest of my network.&lt;BR /&gt;On HostA is installed Debian ant I have administrative rights.&lt;BR /&gt;&lt;BR /&gt;So my question is how translate traffic from eth0 to eth1, I mean from public IP address to private set of address.&lt;BR /&gt;&lt;BR /&gt;If you have some manual for this probelem let me know, I mean send me a link to read it .&lt;BR /&gt;&lt;BR /&gt;Thank you in advance &lt;BR /&gt;&lt;BR /&gt;Debian111</description>
      <pubDate>Thu, 11 May 2006 02:16:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786337#M23335</guid>
      <dc:creator>debian111</dc:creator>
      <dc:date>2006-05-11T02:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How implement NAT on debian sarge machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786338#M23336</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There are my examples. &lt;BR /&gt;&lt;BR /&gt;# 1 NAT rule. This rule translates 140.X.X.X:81 {eth0} to 192.X.X.1:80 {eth1}&lt;BR /&gt;&lt;BR /&gt;iptables -t nat -A PREROUTING -d 140.X.X.X \&lt;BR /&gt; -i eth0 --protocol tcp --destination-port 81 \&lt;BR /&gt; -j DNAT --to-destination 192.X.X.1:80 &lt;BR /&gt;&lt;BR /&gt;# 2 NAT rule. This rule translates 140.X.X.X:82 {eth0} to 192.X.X.2:80 {eth1}&lt;BR /&gt;&lt;BR /&gt;iptables -t nat -A PREROUTING -d 140.X.X.X \&lt;BR /&gt; -i eth0 --protocol tcp --destination-port 82 \&lt;BR /&gt; -j DNAT --to-destination 192.X.X.2:80 &lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 11 May 2006 03:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786338#M23336</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2006-05-11T03:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: How implement NAT on debian sarge machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786339#M23337</link>
      <description>But, should I use iproute command the sintax like &lt;BR /&gt;ip route add ///// I read it somewhere, so I am interesting how implement this on my machine.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 11 May 2006 04:48:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786339#M23337</guid>
      <dc:creator>debian111</dc:creator>
      <dc:date>2006-05-11T04:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: How implement NAT on debian sarge machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786340#M23338</link>
      <description>The iproute package contains advanced IP routing tool, but you need to translate the public (outside public) addresses to private (inside local) addresses in the internal network before packets are forwarded to inside network. &lt;BR /&gt;AFAIK, You have to use netfilter/iptables.&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 11 May 2006 05:31:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786340#M23338</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2006-05-11T05:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How implement NAT on debian sarge machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786341#M23339</link>
      <description>I would install the shorewall package.&lt;BR /&gt;&lt;BR /&gt;Install the script for a two or three &lt;BR /&gt;interface system, and configure NAT as&lt;BR /&gt;per the documentation.&lt;BR /&gt;&lt;BR /&gt;Documentation at:&lt;BR /&gt;&lt;A href="http://www.shorewall.net/shorewall_quickstart_guide.htm" target="_blank"&gt;http://www.shorewall.net/shorewall_quickstart_guide.htm&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 May 2006 10:22:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-implement-nat-on-debian-sarge-machine/m-p/3786341#M23339</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2006-05-11T10:22:27Z</dc:date>
    </item>
  </channel>
</rss>

