HTB Hashiz by dimka hAT freelsd DOT net
About
htb_hashiz.pl - tools for creating extremly fast and massive HTB rate limits... per-user... lots of users.
Based on tc filter hashing.
One network /17, 32k users - only 3 tc filters for qdisc finding. Fast!!!
Maximum IPs (ipv4) for limiting - about 0xFFFF-0x1000-1 per device, i.e. 61438
Multi-networks - supported.
Exclude list - supported.
Each user have sfq qdisc.
You can use IMQ + hashiz for ingress limiting.
How-to use
# ./htb_hashiz.pl -h # read help
# ./htb_hashiz.pl -i eth1 -n '1.1.1.0/24' # creating rc.qos.eth1 and rc.qos.eth1.helper
# . rc.qos.eth1 # about 1...10 minutes of execution.. depend from your cpu
# more rc.qos.eth1.helper # just for easy changes per-user rates on the fly
Download
htb_hashiz.pl version 0.3
example of generated rc.qos.eth1 2.5Meg
example of generated rc.qos.eth1.helper 1.1Meg