On 1/3/11 1:22 PM, Steven Jan Springl wrote: > Tom > > In the attached config. rules file entry: > > COUNT:warn lan tst > > produces the following error message: > > ERROR: Internal error in Shorewall::Chains::expand_rule > at /usr/share/shorewall/Shorewall/Chains.pm line 3852 : /etc/shorewallC/rules > (line 15)
The attached patch seems to resolve this problem. Thanks, Steven -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/Chains.pm
b/Shorewall/Perl/Shorewall/Chains.pm
index 7ba12bf..b49166c 100644
--- a/Shorewall/Perl/Shorewall/Chains.pm
+++ b/Shorewall/Perl/Shorewall/Chains.pm
@@ -3843,14 +3843,12 @@ sub expand_rule( $$$$$$$$$$;$ )
my $matches = join( '', $rule, $source_match, $dest_match,
$onet );
if ( $loglevel ne '' ) {
- if ( $disposition ne 'LOG' ) {
+ if ( $disposition ne 'LOG' && $disposition ne 'COUNT' )
{
unless ( $logname || $target =~ /^RETURN\b/ ) {
#
# Find/Create a chain that both logs and
applies the target action
# and jump to the log chain if all of the
rule's conditions are met
#
- assert( $target );
-
add_jump( $chainref,
logchain( $chainref, $loglevel,
$logtag, $exceptionrule , $disposition, $target ),
$builtin_target{$disposition},
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
