]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/resources/firewall_rule.rb
Don't expire connection limit sets
[chef.git] / cookbooks / networking / resources / firewall_rule.rb
index 218a6b5f482a7de4bf3f2ca851067e6702cfaf4a..75d73dc11ebb8dc217004a0a75e8194940057246 100644 (file)
@@ -148,7 +148,7 @@ action_class do
 
       node.default[:networking][:firewall][:sets] << set
 
-      rule << "add @#{set} { #{ip} saddr limit rate #{rate}/second burst #{burst} packets }"
+      rule << "update @#{set} { #{ip} saddr limit rate #{rate}/second burst #{burst} packets }"
     end
 
     rule << case action