default[:networking][:firewall][:enabled] = true
default[:networking][:firewall][:sets] = []
+default[:networking][:firewall][:helpers] = []
default[:networking][:firewall][:incoming] = []
default[:networking][:firewall][:outgoing] = []
default[:networking][:firewall][:http_rate_limit] = nil
property :source_ports, :kind_of => [String, Integer, Array]
property :rate_limit, :kind_of => String
property :connection_limit, :kind_of => [String, Integer]
+property :helper, :kind_of => String
property :compile_time, TrueClass, :default => true
rule << "update @#{set} { #{ip} saddr limit rate #{rate}/second burst #{burst} packets }"
end
+ if new_resource.helper
+ helper = "#{new_resource.rule}-#{new_resource.helper}"
+
+ node.default[:networking][:firewall][:helpers] << {
+ :name => helper, :helper => new_resource.helper, :protocol => proto
+ }
+
+ rule << "ct helper set #{helper}"
+ end
+
rule << case action
when :accept then "accept"
when :drop then "jump log-and-drop"