RE: [LARTC] limiting bandwidth to one IP

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I am testing tc and company tools :-)
> I am trying to limit the download from Internet to one computer.

you might be interested by my bytelimit patch, so I'll do some more
advertistement for it ... :-)
it is a netfilter (iptables) match allowing to do traffic shaping, like
the "limit" match but in bytes/second instead of packets/second. it's
as simple as :
iptables -A FORWARD -d 192.168.23.45 -m bytelimit --rate 10000 -j DROP
this will limit 192.168.23.45 to 10000 bytes/second . every packet
"out of quota" will be dropped.

the patch is at http://etudiant.univ-mlv.fr/~jpetazzo/bytelimit.tgz
feel free to contact me for more info/help about the patch.

Jerome Petazzoni <skaya at enix dot org>
--
Whoever had created humanity had left in a major design flaw. It was its
tendency to bend at the knees.
(Feet of Clay)




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux