Page 1 of 1

Server bandwidth limit...

Posted: 06 Sep 2008, 17:46
by chris_34
HI,

I read a tutorial for limiting the servers bandwidth using iptables....
tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth0 parent 1: classid 1:1 cbq rate 256kbit allot 1500 prio 5 bounded isolated
tc filter add dev eth0 parent 1: protocol ip prio 16 u32 match ip dst 0/0 flowid 1:1
Would it be possible to add this functionality into CSF so that every time the firewall loaded, it imposed whatever bandwidth limit was specified in the config file in either kbits or mbits?

Posted: 09 Sep 2008, 16:03
by chirpy
AFAIK, those aren't iptables options they're kernel hacks so wouldn't be suitable for csf.