SOURCES: kernel-desktop-ipt_account.patch - up to 1.1.2.2
czarny
czarny at pld-linux.org
Thu Aug 23 20:01:01 CEST 2007
Author: czarny Date: Thu Aug 23 18:01:01 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- up to 1.1.2.2
---- Files affected:
SOURCES:
kernel-desktop-ipt_account.patch (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/kernel-desktop-ipt_account.patch
diff -u SOURCES/kernel-desktop-ipt_account.patch:1.1 SOURCES/kernel-desktop-ipt_account.patch:1.2
--- SOURCES/kernel-desktop-ipt_account.patch:1.1 Sat Aug 18 19:43:48 2007
+++ SOURCES/kernel-desktop-ipt_account.patch Thu Aug 23 20:00:54 2007
@@ -1014,3 +1014,58 @@
obj-$(CONFIG_IP_NF_MATCH_RECENT) += ipt_recent.o
obj-$(CONFIG_IP_NF_MATCH_GEOIP) += ipt_geoip.o
+diff -Nur linux/net/ipv4/netfilter/Kconfig linux/net/ipv4/netfilter/Kconfig
+--- linux/net/ipv4/netfilter/Kconfig 2006-05-02 23:38:44.000000000 +0200
++++ linux/net/ipv4/netfilter/Kconfig 2006-05-04 11:23:02.000000000 +0200
+@@ -606,5 +606,51 @@
+ Allows altering the ARP packet payload: source and destination
+ hardware and network addresses.
+
++config IP_NF_MATCH_ACCOUNT
++ tristate "account match support"
++ depends on IP_NF_IPTABLES && PROC_FS
++ help
++ This match is used for accounting 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)
++
++ 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/
++
++config IP_NF_MATCH_ACCOUNT_DEBUG
++ bool "account debugging output"
++ depends on IP_NF_MATCH_ACCOUNT
++ help
++ Say Y to get lots of debugging output.
++
++
++
+ endmenu
+
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/kernel-desktop-ipt_account.patch?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list