From 6f5d18486aeaabc05d0aaa57708dbf18cc72af5b Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Fri, 1 Apr 2005 06:54:23 +0000 Subject: add lots of man pages (Jonas Berlin) --- extensions/libipt_account.man | 47 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 extensions/libipt_account.man (limited to 'extensions/libipt_account.man') diff --git a/extensions/libipt_account.man b/extensions/libipt_account.man new file mode 100644 index 0000000..fcbb179 --- /dev/null +++ b/extensions/libipt_account.man @@ -0,0 +1,47 @@ +Account traffic for all hosts in defined network/netmask. + +Features: + +- long (one counter per protocol TCP/UDP/IMCP/Other) and short statistics + +- one iptables rule for all hosts in network/netmask + +- loading/saving counters (by reading/writting to procfs entries) + +.TP +.BI "--aaddr " "network/netmask" +defines network/netmask for which make statistics. +.TP +.BI "--aname " "name" +defines name of list where statistics will be kept. If no is +specified DEFAULT will be used. +.TP +.B "--ashort" +table will colect only short statistics (only total counters +without splitting it into protocols. +.P +Example usage: + +account traffic for/to 192.168.0.0/24 network into table mynetwork: + +# iptables -A FORWARD -m account --aname mynetwork --aaddr 192.168.0.0/24 + +account traffic for/to WWW serwer for 192.168.0.0/24 network into table mywwwserver: + +# iptables -A INPUT -p tcp --dport 80 + -m account --aname mywwwserver --aaddr 192.168.0.0/24 --ashort + +# iptables -A OUTPUT -p tcp --sport 80 + -m account --aname mywwwserver --aaddr 192.168.0.0/24 --ashort + +read counters: + +# cat /proc/net/ipt_account/mynetwork +# cat /proc/net/ipt_account/mywwwserver + +set counters: + +# echo "ip = 192.168.0.1 packets_src = 0" > /proc/net/ipt_account/mywwserver + +Webpage: + http://www.barbara.eu.org/~quaker/ipt_account/ -- cgit v1.2.3