Learn about Linux
Download Linux
Get Linux help
Get special offers on:
Linux Application Dev Programming Software
Email:
#
Return to Keeping tabs on your network traffic
© Copyright 1999-2008 - SourceForge, Inc., All Rights Reserved About Linux.com - Privacy Statement - Terms of Use - Advertise - Trademark - Ask Linux Questions - Write for Us - RSS Feed ThinkGeek - Slashdot - SourceForge.net - freshmeat - Surveys - Jobs
Re: Keeping tabs on your network traffic
Posted by: Anonymous [ip: 87.65.73.66] on December 05, 2008 05:23 PMput 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
#