I need a simple traffic monitor for Linux, that counts the traffic in a specific wireless network because I have volume restrictions on that one.
I tried it using the following iptables rule:
iptables -m mac -A INPUT -p all --mac-source <mac-address> \! -s 10.0.0.0/8
where <mac-address>
is the router's one. 10.0.0.0/8
is the local subnet.
What I actually want is something like --routed-through <mac-address>
.
Also, is there some way to gather iptables's statistics? Or is there maybe another tool that does what I want (reliable)?