Re: [LARTC] htb : server trafficcontrol

2007-09-16 Thread Jens Thiele
On 16 Sep 2007, [EMAIL PROTECTED] wrote:
> Suppose we have simple router with upstream interface connected
> to internet (eth0) and downstream interface connected to lan (eth1).
> Lan uses private addressing so there is NAT rule used for traffic
> leaving eth0. 
>
> You can redirect lan->internet traffic from ingress qdisc
> of eth1 to ifb0. Traffic on ifb0 will be in "before-nat" state, so
> private address based shaping will be possible. So no need for
> classifying de-nated traffic.

Yes, this is of course possible. But then you don't shape the traffic
from/to the server itself which is what the original poster wants to do.

> Some people here on lartc list shared opinions that shaping in ingress
> is not effective. It worked for me well on routers with hundreds of
> clients.

It works for me quite well, too. (And IMHO would work really well if ECN
would be in widespread use)
(using IMQ + kernel 2.6.18 - as long as nobody floods me with UDP
packets ;-)

Greetings
Jens
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] htb : server trafficcontrol

2007-09-16 Thread Marek Kierdelewicz

>But AFAIK at the moment practically only if there is no NAT involved
>(or if you do not want to classify de-nated traffic).
>Any news regarding this problem?

Suppose we have simple router with upstream interface connected
to internet (eth0) and downstream interface connected to lan (eth1).
Lan uses private addressing so there is NAT rule used for traffic
leaving eth0. 

You can redirect lan->internet traffic from ingress qdisc
of eth1 to ifb0. Traffic on ifb0 will be in "before-nat" state, so
private address based shaping will be possible. So no need for
classifying de-nated traffic.

Some people here on lartc list shared opinions that shaping in ingress
is not effective. It worked for me well on routers with hundreds of
clients.

Cheers,
Marek Kierdelewicz
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] htb : server trafficcontrol

2007-09-15 Thread Jens Thiele
On 15 Sep 2007, [EMAIL PROTECTED] wrote:

> You can shape download to server on ingress using IFB:
> http://linux-net.osdl.org/index.php?title=IFB

But AFAIK at the moment practically only if there is no NAT involved (or
if you do not want to classify de-nated traffic).
Any news regarding this problem?

Greetings
Jens
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] htb : server trafficcontrol

2007-09-15 Thread Marek Kierdelewicz

>Any idea how to control that traffic (serv <-> net)
>
>Its the same problems with apt etc etc When I use it, it uses the
>entire amount of bandwidth...

You can shape download to server on ingress using IFB:
http://linux-net.osdl.org/index.php?title=IFB

IMQ could also be helpfull, but IFB is included in vanilla kernels. IMQ
isn't and never will be.

Cheers,
Marek Kierdelewicz
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


Re: [LARTC] htb : server trafficcontrol

2007-09-15 Thread Jens Thiele
On 15 Sep 2007, [EMAIL PROTECTED] wrote:

> Hi everyone,
>
> I have a small problem. I have my debian server setup in my home.
> I have setup htb that is working perfectly.
> The only problem I have is to control the traffic server <-> internet
>
> I have a daemon (bittorrent) and I would like to limit its download to
> a certail amount. How can I do that ?
>
> I have tried layer7 but it seems I'm doing something wrong in the htb 
> script.
>
>
> Any idea how to control that traffic (serv <-> net)
>
> Its the same problems with apt etc etc When I use it, it uses the
> entire amount of bandwidth...
>
>
> With Kind Regards
> Matt

Assuming your server does NAT for your LAN you probably want to use IMQ


Greetings
Jens
___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


[LARTC] htb : server trafficcontrol

2007-09-15 Thread Mateusz Matusiak
Hi everyone,


I have a small problem. I have my debian server setup in my home.
I have setup htb that is working perfectly.
The only problem I have is to control the traffic server <-> internet

I have a daemon (bittorrent) and I would like to limit its download to a 
certail amount. How can I do that ?

I have tried layer7 but it seems I'm doing something wrong in the htb 
script.


Any idea how to control that traffic (serv <-> net)

Its the same problems with apt etc etc When I use it, it uses the entire 
amount of bandwidth...


With Kind Regards
Matt


Każdy morderca jest czyimś sąsiadem... 
Fascynujący thriller NIEPOKÓJ - w kinach OD 14 września! 
http://klik.wp.pl/?adr=http%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fniepokoj.html&sid=23


___
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc