From a566f7aa6a579b1882b6c6d25ed507f2776cf497 Mon Sep 17 00:00:00 2001 From: Patrick Hemmer Date: Wed, 18 Dec 2013 12:49:27 -0500 Subject: [PATCH] allow input chain in nat table --- lib/puppet/type/firewallchain.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/type/firewallchain.rb b/lib/puppet/type/firewallchain.rb index 2ed1e5b..75ffa4e 100644 --- a/lib/puppet/type/firewallchain.rb +++ b/lib/puppet/type/firewallchain.rb @@ -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" -- 2.45.2