Statistics collector for Iptables.
It records how many packets and bytes passed for given range of IPs (subnet).
Each IP is counted separately.
Data can be read via procfs from /proc/net/ipt_STATS/ directory.
Kernel module is named xt_STATS.ko.
example:
iptables -A OUTPUT -j STATS --dstrange 192.168.0 --statfile local
ipstats -i 192.168.0 local
download: ipt_STATS-5.tar.gz
(should work with linux versions 2.6.27 〰 2.6.37)
Gateway matching module for Iptables.
Tells whether nexthop of datagram's route is within given range.
Note that directly accessible hosts serve as gateways for themselves.
example:
iptables -A OUTPUT -o eth0 -m via --via ! 192.168.0/24 -j DROP
download: ipt_via-9.tar.gz
(not up to date due to permanent API changes, sorry)