<?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: Put this where? : /sbin/iptables -t nat -A POSTROUTING -o p1p1 -j MASQUERADE in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/put-this-where-sbin-iptables-t-nat-a-postrouting-o-p1p1-j/m-p/6872654#M54864</link>
    <description>&lt;P&gt;After executing the command "/sbin/iptables -t nat -A ....", save iptables rules, by running:&lt;/P&gt;&lt;P&gt;# service iptables save&lt;/P&gt;&lt;P&gt;this will write changes into /etc/sysconfig/iptables, and this will survive reboots.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jun 2016 01:27:34 GMT</pubDate>
    <dc:creator>medosena</dc:creator>
    <dc:date>2016-06-27T01:27:34Z</dc:date>
    <item>
      <title>Put this where? : /sbin/iptables -t nat -A POSTROUTING -o p1p1 -j MASQUERADE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/put-this-where-sbin-iptables-t-nat-a-postrouting-o-p1p1-j/m-p/6872150#M54863</link>
      <description>&lt;P&gt;Good Morning Ladies &amp;amp; Gentlemen;&lt;/P&gt;&lt;P&gt;I have a small network in my house (16 hosts). I connected the cable MODEM to "blacktower" on the p1p1 intf.&lt;/P&gt;&lt;P&gt;Blacktower's em1 intf is on the local net. All the hosts can ping/telnet/ssh etc, to each other.&lt;/P&gt;&lt;P&gt;I want the other 15 hosts to go thru blacktower to access the internet.&lt;/P&gt;&lt;P&gt;I did some (actually A LOT) of searching and found what I needed to do. I edited the /etc/sysctl.conf file and then executed the command:&amp;nbsp; "/sbin/iptables -t nat -A POSTROUTING -o p1p1 -j MASQUERADE". Everything worked.&lt;/P&gt;&lt;P&gt;And my question is: Where do I put that command so that it is executed during boot time (I put it in the /etc/rc..local and that worked - but I'd like to put it where it should be)?&lt;/P&gt;&lt;P&gt;Thank you in advance for any and all help&lt;/P&gt;&lt;P&gt;regards, tonyp&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 06:11:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/put-this-where-sbin-iptables-t-nat-a-postrouting-o-p1p1-j/m-p/6872150#M54863</guid>
      <dc:creator>tony j. podrasky</dc:creator>
      <dc:date>2016-06-24T06:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Put this where? : /sbin/iptables -t nat -A POSTROUTING -o p1p1 -j MASQUERADE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/put-this-where-sbin-iptables-t-nat-a-postrouting-o-p1p1-j/m-p/6872654#M54864</link>
      <description>&lt;P&gt;After executing the command "/sbin/iptables -t nat -A ....", save iptables rules, by running:&lt;/P&gt;&lt;P&gt;# service iptables save&lt;/P&gt;&lt;P&gt;this will write changes into /etc/sysconfig/iptables, and this will survive reboots.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 01:27:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/put-this-where-sbin-iptables-t-nat-a-postrouting-o-p1p1-j/m-p/6872654#M54864</guid>
      <dc:creator>medosena</dc:creator>
      <dc:date>2016-06-27T01:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Put this where? : /sbin/iptables -t nat -A POSTROUTING -o p1p1 -j MASQUERADE</title>
      <link>https://community.hpe.com/t5/operating-system-linux/put-this-where-sbin-iptables-t-nat-a-postrouting-o-p1p1-j/m-p/6872935#M54866</link>
      <description>&lt;P&gt;Hello medosena;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion. It worked great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 16:11:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/put-this-where-sbin-iptables-t-nat-a-postrouting-o-p1p1-j/m-p/6872935#M54866</guid>
      <dc:creator>tony j. podrasky</dc:creator>
      <dc:date>2016-06-27T16:11:12Z</dc:date>
    </item>
  </channel>
</rss>

