Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms


netsh_firewall (8) Versions 0.2.0

Configures Windows Firewall using netsh

cookbook 'netsh_firewall', '= 0.2.0'
cookbook 'netsh_firewall', '= 0.2.0', :supermarket
knife supermarket install netsh_firewall
knife supermarket download netsh_firewall
Quality 0%


This cookbook provides resources for managing Windows Firewall using the netsh utility. See for details on configuring Windows Firewall using netsh.


  • Windows Vista
  • Windows 7
  • Windows 8, 8.1
  • Windows Server 2008, 2008 R2
  • Windows Server 2012, 2012 R2




  • :disable: disable an existing profile
  • :enable: enable an existing profile and set policy


  • name: name attribute; specify any, domain, private, or public
  • inbound: :allow or :block (default)
  • outbound: :allow (default) or :block
  • profile: :any (default), :domain, :private, or :public


netsh_firewall_profile 'all' do
  inbound :block
  outbound :allow



  • :allow: create a rule to allow traffic through the firewall; this is the default action
  • :block: create a rule to block traffic
  • :disable: disable an existing rule (useful for built-in rules)
  • :enable: enable an existing rule


  • name: name attribute; the name of the rule to create
  • description: an optional description for the rule
  • dir: :in (default) or :out; the direction of the rule
  • localip: a comma separated list of IP addresses or subnets in CIDR notation; defaults to 'any'
  • localport: the local port number; defaults to 'any'
  • profile: :any (default), :domain, :private, or :public
  • program: a path to a program; traffic generated by the program will match this rule
  • protocol: :tcp (default), :udp, :icmpv4, :icmpv6, or :any
  • remoteip: a comma separated list of IP addresses or subnets in CIDR notation; defaults to 'any'
  • remoteport: the remote port number; defaults to 'any'


netsh_firewall_rule 'Windows Remote Management (HTTPS-In)' do
  description 'Allow remote management over SSL'
  localport '5986'
  action :allow

netsh_firewall_rule 'Windows Remote Management (HTTP-In)' do
  action :disable


Copyright 2015 Biola University

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.

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric

0.2.0 failed this metric

FC031: Cookbook without metadata file: /tmp/cook/e7f8871249db1c83fa97126d/netsh_firewall/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/e7f8871249db1c83fa97126d/netsh_firewall/metadata.rb:1