Skip to content

Commit

Permalink
(MODULES-11449) - Fix for IPv6 NAT chain
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramesh7 committed Mar 20, 2024
1 parent ac201ca commit fffbc40
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/puppet/provider/firewallchain/firewallchain.rb
Expand Up @@ -172,7 +172,6 @@ def self.verify(_is, should)
raise ArgumentError, 'PREROUTING, POSTROUTING, INPUT, FORWARD and OUTPUT are the only inbuilt chains that can be used in table \'mangle\'' if %r{^(BROUTING)$}.match?(should[:chain])
when 'nat'
raise ArgumentError, 'PREROUTING, POSTROUTING, INPUT, and OUTPUT are the only inbuilt chains that can be used in table \'nat\'' if %r{^(BROUTING|FORWARD)$}.match?(should[:chain])
raise ArgumentError, 'table nat isn\'t valid in IPv6. You must specify \':IPv4\' as the name suffix' if %r{^(IP(v6)?)?$}.match?(should[:protocol])
when 'raw'
raise ArgumentError, 'PREROUTING and OUTPUT are the only inbuilt chains in the table \'raw\'' if %r{^(POSTROUTING|BROUTING|INPUT|FORWARD)$}.match?(should[:chain])
when 'broute'
Expand Down

0 comments on commit fffbc40

Please sign in to comment.