From: Adam Gibbins Date: Thu, 29 Mar 2012 15:47:09 +0000 (+0100) Subject: (#13560) OUTPUT is a valid chain for the mangle table X-Git-Tag: 0.1.0~26^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=2c7c32b5d114e54fdf516db02e46897e8ed8d001;p=puppet-modules%2Fpuppetlabs-firewall.git (#13560) OUTPUT is a valid chain for the mangle table --- diff --git a/lib/puppet/type/firewall.rb b/lib/puppet/type/firewall.rb index 7d9865a..9d06e48 100644 --- a/lib/puppet/type/firewall.rb +++ b/lib/puppet/type/firewall.rb @@ -572,10 +572,10 @@ Puppet::Type.newtype(:firewall) do if value(:set_mark) unless value(:jump).to_s =~ /MARK/ && - value(:chain).to_s =~ /PREROUTING/ && + value(:chain).to_s =~ /PREROUTING|OUTPUT/ && value(:table).to_s =~ /mangle/ self.fail "Parameter set_mark only applies to " \ - "the PREROUTING chain of the mangle table and when jump => MARK" + "the PREROUTING or OUTPUT chain of the mangle table and when jump => MARK" end end