<?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: IP forwarding in Linux in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ip-forwarding-in-linux/m-p/2783445#M88586</link>
    <description>so why put this under HP-UX forum?&lt;BR /&gt;&lt;BR /&gt;Moving it to linux forum</description>
    <pubDate>Mon, 12 Aug 2002 06:19:52 GMT</pubDate>
    <dc:creator>melvyn burnard</dc:creator>
    <dc:date>2002-08-12T06:19:52Z</dc:date>
    <item>
      <title>IP forwarding in Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ip-forwarding-in-linux/m-p/2783443#M88584</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;We have a cluster setup with NIS configured on it. All nodes run Redhat linux (7.3) &lt;BR /&gt;&lt;BR /&gt;The master node has 2 NIC's, one with the IP of 3.212.228.220(eth0) and the other with 192.168.1.1(eth1), the default gateway for the system is 3.212.228.96 &lt;BR /&gt;&lt;BR /&gt;All the other nodes in the cluster has one NIC and act as NIS clients with their IP range in 192 series and default gateway as 192.168.1.1 &lt;BR /&gt;&lt;BR /&gt;Now from all the clients we are able to ping to 3.212.228.220 (eth0 of master node). But at the same time we are not able ping to other resources of 3.212.228.X network, even all nodes don't ping 3.212.228.96 (which is the default gateway of master node). &lt;BR /&gt;&lt;BR /&gt;In the 3.212.228.96 router, return path is defined properly. &lt;BR /&gt;&lt;BR /&gt;In this scenario, on the master node, whether IP forwarding should be enabled from 192.168.1.1 to 3.212.228.220? &lt;BR /&gt;If so, please guide me as how to do the same. &lt;BR /&gt;&lt;BR /&gt;If there is anything else, which has to be done to access 3.212.228.X network from all clients, please advice. &lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards, &lt;BR /&gt;Shyam &lt;BR /&gt;</description>
      <pubDate>Sat, 10 Aug 2002 08:48:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ip-forwarding-in-linux/m-p/2783443#M88584</guid>
      <dc:creator>Shyam Sundar</dc:creator>
      <dc:date>2002-08-10T08:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: IP forwarding in Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ip-forwarding-in-linux/m-p/2783444#M88585</link>
      <description>You need IP forwarding ON.&lt;BR /&gt;You will need NAT (masquerading) if you want them to go to the internet.&lt;BR /&gt;You may have to open up your IPchains firewall to allow packets to pass.&lt;BR /&gt;Resources on the 3.212.228 LAN will need to know about the 192.168.1 LAN.  Which means They must have a route pointing back through the Master Node for this LAN if you do not use NAT.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.ecst.csuchico.edu/~dranch/LINUX/TrinityOS/TXT/TrinityOS.txt" target="_blank"&gt;http://www.ecst.csuchico.edu/~dranch/LINUX/TrinityOS/TXT/TrinityOS.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Tells you more than you will ever want to know about this.&lt;BR /&gt;&lt;BR /&gt;Ron</description>
      <pubDate>Sat, 10 Aug 2002 11:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ip-forwarding-in-linux/m-p/2783444#M88585</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2002-08-10T11:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: IP forwarding in Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ip-forwarding-in-linux/m-p/2783445#M88586</link>
      <description>so why put this under HP-UX forum?&lt;BR /&gt;&lt;BR /&gt;Moving it to linux forum</description>
      <pubDate>Mon, 12 Aug 2002 06:19:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ip-forwarding-in-linux/m-p/2783445#M88586</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2002-08-12T06:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: IP forwarding in Linux</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ip-forwarding-in-linux/m-p/2783446#M88587</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;At home, I use iptables for doing this.&lt;BR /&gt;&lt;BR /&gt;Here is an abstract of my /etc/rc.d/rc.local file :&lt;BR /&gt;&lt;BR /&gt;# -----&lt;BR /&gt;# Initialization&lt;BR /&gt;#    * Flush all built-in chains&lt;BR /&gt;#    * Delete all user-defined chains&lt;BR /&gt;#    * Set the default policy : drop all input packets&lt;BR /&gt;# -----&lt;BR /&gt;&lt;BR /&gt;DNS_SERVERS="IP_DNS_1 IP_DNS_2 ..."&lt;BR /&gt;&lt;BR /&gt;iptables -t filter -F&lt;BR /&gt;iptables -t filter -X&lt;BR /&gt;iptables -t filter -Z&lt;BR /&gt;iptables -t filter -P INPUT DROP&lt;BR /&gt;iptables -t filter -P FORWARD DROP&lt;BR /&gt;iptables -t filter -P OUTPUT DROP&lt;BR /&gt;&lt;BR /&gt;echo "0" &amp;gt;/proc/sys/net/ipv4/ip_forward&lt;BR /&gt;&lt;BR /&gt;iptables -t nat -F&lt;BR /&gt;iptables -t nat -X&lt;BR /&gt;iptables -t nat -Z&lt;BR /&gt;iptables -t nat -P PREROUTING DROP&lt;BR /&gt;iptables -t nat -P POSTROUTING DROP&lt;BR /&gt;iptables -t nat -P OUTPUT DROP&lt;BR /&gt;&lt;BR /&gt;# -----&lt;BR /&gt;# Allow traffic that seems "normal"&lt;BR /&gt;# -----&lt;BR /&gt;&lt;BR /&gt;iptables -t filter -A INPUT -i eth1 -j ACCEPT&lt;BR /&gt;iptables -t filter -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;for dns in ${DNS_SERVERS}&lt;BR /&gt;do&lt;BR /&gt;   iptables -t filter -A INPUT -i eth0 -p udp --sport 53 -d ${dns} -j ACCEPT&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;iptables -t filter -A FORWARD -i eth1 -j ACCEPT&lt;BR /&gt;iptables -t filter -A FORWARD -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;iptables -t filter -A OUTPUT -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;iptables -t nat -A PREROUTING -j ACCEPT&lt;BR /&gt;iptables -t nat -A POSTROUTING -j ACCEPT&lt;BR /&gt;iptables -t nat -A OUTPUT -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;# -----&lt;BR /&gt;# Masquerade outgoing traffic&lt;BR /&gt;# -----&lt;BR /&gt;&lt;BR /&gt;iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE&lt;BR /&gt;echo "1" &amp;gt;/proc/sys/net/ipv4/ip_forward&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;Of course you may want more security, particularly maybe to log all "bad" packets. Feel free to adapt these rules to your configuration.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;&lt;BR /&gt;Kodjo&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2002 18:09:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ip-forwarding-in-linux/m-p/2783446#M88587</guid>
      <dc:creator>Kodjo Agbenu</dc:creator>
      <dc:date>2002-08-12T18:09:27Z</dc:date>
    </item>
  </channel>
</rss>

