Skip to content

Commit 9c8a2dc

Browse files
author
Morgan Haskel
committed
Merge pull request #427 from stesie/fix-set_mark-limit
Don't arbitrarily limit set_mark to certain chains
2 parents 354d5e7 + edcc4ba commit 9c8a2dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/puppet/type/firewall.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,10 +1074,9 @@ def should_to_s(value)
10741074

10751075
if value(:set_mark)
10761076
unless value(:jump).to_s =~ /MARK/ &&
1077-
value(:chain).to_s =~ /PREROUTING|OUTPUT/ &&
10781077
value(:table).to_s =~ /mangle/
10791078
self.fail "Parameter set_mark only applies to " \
1080-
"the PREROUTING or OUTPUT chain of the mangle table and when jump => MARK"
1079+
"the mangle table and when jump => MARK"
10811080
end
10821081
end
10831082

0 commit comments

Comments
 (0)