1 Account traffic for all hosts in defined network/netmask.
5 - long (one counter per protocol TCP/UDP/IMCP/Other) and short statistics
7 - one iptables rule for all hosts in network/netmask
9 - loading/saving counters (by reading/writting to procfs entries)
12 .BI "--aaddr " "network/netmask"
13 defines network/netmask for which make statistics.
16 defines name of list where statistics will be kept. If no is
17 specified DEFAULT will be used.
20 table will colect only short statistics (only total counters
21 without splitting it into protocols.
25 account traffic for/to 192.168.0.0/24 network into table mynetwork:
27 # iptables -A FORWARD -m account --aname mynetwork --aaddr 192.168.0.0/24
29 account traffic for/to WWW serwer for 192.168.0.0/24 network into table mywwwserver:
31 # iptables -A INPUT -p tcp --dport 80
32 -m account --aname mywwwserver --aaddr 192.168.0.0/24 --ashort
34 # iptables -A OUTPUT -p tcp --sport 80
35 -m account --aname mywwwserver --aaddr 192.168.0.0/24 --ashort
39 # cat /proc/net/ipt_account/mynetwork
40 # cat /proc/net/ipt_account/mywwwserver
44 # echo "ip = 192.168.0.1 packets_src = 0" > /proc/net/ipt_account/mywwserver
47 http://www.barbara.eu.org/~quaker/ipt_account/