diff --git a/Shorewall-perl/Shorewall/Chains.pm b/Shorewall-perl/Shorewall/Chains.pm index dd70c6f94..477fd29ae 100644 --- a/Shorewall-perl/Shorewall/Chains.pm +++ b/Shorewall-perl/Shorewall/Chains.pm @@ -897,6 +897,8 @@ sub do_test ( $$ ) my $invert = $testval =~ s/^!// ? '! ' : ''; my $match = $testval =~ s/:C$// ? "-m connmark ${invert}--mark" : "-m mark ${invert}--mark"; + validate_mark $testval; + $testval .= '/0xFF' unless ( $testval =~ '/' ); "$match $testval ";