Hi ! I´ve been using the wonderful wondershaper from chapter 15.8 of the LARTC Howto for some time. It´s really wonderful. Actually, I use the version from http://freshmeat.net/projects/wshaper/?topic_id=87 Now I tried to put some hosts to low priority, and it doesn´t work. The traffic is splitted equally between the noprio and the other hosts. Is this because I use ip masquerading, and all the traffic seems (for the shaper) to come from one host ? The U32 filter and the other setup works correctly, because e.g. ssh traffic on port 23 always has highest priority. Has anybody an idea how to fix it ? I think a nice sketch about the order of routing/postrouting and traffic shaping would help me. Sebastian -=> Sebastian Bleikamp -=> EMail: <Sebastian.Bleikamp@web.de> -=> Phone: +49-172-6545394 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Friday 06 September 2002 10:52, Sebastian Bleikamp wrote:> Hi ! > > I´ve been using the wonderful wondershaper from chapter 15.8 of the > LARTC Howto for some time. It´s really wonderful.That''s exactly why it''s called the wondershaper :)> Actually, I use the version from > http://freshmeat.net/projects/wshaper/?topic_id=87 > > Now I tried to put some hosts to low priority, and it doesn´t work. The > traffic is splitted equally between the noprio and the other hosts. > Is this because I use ip masquerading, and all the traffic seems (for > the shaper) to come from one host ? The U32 filter and the other setup > works correctly, because e.g. ssh traffic on port 23 always has highest > priority. > > Has anybody an idea how to fix it ?You can use an other filter : fw. This filter can use the iptables/ipchains mark. And you can put this mark when the packets enters the LAN NIC so you can use the ip-address of the incoming packets from your lan, mark this packets and use the mark on the internet NIC.> I think a nice sketch about the order of routing/postrouting and traffic > shaping would help me.I have one on docum.org, but it needs some updates. It''s the one posted some months ago on this list. You can find it under KPTD. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Stef Coene schrieb:> Try efsq. It''s SFQ (so each "flow" gets an equal chance to send something). > But efsq uses only dst/src addres and not dst/src address/port like sfq. > Ideal to kill download managers because all traffic form/to the same hosts is > considered as one stream. > I have a link on docum.org under FAQ.I will test it, thnx. But another question: I tried your solution via fwmark, and it works. At least when the router is forwarding. I can slow down hosts on my LAN this way. If i try to slow the gateway/router down, it fails. I have added a mark to all outgoing traffic on ppp0, which comes from the router, to the OUTGOING/mangle table. But it doesn´t work this way. But from the sketch on your homepage this should work. I already checked the IPs and devices and they are correct. Any suggestions ? ;-) Seb. -=> Sebastian Bleikamp -=> EMail: <Sebastian.Bleikamp@web.de> -=> Phone: +49-172-6545394 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Friday 06 September 2002 13:47, Sebastian Bleikamp wrote:> Stef Coene schrieb: > > Try efsq. It''s SFQ (so each "flow" gets an equal chance to send > > something). But efsq uses only dst/src addres and not dst/src > > address/port like sfq. Ideal to kill download managers because all > > traffic form/to the same hosts is considered as one stream. > > I have a link on docum.org under FAQ. > > I will test it, thnx. > > > But another question: > I tried your solution via fwmark, and it works. At least when the router > is forwarding. I can slow down hosts on my LAN this way. If i try to > slow the gateway/router down, it fails. > > I have added a mark to all outgoing traffic on ppp0, which comes from > the router, to the OUTGOING/mangle table. But it doesn´t work this way. > But from the sketch on your homepage this should work. I already checked > the IPs and devices and they are correct.If you list the iptables/ipchains rules, you can check the counters to see if they are incrementing. And the sketch at my homepage is for from complete. I have to check it out for errors. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I think I''ve gotten everything up and running but I''m not sure. How can I tell if wondershaper is running correctly (I just put the command /wondershaper/wshaper in my /etc/rc.local)? Can anyone recommend a good program to log bandwidth usage? Thanx Snuffy2 __________________________________________________ Do you Yahoo!? Yahoo! News - Today''s headlines http://news.yahoo.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Wednesday 18 September 2002 06:42, Justin Morea wrote:> I think I''ve gotten everything up and running but I''m > not sure. > > How can I tell if wondershaper is running correctly (I > just put the command /wondershaper/wshaper in my > /etc/rc.local)? > > Can anyone recommend a good program to log bandwidth > usage?iptraf, ethereal, ntop, a quick google search will show some more. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Wednesday 18 September 2002 12:42, Justin Morea wrote:> How can I tell if wondershaper is running correctlytc qdisc sh dev $dev tc class sh dev $dev tc -s -d qdisc show dev $dev tc -s -d class show dev $dev> Can anyone recommend a good program to log bandwidth > usage?I would recommend mrtg. -- Salam, Adi Nugroho _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/