firewall chef cookbook - automatically installs and configures firewall
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

firewall chef cookbook

Installs/Configures firewall


Defines custom iptable rules when the original cookbook doesn't define iptables rules or there is no cookbook (for example, ssh).


  • [:firewall][:port_scan] - (default: "{ :window => 5, :max_conns => 20, :port => 22 }")
    • The recipe 'firewall::port_scan' will search for all properties named 'node[:firewall][:port_scan_*]'. This will create a rule that allows only ':max_conns' connections with a window period of ':window' seconds. For example, the settings above state that a maximum of 20 connections can be made to the ssh port (22) within a period of 5 seconds. If any more than that are made within 5 seconds, the source will automatically be dropped.


  • default - Base configuration for firewall
  • port_scan - Port Scan


Supports platforms: debian and ubuntu

Cookbook dependencies:

  • iptables

License and Author

Author:: Mike Heffner ( Copyright:: 2011, Mike Heffner

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, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

readme generated by cluster_chef's cookbook_munger