Skip to content

Commit fb94d8c

Browse files
committed
Ignore processing of KUBE-* firewall chains
ref: puppetlabs#1053
1 parent 40d92f3 commit fb94d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/firewall/iptables.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def self.instances
443443
# String#lines would be nice, but we need to support Ruby 1.8.5
444444
nf_warning_msg = "# Warning: ip6?tables-legacy tables present, use ip6?tables-legacy-save to see them\n"
445445
iptables_save.gsub(%r{#{nf_warning_msg}}, '').split("\n").each do |line|
446-
unless %r{^\#\s+|^\:\S+|^COMMIT|^FATAL}.match?(line)
446+
unless %r{^\#\s+|^\:\S+|^COMMIT|^FATAL|^-A (KUBE-)}.match?(line)
447447
if %r{^\*}.match?(line)
448448
table = line.sub(%r{\*}, '')
449449
else

0 commit comments

Comments
 (0)