Linux.com

Re: Keeping tabs on your network traffic

Posted by: Anonymous [ip: 87.65.73.66] on December 05, 2008 05:23 PM
easiest solution:
put in an iptables rule
and clear it every month (crond)

iptables -I INPUT -s ! <local_network_portion>/<netmask in CIDR format> -j ACCEPT

now you'll have a rule and its counters

do
iptables -v -L INPUT
and look at the counter

PS: you need to add this rule beforehand if you filter on it,
and this is only for incoming traffic not comming from your local lan

then put

iptables -Z in (root's) crontab file
and let it run every ...
when your ISP clears its counters

#

Return to Keeping tabs on your network traffic