#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
rule = Hash[
:action => params[:action].to_s.upcase,
:source => params[:source],
rule = Hash[
:action => params[:action].to_s.upcase,
:source => params[:source],
:proto => params[:proto],
:dest_ports => params[:dest_ports] || "-",
:source_ports => params[:source_ports] || "-",
:proto => params[:proto],
:dest_ports => params[:dest_ports] || "-",
:source_ports => params[:source_ports] || "-",
- :rate_limit => params[:rate_limit] || "-"
+ :rate_limit => params[:rate_limit] || "-",
+ :connection_limit => params[:connection_limit] || "-",
+ :helper => params[:helper] || "-"
- inet.variables[:rules] << rule unless inet.nil?
- inet6.variables[:rules] << rule unless inet6.nil?
+ node.default[:networking][:firewall][:inet] << rule
+ node.default[:networking][:firewall][:inet6] << rule