Location: PHPKode > projects > AWS WALLY > configs/MASQUERADING.xml
<?xml version="1.0"?>
<iptables-rules version="1.0">
<!-- # Generated by iptables*-save v1.4.2 *-rc1 on Sun Oct 31 13:38:18 2010 -->
  <table name="mangle">
    <chain name="PREROUTING" policy="ACCEPT" packet-count="135" byte-count="41376"/>
    <chain name="INPUT" policy="ACCEPT" packet-count="127" byte-count="39694"/>
    <chain name="FORWARD" policy="ACCEPT" packet-count="0" byte-count="0"/>
    <chain name="OUTPUT" policy="ACCEPT" packet-count="134" byte-count="22330"/>
    <chain name="POSTROUTING" policy="ACCEPT" packet-count="140" byte-count="23542"/>
  </table>


  <table name="nat">
    <chain name="POSTROUTING" policy="ACCEPT" packet-count="31" byte-count="2727">
      <rule>
       <conditions>
        <match>
          <o>eth0</o>
        </match>
       </conditions>
       <actions>
        <MASQUERADE/>
       </actions>

      </rule>

    </chain>
    <chain name="PREROUTING" policy="ACCEPT" packet-count="2" byte-count="325"/>
    <chain name="OUTPUT" policy="ACCEPT" packet-count="31" byte-count="2727"/>
  </table>
<!-- # Completed on Sun Oct 31 13:38:18 2010 -->

  <table name="raw">
    <chain name="PREROUTING" policy="ACCEPT" packet-count="7213" byte-count="10265192"/>
    <chain name="OUTPUT" policy="ACCEPT" packet-count="7224" byte-count="9728996"/>
  </table>


  <table name="filter">
    <chain name="FORWARD" policy="DROP" packet-count="0" byte-count="0">
      <rule>
       <conditions>
        <match>
          <i>eth0</i>
          <o>eth1</o>
        </match>
        <state>
          <state>RELATED,ESTABLISHED</state>
        </state>
       </conditions>
       <actions>
        <ACCEPT/>
       </actions>

      </rule>

      <rule>
       <conditions>
        <match>
          <i>eth1</i>
          <o>eth0</o>
        </match>
       </conditions>
       <actions>
        <ACCEPT/>
       </actions>

      </rule>

      <rule>
       <actions>
        <LOG/>
       </actions>

      </rule>

    </chain>
    <chain name="INPUT" policy="ACCEPT" packet-count="7" byte-count="1118"/>
    <chain name="OUTPUT" policy="ACCEPT" packet-count="7" byte-count="1118"/>
  </table>

<!--WALLY TEMPLATE - MASQUERADING--><!--External Interface:  eth0
--><!--Internal Interface:  eth1--></iptables-rules>
Return current item: AWS WALLY