Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

(#10322) Insert order hash included chains from different tables

This fix corrects the insert_order handling to make sure that not only are
rules from the same chain evaulated, but we also check that the table
matches as well.
  • Loading branch information...
commit 47318a009c50f2625bd3df8a1de78d5477d35b57 1 parent e9fd6d1
Ken Barber kbarber authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/puppet/provider/firewall/iptables.rb
6 lib/puppet/provider/firewall/iptables.rb
@@ -288,9 +288,11 @@ def insert_order
rules = []
- # Find list of current rules based on chain
+ # Find list of current rules based on chain and table
self.class.instances.each do |rule|
- rules << if rule.chain == resource[:chain].to_s
+ if rule.chain == resource[:chain].to_s and rule.table == resource[:table].to_s
+ rules <<
+ end
# No rules at all? Just bail now.
Please sign in to comment.
Something went wrong with that request. Please try again.