Hi, I am getting the following error when i enable WIDE_TC_MARKS=Yes ERROR: Command "tc class add dev eth3 parent 1:1 classid 1:1 htb rate 1024kbit ceil 100000kbit prio 1 quantum 1500" Failed if its No, than the traffic shaping is working fine. below is my configuration. i am using ubuntu 8.04 server edition. tcrules 2 0.0.0.0/0 192.168.0.220 all 3 0.0.0.0/0 192.168.0.237 all 4 0.0.0.0/0 192.168.0.56 all 5 0.0.0.0/0 0.0.0.0/0 icmp 6 0.0.0.0/0 192.168.0.225 all 7 0.0.0.0/0 192.168.0.101 all 8 0.0.0.0/0 192.168.0.42 all tcclasses eth3 1 1536kbit full 5 default eth3 2 1024kbit full 1 eth3 3 512kbit 1024kbit 1 eth3 4 1024kbit full 1 eth3 5 8kbit 16kbit 1 eth3 6 2048kbit full 1 eth3 7 1024kbit full 1 eth3 8 1024kbit full 5 -------------------------------- Swapnil Jain Indore ----------------------------------------------- E-mail: swapnil@pisces.net.in GTalk : swapnil@pisces.net.in MSN: jswapnil@hotmail.com Skype : sj1410 YIM : sj1410 ----------------------------------------------- ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what''s new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
Swapnil Jain wrote:> Hi, > > > I am getting the following error when i enable WIDE_TC_MARKS=Yes > > ERROR: Command "tc class add dev eth3 parent 1:1 classid 1:1 htb rate > 1024kbit ceil 100000kbit prio 1 quantum 1500" Failed > > if its No, than the traffic shaping is working fine. below is my > configuration. i am using ubuntu 8.04 server edition.Please see http://www.shorewall.net/support.htm#Guidelines for the information we need to diagnose startup failures. Thanks you, -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what''s new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
Swapnil Jain wrote:> Hi, > > > I am getting the following error when i enable WIDE_TC_MARKS=Yes > > ERROR: Command "tc class add dev eth3 parent 1:1 classid 1:1 htb rate > 1024kbit ceil 100000kbit prio 1 quantum 1500" Failed > > if its No, than the traffic shaping is working fine. below is my > configuration. i am using ubuntu 8.04 server edition.I looked at this again over my lunch hour and I think I see the problem. Please try the attached patch: patch /usr/share/shorewall/Perl/Tc.pm < class.diff Thanks, -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what''s new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
yes the patch did work but its /usr/share/shorewall/Shorewall/Tc.pm not> /usr/share/shorewall/Perl/Tc.pmThanks a lot. -------------------------------- Swapnil Jain Indore ----------------------------------------------- E-mail: swapnil@pisces.net.in GTalk : swapnil@pisces.net.in MSN: jswapnil@hotmail.com Skype : sj1410 YIM : sj1410 ----------------------------------------------- On 21-Nov-2009, at 1:47 AM, Tom Eastep wrote:> Swapnil Jain wrote: >> Hi, >> >> >> I am getting the following error when i enable WIDE_TC_MARKS=Yes >> >> ERROR: Command "tc class add dev eth3 parent 1:1 classid 1:1 htb rate >> 1024kbit ceil 100000kbit prio 1 quantum 1500" Failed >> >> if its No, than the traffic shaping is working fine. below is my >> configuration. i am using ubuntu 8.04 server edition. > > I looked at this again over my lunch hour and I think I see the problem. > Please try the attached patch: > > patch /usr/share/shorewall/Perl/Tc.pm < class.diff > > Thanks, > -Tom > -- > Tom Eastep \ When I die, I want to go like my Grandfather who > Shoreline, \ died peacefully in his sleep. Not screaming like > Washington, USA \ all of the passengers in his car > http://shorewall.net \________________________________________________ > diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm > index c2828e5..dd61ae7 100644 > --- a/Shorewall/Perl/Shorewall/Tc.pm > +++ b/Shorewall/Perl/Shorewall/Tc.pm > @@ -153,7 +153,7 @@ our @deferred_rules; > # > # TCDevices Table > # > -# %tcdevices { <interface> -> {in_bandwidth => <value> , > +# %tcdevices { <interface> => {in_bandwidth => <value> , > # out_bandwidth => <value> , > # number => <number>, > # classify => 0|1 > @@ -656,7 +656,7 @@ sub validate_tc_class( ) { > if ( $classnumber ) { > fatal_error "Duplicate Class NUMBER ($classnumber)" if $tcref->{$classnumber}; > } else { > - $classnumber = $config{WIDE_TC_MARKS} ? $tcref->{nextclass}++ : hex_value( $devnum . $markval ); > + $classnumber = $config{WIDE_TC_MARKS} ? $devref->{nextclass}++ : hex_value( $devnum . $markval ); > fatal_error "Duplicate MARK ($mark)" if $tcref->{$classnumber}; > } > } > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what''s new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Shorewall-users mailing list > Shorewall-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/shorewall-users------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what''s new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
now after applying this patch shorewall and enabling WIDE_TC_MARKS=Yes, its not allowing me above 255 mark value ERROR: Invalid Mark (258) : /etc/shorewall/tcclasses (line 8) -------------------------------- Swapnil Jain Indore ----------------------------------------------- E-mail: swapnil@pisces.net.in GTalk : swapnil@pisces.net.in MSN: jswapnil@hotmail.com Skype : sj1410 YIM : sj1410 ----------------------------------------------- On 21-Nov-2009, at 1:47 AM, Tom Eastep wrote:> Swapnil Jain wrote: >> Hi, >> >> >> I am getting the following error when i enable WIDE_TC_MARKS=Yes >> >> ERROR: Command "tc class add dev eth3 parent 1:1 classid 1:1 htb rate >> 1024kbit ceil 100000kbit prio 1 quantum 1500" Failed >> >> if its No, than the traffic shaping is working fine. below is my >> configuration. i am using ubuntu 8.04 server edition. > > I looked at this again over my lunch hour and I think I see the problem. > Please try the attached patch: > > patch /usr/share/shorewall/Perl/Tc.pm < class.diff > > Thanks, > -Tom > -- > Tom Eastep \ When I die, I want to go like my Grandfather who > Shoreline, \ died peacefully in his sleep. Not screaming like > Washington, USA \ all of the passengers in his car > http://shorewall.net \________________________________________________ > diff --git a/Shorewall/Perl/Shorewall/Tc.pm b/Shorewall/Perl/Shorewall/Tc.pm > index c2828e5..dd61ae7 100644 > --- a/Shorewall/Perl/Shorewall/Tc.pm > +++ b/Shorewall/Perl/Shorewall/Tc.pm > @@ -153,7 +153,7 @@ our @deferred_rules; > # > # TCDevices Table > # > -# %tcdevices { <interface> -> {in_bandwidth => <value> , > +# %tcdevices { <interface> => {in_bandwidth => <value> , > # out_bandwidth => <value> , > # number => <number>, > # classify => 0|1 > @@ -656,7 +656,7 @@ sub validate_tc_class( ) { > if ( $classnumber ) { > fatal_error "Duplicate Class NUMBER ($classnumber)" if $tcref->{$classnumber}; > } else { > - $classnumber = $config{WIDE_TC_MARKS} ? $tcref->{nextclass}++ : hex_value( $devnum . $markval ); > + $classnumber = $config{WIDE_TC_MARKS} ? $devref->{nextclass}++ : hex_value( $devnum . $markval ); > fatal_error "Duplicate MARK ($mark)" if $tcref->{$classnumber}; > } > } > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what''s new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Shorewall-users mailing list > Shorewall-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/shorewall-users------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what''s new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
Swapnil Jain wrote:> now after applying this patch shorewall and enabling WIDE_TC_MARKS=Yes, its not allowing me above 255 mark value > > ERROR: Invalid Mark (258) : /etc/shorewall/tcclasses (line 8) >Here''s another patch for the same module. -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what''s new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
Thanks Tom, the 4.4.4.1 version worked. thanks a lot. i found a another bug not related to TC. i added a rule in rules file DNAT net loc:192.168.0.40:0 tcp 20 - xx.xx.xx.xx u noticed the the port i used by mistake was 0 for the local address instead of 20 then i run a shorewall check, it reported no error and then a shorewall -vv restart Preparing iptables-restore input... Running /sbin/iptables-restore... iptables-restore v1.3.8: Bad IP address `192.168.0.400'' Error occurred at line: 27 Try `iptables-restore -h'' or ''iptables-restore --help'' for more information. ERROR: iptables-restore Failed. Input is in /var/lib/shorewall/.iptables-restore-input Processing /etc/shorewall/stop ... Processing /etc/shorewall/tcclear ... -------------------------------- Swapnil Jain Indore ----------------------------------------------- E-mail: swapnil@pisces.net.in GTalk : swapnil@pisces.net.in MSN: jswapnil@hotmail.com Skype : sj1410 YIM : sj1410 ----------------------------------------------- On 20-Nov-2009, at 9:13 PM, Tom Eastep wrote:> Swapnil Jain wrote: >> Hi, >> >> >> I am getting the following error when i enable WIDE_TC_MARKS=Yes >> >> ERROR: Command "tc class add dev eth3 parent 1:1 classid 1:1 htb rate >> 1024kbit ceil 100000kbit prio 1 quantum 1500" Failed >> >> if its No, than the traffic shaping is working fine. below is my >> configuration. i am using ubuntu 8.04 server edition. > > Please see http://www.shorewall.net/support.htm#Guidelines for the > information we need to diagnose startup failures. > > Thanks you, > -Tom > -- > Tom Eastep \ When I die, I want to go like my Grandfather who > Shoreline, \ died peacefully in his sleep. Not screaming like > Washington, USA \ all of the passengers in his car > http://shorewall.net \________________________________________________ > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what''s new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > Shorewall-users mailing list > Shorewall-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/shorewall-users------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what''s new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
Swapnil Jain wrote:> i found a another bug not related to TC. > > i added a rule in rules file > > DNAT net loc:192.168.0.40:0 tcp 20 - xx.xx.xx.xx > > u noticed the the port i used by mistake was 0 for the local address instead of 20 > > then i run a shorewall check, it reported no error > > and then a shorewall -vv restart > > Preparing iptables-restore input... > Running /sbin/iptables-restore... > iptables-restore v1.3.8: Bad IP address `192.168.0.400''Thanks. Shorewall 4.4.5 will flag port 0 as an error in all contexts. -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what''s new with Crystal Reports now. http://p.sf.net/sfu/bobj-july