diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index 859b286b7..8196acdd1 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -1120,9 +1120,9 @@ sub log_rule_limit( $$$$$$$$ ) { } if ( $level eq 'ULOG' ) { - $prefix = "-j ULOG $globals{LOGPARMS} --ulog-prefix \"$prefix\" "; + $prefix = "-j ULOG $globals{LOGPARMS}--ulog-prefix \"$prefix\" "; } else { - $prefix = "-j LOG $globals{LOGPARMS} --log-level $level --log-prefix \"$prefix\" "; + $prefix = "-j LOG $globals{LOGPARMS}--log-level $level --log-prefix \"$prefix\" "; } if ( $command eq 'add' ) { diff --git a/Shorewall-perl/Shorewall/Rules.pm b/Shorewall-perl/Shorewall/Rules.pm index 1fe79f6e5..b90e3208b 100644 --- a/Shorewall-perl/Shorewall/Rules.pm +++ b/Shorewall-perl/Shorewall/Rules.pm @@ -563,7 +563,7 @@ sub add_common_rules() { my $savelogparms = $globals{LOGPARMS}; - $globals{LOGPARMS} = "$globals{LOGPARMS} --log-ip-options" unless $config{TCP_FLAGS_LOG_LEVEL} eq 'ULOG'; + $globals{LOGPARMS} = "$globals{LOGPARMS}--log-ip-options " unless $config{TCP_FLAGS_LOG_LEVEL} eq 'ULOG'; log_rule $config{TCP_FLAGS_LOG_LEVEL} , $logflagsref , $config{TCP_FLAGS_DISPOSITION}, '';