I'm very new to iptables but i've been reading the manual the last few days and i really like it so i was trying a few things out but i need your help.
on weekdays, between 4am and 4pm, i want to limit all root users on my local network to an equal amount of HTTP bandwidth. suppose my total download speed is 60kbps, if there are two root users logged on, i want each user to have 30kbps but if there are three users, i want to give each user 20kbps, etc. how would i append my rule below in order to achieve this? i believe i have to use the hashlimit module to use this feature but i'm not sure how.
also, is my usage of --uid-owner below correct? or should it be prefixed by '-m state'?
iptables -A INPUT -p tcp --dport http --timestart 04:00 --timestop 16:00 --days Mon,Tue,Wed,Thu,Fri -s 192.168.0.0/16 --uid-owner 0 -m state --state NEW -j ACCEPT