Page 1 of 1

By what mechanism does quotas "shut down all internet access" ?

Posted: Sun May 31, 2020 3:11 pm
by woodwood
Hello,

By what mechanism does quotas "shut down all internet access" ?

Can this be modified/scripted?

for example: (instead of doing what it does)
toggle wifi to off when daily bandwidth limit reached

background:
2 internet connections(on 2 separate routers)
(1 fast and metered, the other slow and unlimited)

Would like to like to toggle wifi off (until quota reset,)
thus forcing clients to
use the secondary wifi/SSID on an unconnected/separate
AP/router... then toggle wifi back on upon quota reset.

Thanks.

Re: By what mechanism does quotas "shut down all internet access" ?

Posted: Sun May 31, 2020 5:21 pm
by Lantis
It is all done within iptables, so nothing you can really hook to trigger any events.
You could do an external check using print_quotas and your own script to carry out everything on a cronjob.

Re: By what mechanism does quotas "shut down all internet access" ?

Posted: Sun May 31, 2020 5:49 pm
by woodwood
Thanks Lantis, appreciate the info

...will look into print_quotas