I can count packets and bytes, by LAN IP and direction, with something
like this:
LAN="192.168.0"; Hosts="100 102 103 105 108 120 122 124 126 130 132"
for SD in s d; do
iptables -N traffic_$SD
iptables -I FORWARD -j traffic_$SD
for IP in $HOSTS; do
iptables -A traffic_$SD -$SD $LAN.$IP
done
done
I would also like to count connections (those that have been tracked),
just like the packets and bytes that have been moved.
Can someone please show me how that can be done?
I should mention that the routers I am working with are stuck with
Netfilter 1.3.7 on Linux 2.4.20.
Thanks!
Peter
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html