I have a sub-net of machines which are run autonomously by users. I control the server which acts as gateway between the sub-net and the internet. My server is running Ubuntu.
I'm looking for a way to:
- Record the amount (only need size, don't care about what or from where) of incoming and outgoing network traffic per sub-net IP.
- Subsequently query the amount of network traffic that occurred on a particular IP address during a particular time-frame.
- Bonus: Allow me to cap or shape traffic for a specific IP address once a certain (configurable) volume has been reached.
Basically, something that let's me account and charge users for their network traffic.