I use iptables based MAC access restriction. I have listed MAC id's of users whom I want to allow access, and drop rest. And when I run iptables -vL
it shows all MAC id's and their usage: packets transferred, data in bytesh. So my questions are:
- Is it possible to make it show data usage in mega bytes?
- Can I sort it so that the MAC id's of heavy users will come at top?
- And, finally, can I save the data to disk, may be into a database, so that it can add up and survive reboots?