Re: [leaf-user] TC?

2005-03-18 Thread Jaap Eldering
On Thu, Mar 17, 2005 at 08:14:51PM -0700, Joe Nelson wrote:
 So, it sounds like people really like the wondershaper.  Will it allow
 me to just set limits on a number of IPs and leave everything else
 alone?  I don't want to be doing a whole lot just the limits.  Thanks.

The wondershaper indeed is a very nice script, but I think that it
doesn't exactly fit your needs. It's made to optimize your internet
connection by minimizing the delay of interactive traffic and
removing long queues, which improves latency.

However, I think that it is a good starting point to see how a TC
script is set up.

For a solution to your problem see for example:
http://lartc.org/howto/lartc.ratelimit.single.html

It's based on the CBQ classfull queueing discipline. I have no
experience with the CBQ qdisc, but am using the HTB (as is the new
version of the wondershaper), which is recommended in most
documentation.

You probably need two things in your TC script: a classfull qdisc
(e.g. HTB) and filters that place traffic from specific IP's into the
different classes of that HTB qdisc. It would look something like
this (no guarantees that it works):

tc qdisc add dev $DEV root handle 1: htb default 10
tc class add dev $DEV parent 1:1  classid 1:10 htb ${CONNRATE}Kbit prio 1
tc class add dev $DEV parent 1:1  classid 1:11 htb rate ${RATE}Kbit prio 2

tc filter add dev $DEV parent 1: protocol ip prio 18 u32 match ip src $IP/$MASK 
flowid 1:11

Where $DEV is the ethernet device of your outgoing connection,
$CONNRATE your upload speed, $RATE the limit upload speed of the
computers with IP $IP and netmask bits $MASK (for one IP, set MASK 32).

Rate limiting incoming traffic is a lot more difficult, because you
can only drop it to slow it down.

Hope this helps you get started.

Jaap


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


[leaf-user] RE: [leaf-devel] Bering-uClibc: qmail ???

2005-03-18 Thread Peter Mueller
 I am very surprised that I cannot find qmail for Bering-uClibc.
 
 What am I missing?
 
 Can somebody, please, make a Bering-uClibc qmail.lrp ???

Try Bering package http://leaf.sourceforge.net/packages/glibc-2.0/qmail.lrp.
You will need to use at least
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/leaf/bin/bering-uclibc/package
s/libc207.lrp?rev=HEADcontent-type=application/octet-stream (libc207) or
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/leaf/bin/bering-uclibc/package
s/libc225.lrp?rev=HEADcontent-type=application/octet-stream (libc225) with
qmail to make it work.  Sorry, I don't know if it needs more libraries and
don't have time to test it.

Regards,

P


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


Re: [leaf-user] Bering-uClibc: qmail ???

2005-03-18 Thread Martin Hejl
Hi Michael,
I am very surprised that I cannot find qmail for Bering-uClibc.
What am I missing?
Can somebody, please, make a Bering-uClibc qmail.lrp ???
Short version is:
read http://cr.yp.to/qmail/dist.html and tell us how we can provide a 
qmail.lrp that complies to the qmail license (and no, I have no plans to 
contact D. J. Bernstein and ask for permission - other people have tried 
and failed). It's a shame, since qmail is indeed the perfect MTA for an 
embedded box (given that it's apparently very secure and also small 
enough for an embedded box) - but if we expect people to honour the GPL, 
we must also honour the license of the software we distribute. We're 
already bending the rules by providing djbdns, mainly because there's 
no real alternative, and having a real dns server on a router is a 
pretty common request - but an MTA is a different beast (given the fact 
that running an MTA that stores the mails in a RAM-disk isn't even RFC 
compliant).

If you want to build it yourself, the Bering uClibc team will most 
likely be happy to help you get going - but we can't distribute it in 
binary form without breaking the license (at least, that's how I read 
the page above).

Martin
---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click

leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html