Set quota for each device

Hello there,
is there any way to set quota for each device
I have 250 GB quota and i want each divided this quota on my devices , so any device finished its quota automatically can not access to the internet

Looks like typical usage of a RADIUS server for auth and accounting. Either in coop with a Captive Portal (i.e. coova-chilli), OR WiFi connection auth with RADIUS.

The openNDS package does this with just a couple of config settings. ie quota per device and duration.

1 Like

I appreciate your replies but is there any tweaks or pakge I can use it
because i don't know openNDS or RADIUS

this is quota script for device by mac address 2GB daily is it correct I found it in the form

iptables -A QUOTA -m mac ---mac-source 00:11:22:33:44:55:66 -m quota --quota 2147483648 -j ACCEPT
iptables -A QUOTA -j DROP