mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 22:30:58 +01:00
Add iptaccount -l example with output
This commit is contained in:
parent
749b71e704
commit
a026ffabe1
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user