Mention the iptaccount --help command

This commit is contained in:
Tom Eastep 2011-01-30 10:46:35 -08:00
parent 303afe8c7e
commit 2cf3d15d45
2 changed files with 15 additions and 5 deletions

View File

@ -299,7 +299,7 @@
<command>shorewall restart</command>. This has a downside, however. If you <command>shorewall restart</command>. This has a downside, however. If you
change the network associated with an accounting table, then you must change the network associated with an accounting table, then you must
<command>shorewall stop; shorewall start</command> to have a successful <command>shorewall stop; shorewall start</command> to have a successful
restart (counters will be cleared). </para> restart (counters will be cleared).</para>
<para>Example: Suppose your WAN interface is eth0 and your LAN interface <para>Example: Suppose your WAN interface is eth0 and your LAN interface
is eth1 with network 172.20.1.0/24. To account for all traffic between the is eth1 with network 172.20.1.0/24. To account for all traffic between the
@ -321,6 +321,10 @@ ACCOUNT(net-loc,172.20.1.0/24) - eth1 eth0</programli
<para>For each local IP address with non-zero counters, the packet and <para>For each local IP address with non-zero counters, the packet and
byte count for both incoming traffic (IP is DST) and outgoing traffic (IP byte count for both incoming traffic (IP is DST) and outgoing traffic (IP
is SRC) are listed. The -f option causes the table to be flushed (reset is SRC) are listed. The -f option causes the table to be flushed (reset
all counters to zero) after printing. </para> all counters to zero) after printing.</para>
<para>For a command synopsis:</para>
<programlisting><command>iptaccount --help</command></programlisting>
</section> </section>
</article> </article>

View File

@ -117,9 +117,15 @@
(counters will be cleared).</para> (counters will be cleared).</para>
<para>The counters in a <replaceable>table</replaceable> are <para>The counters in a <replaceable>table</replaceable> are
printed using the <command>iptaccount</command> utility. As of printed using the <command>iptaccount</command> utility. For a
February 2011, the ACCOUNT Target capability and the command synopsis, type:</para>
iptaccount utility are only available when <ulink
<simplelist>
<member><command>iptaccount --help</command></member>
</simplelist>
<para>As of February 2011, the ACCOUNT Target capability and
the iptaccount utility are only available when <ulink
url="http://xtables-addons.sourceforge.net/">xtables-addons</ulink> url="http://xtables-addons.sourceforge.net/">xtables-addons</ulink>
is installed. See <ulink is installed. See <ulink
url="http://www.shorewall.net/Accounting.html#perIP">http://www.shorewall.net/Accounting.html#perIP</ulink> url="http://www.shorewall.net/Accounting.html#perIP">http://www.shorewall.net/Accounting.html#perIP</ulink>