Version 3.0.5 with the two-devices setup (eth0 - net, eth1 - loc). Kernel 2.4.29 tcdevices, tcrules, and tcclasses are clones of the wondershaper example (http://www.shorewall.net/traffic_shaping.htm) with eth0 replacing ppp. With TC_ENABLED=Internal in shorewall.conf: ---- Validating /etc/shorewall/tcdevices... Validating /etc/shorewall/tcclasses... ERROR: device A seems not to be configured in tcdevices ---- No errors with TC_ENABLED=No although the line "Setting up Traffic Control Rules..." is printed. Shouldn''t all tc files be skipped? The bottom of the trace file[1]: ++ check_tcclasses_options ++ ''['' 0 -gt 1 '']'' ++ return 0 + wrongopt+ ''['' -z '''' '']'' + fatal_error ''device A seems not to be configured in tcdevices'' + echo '' ERROR: device A seems not to be configured in tcdevices'' ERROR: device A seems not to be configured in tcdevices [1]: http://s4.yousendit.com/d.aspx?id=20GBD887DXP0R0ULMRKKLCQH3D -- http://www.noderunner.net/~llin/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Lawrence Lin wrote:> Version 3.0.5 with the two-devices setup (eth0 - net, eth1 - loc). > Kernel 2.4.29 > > tcdevices, tcrules, and tcclasses are clones of the wondershaper example > (http://www.shorewall.net/traffic_shaping.htm) with eth0 replacing ppp. > > With TC_ENABLED=Internal in shorewall.conf: > > ---- > Validating /etc/shorewall/tcdevices... > Validating /etc/shorewall/tcclasses... > ERROR: device A seems not to be configured in tcdevices > ---- > > No errors with TC_ENABLED=No although the line "Setting up Traffic Control > Rules..." is printed. Shouldn''t all tc files be skipped? > > The bottom of the trace file[1]: > > ++ check_tcclasses_options > ++ ''['' 0 -gt 1 '']'' > ++ return 0 > + wrongopt> + ''['' -z '''' '']'' > + fatal_error ''device A seems not to be configured in tcdevices'' > + echo '' ERROR: device A seems not to be configured in tcdevices'' > ERROR: device A seems not to be configured in tcdevicesCheck your tcclasses file -- you have inserted an ''A'' before the leading "#" in one of the comment lines at the top of the file and have also broken the comment into two lines. # in tcrules) and any packet with a mark of 2 will be A# guaranteed 1/4 of the link bandwidth, and may extend # up to full speed of the link. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
Lawrence Lin wrote:> > No errors with TC_ENABLED=No although the line "Setting up Traffic Control > Rules..." is printed. Shouldn''t all tc files be skipped? >The tcrules file must be processed regardless of the setting of TC_ENABLED -- entries in that file can also be used to determine routing in a multi-ISP environment. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
--- Tom Eastep <teastep@shorewall.net> wrote:> Check your tcclasses file -- you have inserted an ''A'' before the leading > "#" in one of the comment linesYup, removed the offending character and the tc section came up on restart: Validating /etc/shorewall/tcdevices... Validating /etc/shorewall/tcclasses... Processing /etc/shorewall/tcdevices... TC Device eth0 5000kbit 384kbit Added. Thanks! -- http://www.noderunner.net/~llin/ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642