Hello I would like to know a script that does the following: All users using DHCP or Static IP (if possible) get their download speed checked every 1 minute, if after 3 checks an IP address is using almost all available download speed he receives a download (upload too if possible) limit for 2 hours. After 2 hours that specific IP can utilize once again almost all (or all) bandwidth and the whole process gets repeated again. Also in case there is other IP addresses that use almost all download speed while the other IP address(es) is in the limit the same process should be done for this IP(s) too (Checks the download speed 3 times if after 3 times it is still using almost all download it gets a limit). This process should be repeated and running 24/7.
This should be possible with a script taking the Bandwidth from Real-Time tab for all IP addresses and then comparing all of them individualy to Bandwidth Limiter for LAN. After there is found one IP that abuses the internet speed a limit should be set for that specific IP, same for the next IPs
Tomato WNR3500L router Live Bandwidth Abuse Limiter