I cant figure out this traffic control malarky! how can i put a simple bandwidh limitation on traffic to or from a given port?
> I cant figure out this traffic control malarky! how can i put a simple > bandwidh limitation on traffic to or from a given port?I''m new to iproute2, but what I''d do is to put a transparent proxy and use delay pools in squid to limit bandwidth to http. At http://www.squid-cache.org/Doc/FAQ/FAQ-19.html#ss19.8 you''ll find an example. Of course, I''d love to see the solution with iproute2. Omar
On Tuesday 09 October 2001 00:16, Omar Armas Aleman wrote: simply mark the matching packets with ipchains/iptables and then you can easily shape the packets with tc that have the mark set.> > I cant figure out this traffic control malarky! how can i put a simple > > bandwidh limitation on traffic to or from a given port? > > I''m new to iproute2, but what I''d do is to put a transparent proxy and use > delay pools in squid to limit bandwidth to http. > At http://www.squid-cache.org/Doc/FAQ/FAQ-19.html#ss19.8 you''ll find an > example. > > Of course, I''d love to see the solution with iproute2. > > Omar > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: > http://ds9a.nl/2.4Routing/-- e-admin internet gmbh Andreas Gietl Roter-Brach-Weg 124a tel +49 941 3810884 fax +49 941 3810891 mobil +49 171 6070008
> simply mark the matching packets with ipchains/iptables and then you can > easily shape the packets with tc that have the mark set.heh I love this ''simply'' and ''easily shape'' care to elaborate? Ive read the advanced routing howto and searched the internet for other iproute2 and tc documentation. But I need more HELP!! :) Ive tried copying the tc example where traffic is bandwidth limited from differnt subnets but to be honest I wasnt sure if it worked or not. Can anyone give me an example of ratelimiting say incoming from port 80? Lets say (for the sake of the example) you have a 500Kb/s ADSL download stream on a static IP (eth0) and a 10.x.x.x sub net on eth1. You want to limit all traffic with source port 80 out of eth1 to half that, 250Kb/s I know its annoying when newbies ask questions, but there seems to be a lack of information out there. A good book recomendation would also be welcome :)
On Tuesday 09 October 2001 22:32, ewan wrote:> > simply mark the matching packets with ipchains/iptables and then you can > > easily shape the packets with tc that have the mark set. > > heh I love this ''simply'' and ''easily shape'' care to elaborate? Ive read the > advanced routing howto and searched the internet for other iproute2 and tc > documentation. But I need more HELP!! :) Ive tried copying the tc example > where traffic is bandwidth limited from differnt subnets but to be honest I > wasnt sure if it worked or not. Can anyone give me an example of > ratelimiting say incoming from port 80? Lets say (for the sake of the > example) you have a 500Kb/s ADSL download stream on a static IP (eth0) and > a 10.x.x.x sub net on eth1. You want to limit all traffic with source port > 80 out of eth1 to half that, 250Kb/s > > > I know its annoying when newbies ask questions, but there seems to be a > lack of information out there. A good book recomendation would also be > welcome :)take a look at docum.org. Stef -- stef.coene@docum.org stef.coene@belgacom.net More QOS info : http://docum.org/ Title : "Using Linux as bandwidth manager"