Season Greetings to all Tom, in your faq, u have this noted: While I am currently using the HTB version of The Wonder Shaper (I just copied wshaper.htb to /etc/shorewall/tcstart and modified it as shown in the Wondershaper README), I treid this with wondershaper, using Bearing Leaf 1.0 stable i even changed the tc command to run_tc, and tried it in both angles, and i receive the following.. processing /etc/shorewall/tcstart :notfound :notfound :notfound :notfound :notfound :notfound :notfound :notfound :notfound /etc/shorewall/tcstart: 103: Syntax error: word unxpected i just made the changes for the Up/download kbits, renname it from wharper.htb to tcstart, and that''s about it, when i saw it didn''t work originally, i then replaced all tc commands with run_tc, and i got the same message.. any ideas....maybe something i overlook, or is something else i might have to change in the wsharper.htb... or is this a LEAF specific problem...thnks __________________________________________________________________ Reginald Richardson ICQ#: 365841 Current ICQ status: + More ways to contact me __________________________________________________________________
--On Wednesday, January 01, 2003 02:44:37 PM +0100 "Reginald R. Richardson" <whiz.kid@tyarosh.homeip.net> wrote:> any ideas....maybe something i overlook, or is something else i might > have to change in the wsharper.htb... > or is this a LEAF specific problemThe :notfound''s are usually caused by editing the script on a Windoze box and not running the script through ''dos2unix'' afterward. Once you correct that problem, you may find that the script is incompatible with ''ash'' (the shell on Bering). See my post on that topic on the LEAF list. If that turns out to be the case for you, you will have to replace all instances of "$[...]" with "$((...))". There may be other incompatibilites as well. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://shorewall.sf.net Washington USA \ teastep@shorewall.net
> -----Original Message----- > From: Reginald R. Richardson > Sent: Wednesday, January 01, 2003 7:45 AM > Subject: [Shorewall-users] Wondershaper > > > Season Greetings to all > > Tom, in your faq, u have this noted: > > While I am currently using the HTB version of The Wonder > Shaper (I just copied wshaper.htb to /etc/shorewall/tcstart > and modified it as shown in the Wondershaper README), > > I treid this with wondershaper, using Bearing Leaf 1.0 stable > > i even changed the tc command to run_tc, and tried it in both angles, > and i receive the following.. > > processing /etc/shorewall/tcstart > :notfound > :notfound > :notfound > :notfound > :notfound > :notfound > :notfound > :notfound > :notfound > /etc/shorewall/tcstart: 103: Syntax error: word unxpected > > i just made the changes for the Up/download kbits, renname it from > wharper.htb to tcstart, and that''s about it, when i saw it didn''t work > originally, i then replaced all tc commands with run_tc, and i got the > same message.. > > any ideas....maybe something i overlook, or is something else i might > have to change in the wsharper.htb... > or is this a LEAF specific problem...thnksHave you loaded all the relevant tc modules? I had to scp a few of them from another system and add to the modules.lrp. Plus, (with Tom''s help) there were a few changes I had to make to WonderShaper based on the lack of certain features being compiled into berings tc.lrp. If needed, let me know and I''ll forward my edited TC script to you for reference. Steve Cowles
--On Wednesday, January 01, 2003 09:43:19 AM -0600 "Cowles, Steve" <Steve@SteveCowles.com> wrote:> Plus, (with Tom''s help) there were a few changes I had to make to > WonderShaper based on the lack of certain features being compiled into > berings tc.lrp. > > If needed, let me know and I''ll forward my edited TC script to you for > reference.Steve, I don''t recall that you had to replace $[...] with $((...)) when you installed Wonder Shaper. As I mentioned in my earlier post, that came up within the last two days on the LEAF list when another Bering user was trying to instal Wonder Shaper. Does your Bering shell interpret $[...] and $((...)) in the same way or am I simply getting forgetful in my old age? -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://shorewall.sf.net Washington USA \ teastep@shorewall.net
> -----Original Message----- > From: Tom Eastep > Sent: Wednesday, January 01, 2003 9:49 AM > Subject: RE: [Shorewall-users] Wondershaper > > > --On Wednesday, January 01, 2003 09:43:19 AM -0600 "Cowles, Steve" > <Steve@SteveCowles.com> wrote: > > > > Plus, (with Tom''s help) there were a few changes I had to make to > > WonderShaper based on the lack of certain features being > > compiled into berings tc.lrp. > > > > If needed, let me know and I''ll forward my edited TC script > > to you for reference. > > Steve, > > I don''t recall that you had to replace $[...] with $((...)) when you > installed Wonder Shaper. As I mentioned in my earlier post, that > came up within the last two days on the LEAF list when another Bering > user was trying to instal Wonder Shaper. > > Does your Bering shell interpret $[...] and $((...)) in the > same way or am I simply getting forgetful in my old age?If I understand your question correctly... [root@firewall] # a=14 [root@firewall] # b=$((15 - $a)) [root@firewall] # echo $b 1 It''s been awhile since you helped me with Wondershaper, but if I remeber correctly, I was unable to use the shorewall run_tc, etc... from your functions file. Don''t remeber why, but I simply used "tc" directly withinn the script. So far, I have been real happy with Wondershaper. Steve Cowles
--On Wednesday, January 01, 2003 10:24 AM -0600 "Cowles, Steve" <Steve@SteveCowles.com> wrote:> > If I understand your question correctly... > > [root@firewall] # a=14 > [root@firewall] # b=$((15 - $a)) > [root@firewall] # echo $b > 1 >That''s the way that both bash and ash work. What I''m talking about is: [root@gateway root]# ash # foo=10 # echo $[$foo/2] $[10/2] # echo $(($foo/2)) 5 # exit [root@gateway root]# foo=10 [root@gateway root]# echo $[$foo/2] 5 [root@gateway root]# echo $(($foo/2)) 5 [root@gateway root]# So bash treaats $((...))) and $[...] identically while ash does not. The original wondershaper script uses $[...]. Example: tc class add dev $DEV parent 1:1 classid 1:20 htb rate $[9*$UPLINK/10]kbit \ burst 6k prio 2 It was that line that the poster on the LEAF list was having problems with. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://shorewall.sf.net Washington USA \ teastep@shorewall.net
--On Wednesday, January 01, 2003 10:24 AM -0600 "Cowles, Steve" <Steve@SteveCowles.com> wrote:> > It''s been awhile since you helped me with Wondershaper, but if I remeber > correctly, I was unable to use the shorewall run_tc, etc... from your > functions file. Don''t remeber why, but I simply used "tc" directly withinn > the script.You can''t simply do a blanket replace of ''tc'' with ''run_tc'' because the first two ''tc'' commands in the Wonder Shaper script can (and often do) fail; that''s intentional (note the 2> /dev/null). IIRC, that''s the problem you were seeing. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://shorewall.sf.net Washington USA \ teastep@shorewall.net
Ok, re edit the wsharper.htb (tcstart) but this time one BEARING system, Instead of making the changes on the windows system, But I still got the same error messages. Yes I did loaded the modules that tom had suggested to another poster in the leaf forum, But can u just sent me a copy of your wsharper.htb (tcstart), let me compare it, and see if it works Btw, since we on this topic, here and wondershaper question.. In the LOW Priority options, how do I separate my settings.. NOPRIOPORTDST=25 110 6502 or NOPRIOPORTDST=25, 110, 6502 thnks Thnks Reggie> -----Original Message----- > From: Cowles, Steve [mailto:Steve@SteveCowles.com] > Sent: Wednesday, January 01, 2003 16:43 > To: shorewall-users@shorewall.net > Subject: RE: [Shorewall-users] Wondershaper > > > > -----Original Message----- > > From: Reginald R. Richardson > > Sent: Wednesday, January 01, 2003 7:45 AM > > Subject: [Shorewall-users] Wondershaper > > > > > > Season Greetings to all > > > > Tom, in your faq, u have this noted: > > > > While I am currently using the HTB version of The Wonder > > Shaper (I just copied wshaper.htb to /etc/shorewall/tcstart > > and modified it as shown in the Wondershaper README), > > > > I treid this with wondershaper, using Bearing Leaf 1.0 stable > > > > i even changed the tc command to run_tc, and tried it in > both angles, > > and i receive the following.. > > > > processing /etc/shorewall/tcstart > > :notfound > > :notfound > > :notfound > > :notfound > > :notfound > > :notfound > > :notfound > > :notfound > > :notfound > > /etc/shorewall/tcstart: 103: Syntax error: word unxpected > > > > i just made the changes for the Up/download kbits, renname it from > > wharper.htb to tcstart, and that''s about it, when i saw it > didn''t work > > originally, i then replaced all tc commands with run_tc, > and i got the > > same message.. > > > > any ideas....maybe something i overlook, or is something > else i might > > have to change in the wsharper.htb... or is this a LEAF specific > > problem...thnks > > Have you loaded all the relevant tc modules? I had to scp a > few of them from another system and add to the modules.lrp. > > Plus, (with Tom''s help) there were a few changes I had to > make to WonderShaper based on the lack of certain features > being compiled into berings tc.lrp. > > If needed, let me know and I''ll forward my edited TC script > to you for reference. > > Steve Cowles > _______________________________________________ > Shorewall-users mailing list > Shorewall-users@shorewall.net > http://www.shorewall.net/mailman/listinfo/shor> ewall-users >
--On Wednesday, January 01, 2003 5:54 PM +0100 "Reginald R. Richardson" <whiz.kid@tyarosh.homeip.net> wrote:> > In the LOW Priority options, how do I separate my settings.. > > NOPRIOPORTDST=25 110 6502 or > NOPRIOPORTDST=25, 110, 6502 >The former. -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://shorewall.sf.net Washington USA \ teastep@shorewall.net