Hi Jaap, thank you for the information. I have started to load tc.lrp, bash.lrp (as the wonder-script is a bash script) and load all modules specified in the qos-htb howto. I also modified slightly the script, commenting 4 lines
#echo Please read the documentation in 'README' first #exit and #tc filter add dev $DEV parent 1: protocol ip prio 18 u32 \ # match ip dst 0.0.0.0/0 flowid 1:20 Running the script alone is OK but when run by 'shorewall restart', I need to replace $[9*$UPLINK/10] with $((9*$UPLINK/10)). I guess because 'bash' is not recognized within shorewall script. I do not have anything in 'tcrules' yet. So far there is no error and it seems that something happens because it slowed down my downloading significantly. I tried to download a 15-M file from Sun and with 'tcstart' present, I got about 2K/sec, whereas if I remove 'tcstart' and restart shorewall, I got 100K/sec. I will try to refine the script soon. By the way, is there any way to test the wonderscript and tell if it works the way we want it to? Thanks again. M Lu. ----- Original Message ----- From: "Jaap Eldering" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 28, 2004 6:53 PM Subject: Re: [leaf-user] How to use QOS traffic shaping in Being U 2.2 > On Mon, Sep 27, 2004 at 11:19:46PM -0400, M Lu wrote: > > Hi, > > > > I am using Vonage phone and would like to use traffic shaping to give it > > some priority. As I read thru the mail archive and documents, I found out > > that there are possible ways > > > > 1 - Download Wondershaper script and copy it to Shorewall tcstart script > > etc, as described on Tom's Web site. > > 2 - Use the package qos-htb.lrp prepared by Eric Spakman and probably > > follow instruction at http://leaf.sourceforge.net/doc/guide/buhtb-qos.html > > > > It seems to me that the first way is more straighforward, but since the > > package is prepared for Bering U 2.x, I am not sure if I should use it. > > > > Any suggestions? > > I have tried this a time ago with Bering 1.x and I couldn't get it > working (but that may be my fault). > > Recently I have tried it on my firewall again, which I had upgraded to > Bering-uclibc 2.2. This I got working within little time. > > I installed the tc.lrp package and also the cls_*.o and sch_*.o modules > and I am now using a modified version of the wondershaper script > (slightly better ping times and down/upload speeds by also doing shaping > on my internal interface). > > I'd suggest using the wondershaper. This way you don't have to know all > the configuration details of the qos-htb package, which is just another > script frontend to the HTB scheduler. > > > I also have another following questions: > > > > - Is Bering U 2.2 kernel ready for QOS HTB? > > Yes, you can use the HTB scheduler right away, only need the > bering-uclibc tc package and the modules for the schedulers and filters, > you will be using. > > > - If I use Shorewall's approach, do I have to declare the netfilter modules > > as in the instructions for second approach? Note that was writen for > > original Bering? > > Yes, you have to load these. I don't know exactly which ones the > wonderscript uses. You could load them all to be on the safe side, but I > think you need at least the following: sch_sfq, sch_prio, sch_ingress, > sch_htb, cls_u32, cls_fw > > > Jaap Eldering > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > ------------------------------------------------------------------------ > leaf-user mailing list: [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/leaf-user > SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html > ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
