]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
allow input chain in nat table
authorPatrick Hemmer <patrick.hemmer@gmail.com>
Wed, 18 Dec 2013 17:49:27 +0000 (12:49 -0500)
committerPatrick Hemmer <patrick.hemmer@gmail.com>
Fri, 20 Dec 2013 20:08:55 +0000 (15:08 -0500)
lib/puppet/type/firewallchain.rb

index 2ed1e5b1eb003d2ffc858043708c1891cf7c65ff..75ffa4e732a3f71f472bf43510c385d025b10655 100644 (file)
@@ -56,8 +56,8 @@ Puppet::Type.newtype(:firewallchain) do
             raise ArgumentError, "PREROUTING, POSTROUTING, INPUT, FORWARD and OUTPUT are the only inbuilt chains that can be used in table 'mangle'"
           end
         when 'nat'
-          if chain =~ /^(BROUTING|INPUT|FORWARD)$/
-            raise ArgumentError, "PREROUTING, POSTROUTING and OUTPUT are the only inbuilt chains that can be used in table 'nat'"
+          if chain =~ /^(BROUTING|FORWARD)$/
+            raise ArgumentError, "PREROUTING, POSTROUTING, INPUT, and OUTPUT are the only inbuilt chains that can be used in table 'nat'"
           end
           if protocol =~/^(IP(v6)?)?$/
             raise ArgumentError, "table nat isn't valid in IPv6. You must specify ':IPv4' as the name suffix"