htb : server trafficcontrol
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#
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 13 lines · 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 <-> internetI 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.
Quoted 8 lines
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
<http://www.linuximq.net/>
Greetings
Jens
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 5 lines
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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 2 lines · 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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 4 lines
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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 9 lines · 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->internettraffic 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.
Quoted 3 lines
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
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc