Skip to contentSkip to conversation

Second problem with Bandwidth limiting

LARTC bert hubert [email protected] 1 participant 1 message Oct 18, 2000 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): marc-lartc-98373938216802@msgid-missing

bert hubert [email protected]

author
#1 lore raw

<PRE>On Wed, Oct 18, 2000 at 09:59:36AM +0200, Fredrik Rambris wrote:

&gt;<i> Add a loopback interface and set the limit there. Local access to the </I>&gt;<i> machine should not be limited. Like this:
</I>
This is not the right way to go about it.

&gt;<i> +--------------+ +-------------+ +-------------------+
</I>&gt;<i> Internet-&lt;128kbit&lt; Eth1 |-| Lo1 &gt;128kbit&gt;-| Proxy &lt;-100MBit-&gt; |-LAN
</I>&gt;<i> +--------------+ +-------------+ +-------------------+
</I>&gt;<i>
</I>&gt;<i> So only trafic to and from Internet would be limited. Trafic to an from </I>&gt;<i> the LAN would be 100MBit.
</I>&gt;<i>
</I>&gt;<i> Is this possible?! Or is there another better solution to get the same </I>&gt;<i> result?
</I>
Mark packets coming in over the internet with either ipchains or netfilter.
This needs 'shape on fwmark' or something like that enabled in the kernel configuration.

If the packets traverse your router untouched (ie, don't go via the proxy), the mark will remain on them. Then you shape outgoing packets in eth0 that have this mark on them, and don't shape other packets.

Regards,

bert hubert

Signature · 6 lines
PowerDNS                     Versatile DNS Services  
Trilab                       The Technology People   
'SYN! .. SYN|ACK! .. ACK!' - the mating call of the internet


</PRE>