diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 8cf129354..84b35b152 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1318,6 +1318,8 @@ sub log_rule_limit( $$$$$$$$ ) { $prefix = "-j LOG $globals{LOGPARMS}--log-level $level --log-prefix \"$prefix\" "; } } + + $predicates .= ' ' if $predicates && substr( $predicates, -1, 1 ) ne ' '; if ( $command eq 'add' ) { add_rule ( $chainref, $predicates . $prefix );