Hello.
I am wondering how can I find out how much traffic a client has consumed on a linux router at a point of time. For example I guess I should run a script to find out how many bytes has pass through the router to and from ip 192.168.2.100. I would like to know how I can get that value. I would like to save that value to MySQL table and update the value that way I get a total bandwidth or bytes used during that day, week, month.
I know if I issue iptables -nvL | grep 192.168.2.100 I get some values but, if the router gets restarted or iptables rules are flushed I'll loose those values.
Any idea? or is there an easier way?
Thanks in advanced.