i have few users for which i need to configure daily upload limit to the internet, they can upload certain amount od data to the internet (over pppoe interface). when that amount is reached all traffic designated to the internet must be dropped. counter traffic must be reset every day (every 24 hours, e.g. at midnight) so that that users have ability to send traffic to the internet next day until they reach limit again.
I don’t have any example configuration to offer but I’ve done something like that few years back:
Create a mangle OverQuota chain for each IP on your network (with return action). With a script, use byte counters to determine which IP is over quota and add it to the OverQuotaList.
Create a mangle that marks traffic of IPs on OverQuotaList.
Create simple or queue tree that lowers the speed of traffic marked by OverQuota mangle.