Add iptaccount -l example with output

This commit is contained in:
Tom Eastep 2011-01-30 14:04:26 -08:00
parent 749b71e704
commit a026ffabe1
2 changed files with 31 additions and 0 deletions

View File

@ -123,6 +123,23 @@ Beta 3
iptaccount [-f] -l net-loc iptaccount [-f] -l net-loc
Example (output folded):
gateway:~# iptaccount -l loc-net
libxt_ACCOUNT_cl userspace accounting tool v1.3
Showing table: loc-net
Run #0 - 3 items found
IP: 172.20.1.105 SRC packets: 115 bytes: 131107
DST packets: 68 bytes: 20045
IP: 172.20.1.131 SRC packets: 47 bytes: 12729
DST packets: 38 bytes: 25304
IP: 172.20.1.145 SRC packets: 20747 bytes: 2779676
DST packets: 27050 bytes: 32286071
Finished.
gateway:~#
For each local IP address with non-zero counters, the packet and For each local IP address with non-zero counters, the packet and
byte count for both incoming traffic (IP is DST) and outgoing byte count for both incoming traffic (IP is DST) and outgoing
traffic (IP is SRC) are listed. The -f option causes the table to traffic (IP is SRC) are listed. The -f option causes the table to

View File

@ -318,6 +318,20 @@ ACCOUNT(net-loc,172.20.1.0/24) - eth1 eth0</programli
<programlisting><command>iptaccount [-f] -l net-loc</command></programlisting> <programlisting><command>iptaccount [-f] -l net-loc</command></programlisting>
<para>Example:</para>
<programlisting>gateway:~# <emphasis role="bold">iptaccount -l net-loc</emphasis>
libxt_ACCOUNT_cl userspace accounting tool v1.3
Showing table: net-loc
Run #0 - 3 items found
IP: 172.20.1.105 SRC packets: 115 bytes: 131107 DST packets: 68 bytes: 20045
IP: 172.20.1.131 SRC packets: 47 bytes: 12729 DST packets: 38 bytes: 25304
IP: 172.20.1.145 SRC packets: 20747 bytes: 2779676 DST packets: 27050 bytes: 32286071
Finished.
gateway:~#</programlisting>
<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