----- Forwarded message from bert hubert <ahu@ds9a.nl> -----
Date: Wed, 26 Sep 2001 14:45:52 +0200
From: bert hubert <ahu@ds9a.nl>
To: lartc-admin@mailman.ds9a.nl
Subject: Re: tc with iptables
On Wed, Sep 26, 2001 at 10:33:17AM +0530, Mehul Vora
wrote:> Hi,
>
> is it possible to control the bandwidth assigned to a specific interface /
> IP on a linux router using tc with iptables? what i mean to say is, on a
> dual homed linux server, i use iptables to masquerade all the internal
> segment traffic over the interface connected to external segment... can i
> use tc to limit the bandwidth for one of the IP addresses from internal
> segment to say 64Kbps or 128Kbps etc.?
You can only limit what you send and in this case that works in your favor.
On the internal interface, the destination of your packets is the
''real''
internal address, which you can shape on.
If you want to limit *outgoing* traffic, from your internal segment to the
internet, you need to ''mark'' your packets when they come into
your system,
and then shape on the mark when they go out. This is possible.
Regards,
bert
--
http://www.PowerDNS.com Versatile DNS Software & Services
Trilab The Technology People
Netherlabs BV / Rent-a-Nerd.nl - Nerd Available -
''SYN! .. SYN|ACK! .. ACK!'' - the mating call of the internet
----- End forwarded message -----
--
http://www.PowerDNS.com Versatile DNS Software & Services
Trilab The Technology People
Netherlabs BV / Rent-a-Nerd.nl - Nerd Available -
''SYN! .. SYN|ACK! .. ACK!'' - the mating call of the internet