This is actually for my router, but it's linux based, so I'm hoping someone may be able to help.
Anyway, I currently have a router running tomato linux firmware and at 30 minute intervals I have it send a log file of bandwidth usage to a network drive.
From there, a program calculates the bandwidth used by each IP by adding up all the totals recorded in the log files.
The log files are the output of the router running the command:
What doesn't happen though, which I'd prefer, is that the bandwidth counts inside the router get cleared upon writing each log file. This way, I don't end up counting the same bandwidth use multiple times.
iptables -L traffic_in -vn
So my question is, is there a way to erase/reset the data count in the iptables?