Server bandwidth limit...

Post Reply
chris_34
Junior Member
Posts: 2
Joined: 06 Sep 2008, 17:33

Server bandwidth limit...

Post 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?
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

AFAIK, those aren't iptables options they're kernel hacks so wouldn't be suitable for csf.
Post Reply