On 7/17/11 2:50 PM, Steven Jan Springl wrote:

> Rule:
> 
> Broadcast(ACCEPT):NFLOG  all  all  all
> 
> produces the following error message:
> 
> ERROR:    ERROR: Internal error in Shorewall::Chains::transform_rule 
> at /usr/share/shorewall/Shorewall/Chains.pm line 
> 592 : /usr/share/shorewall/action.Broadcast (line 71)
> 

Steven,

The attached patch seems to correct it.

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/Chains.pm 
b/Shorewall/Perl/Shorewall/Chains.pm
index 85c0dd0..76d20d2 100644
--- a/Shorewall/Perl/Shorewall/Chains.pm
+++ b/Shorewall/Perl/Shorewall/Chains.pm
@@ -594,6 +594,8 @@ sub transform_rule( $ ) {
     my $input    = shift;
     my $ruleref  = { mode => CAT_MODE, target => '' };
     my $simple   = 1;
+
+    $input =~ s/^\s*//;
     #
     # This is the first step in converting the compiler to use an intermediate 
form for rules.
     # We parse the iptables input and convert it into a hash. Eventually, the 
upper levels

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel

Reply via email to