On Mon, 04 Aug 2003 22:33:23 +0100, Richard Lamont wrote:
>
> I've spent hours and hours ploughing through docs and experimenting, but
> it's got to the stage where I need some help, pretty please.
>
> I have a number of machines on a LAN, connected to the net via an ADSL
> router.
>
> I'm throttling output from one machine to stop it hogging the ADSL uplink,
> thus:
>
> tc qdisc add dev eth0 root tbf limit 10k burst 22k rate 200kbit
>
> Unfortunately this also throttles traffic to other machines on the LAN.
>
> How do I change this so that the tbf throttles traffic to the Internet but
> not to other machines on the LAN? I specifically want to use tbf and to
> filter according to IP addresses only.
>
> The machine runs Debian sarge with kernel 2.4.20.
>
> (For the sake of argument, let's say my network address is 192.168.1.0/24,
> the router/gateway address is 192.168.1.1 and the machine to be throttled is
> 192.168.1.37.)
>
> TIA.
TBF does not do throttling by IP, only by interface. You may want to look
into CBQ or other options listed in:
http://www.tldp.org/HOWTO/ADSL-Bandw...agement-HOWTO/
http://en.tldp.org/HOWTO/Bandwidth-Limiting-HOWTO/
http://www.linuxguruz.com/iptables/h...ting.html#toc9