I need a script to limit a each ip address to 300MB of traffic daily and when it exceed
300MB put it in address lists and decrease its bandwidth to 256k to the end of the day.
Next day it reset counters and start again.
You can set a scheduler to check for this every few minutes, and then another scheduler to reset the counters every 24 hours.
That is if it is even possible to reset the counters, in which case you may need save the number each day?
I just wrote “Wan” because that was the name of my external interface.
But you want it per IP address on a LAN? I am not sure you can limit the bandwidth for a specific IP address on a shared LAN. As far as I know, any bandwidth limiting you wanna enforce is either per interface or something to do with queues.
Maybe someone can prove me wrong?
I don’t know much on that subject, and I haven’t worked with queues before.