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

Select Status

The windows_firewall cookbook has been deprecated

Author provided reason for deprecation:

The windows_firewall cookbook has been deprecated and is no longer being maintained by its authors. Use of the windows_firewall cookbook is no longer recommended.

RSS

windows_firewall (11) Versions 5.0.0

Configures firewall rules on Windows

Policyfile
Berkshelf
Knife
cookbook 'windows_firewall', '= 5.0.0', :supermarket
cookbook 'windows_firewall', '= 5.0.0'
knife supermarket install windows_firewall
knife supermarket download windows_firewall
README
Dependencies
Changelog
Quality 100%

windows_firewall Cookbook

Cookbook Version Build status

This cookbook configures Windows firewall rules.

Requirements

Platforms

  • Windows 7, 8, 8.1, 10
  • Windows Server 2008 R2
  • Windows Server 2012 (R1, R2)
  • Windows Server 2016

Chef

  • Chef 13+

Resources

windows_firewall_rule

Actions

  • :create - creates a firewall rule
  • :delete - deletes a firewall rule

properties

  • rule_name The name of the firewall rule name to create. If not supplied the resource block name will be used.
  • description The firewall rule description. Optional.
  • local_address Can be 'any', a specific address, a subnet in CIDR or ip/mask notation, or a range separated by '-'
  • local_port Can be 'any', an integer or one of { rpc | rpc-epmap | iphttps | teredo | [ ,... ] }
  • remote_address Can be 'any', a specific address, a subnet in CIDR or ip/mask notation, or a range separated by '-''
  • remote_port Can be 'any', an integer or one of { rpc | rpc-epmap | iphttps | teredo | [ ,... ] }
  • direction Direction of the rule. Can be in or out. Default is in.
  • protocol Can by 'any', an integer, or one of { | icmpv4 | icmpv6 | icmpv4:type,code | icmpv6:type,code | tcp | udp }
  • firewall_action Can be allow, block, or bypass. Default is 'allow'
  • profile Can be public, private, domain, or any
  • program The path to the program.
  • service The short name of the service, or 'any'
  • interface_type Can be any, wireless, lan, or ras

Examples

  windows_firewall_rule 'Apache' do
    local_port '8080'
    protocol 'TCP'
    firewall_action :allow
  end
  windows_firewall_rule 'Enable SSH Access' do
    rule_name 'ssh'
    local_port '22'
    protocol 'TCP'
    firewall_action :allow
  end
windows_firewall_rule 'Remove SSH Access' do
  rule_name 'ssh'
  action :delete
end

License & Authors

Copyright:: 2013-2015 Matt Clifton
Copyright:: 2018 Chef Software, Inc.
Copyright:: 2018, Intility AS


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

    http://www.apache.org/licenses/LICENSE-2.0

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.

CHANGELOG for windows_firewall

This file is used to list changes made in each version of windows_firewall.

5.0.0 (2018-10-31)

  • The windows_firewall_entry resource has been mostly rewritten to use PowerShell and provide full idempotency. This resolves a large number of outstainding issues with the resource and gets it ready for inclusion in the chef-client itself
  • This cookbook now requires Chef 13.0 or later
  • AppVeyor testing of all PRs has been enabled
  • Multiple property names have been changed in this new version. The existing names will continue to work, but in chef-client 14.7 they will begin to throw deprecation warnings
    • localip -> local_address
    • remoteip -> remote_address
    • localport -> local_port
    • remoteport -> remote_port
    • interfacetype -> interface_type

4.1.0 (2018-09-29)

  • Avoid extra spaces in the create shellout
  • Add a helper to double quote values for the command line
  • Make it more obvious how we're checking for empty values
  • Add support for running on localized versions of Windows

4.0.2 (2018-05-09)

  • Updated the readme to match resource actions / properties
  • Skipped building out the command line options unless we actually need to run a command in order to speed up no-op runs

4.0.1 (2018-05-04)

  • Fix failures loading current state

4.0.0 (05-03-2018)

Breaking Changes

  • The empty default recipe has been removed
  • The existing LWRP has been converted to a custom resource requiring Chef 12.7 or later

Other Changes

  • The resource now includes a :delete action for removing rules by name
  • The resource now loads the current rule state and converges if the rule is missing. This will show up properly in reporting and no longer requires and batch resource to converge
  • A name_property of rule_name has been added to the resource allowing you to use a friendly name for the resource name while still specifying the actual firewall rule name
  • chef_version, issue_url and source_url metadata added
  • All foodcritic warnings resolved
  • All cookstyle warnings resolved
  • Added delivery local mode for linting/unit testing -

3.0.1

  • Fix issue with incorrect use of "deny" as a firewall action. Resource now validates for "allow", "block", or "bypass"

3.0.0

BREAKING CHANGES The protocol attribute was changed from a symbol to a string. If you were explicitly referencing this attribute in your recipes, you will need to update all usages to a string, or remove each usage to rely on the default value ('TCP'):

    windows_firewall_rule 'Apache' do
          protocol 'TCP' # was protocol :TCP
          ...
    end

2.0.0

BREAKING CHANGES

  • Change default action :open to :create

MAJOR CHANGE

  • Test-kitchen support (only for Windows 2012R2 currently, but tests version 11 and 12 of chef-client)
  • Update metadata with proper attribution as well as Apache license
  • Add more attributes (including remoteip, program, service, etc)
  • Most attributes are set to nil by default and only added to the command if present
  • Style cleanup from rubocop and foodcritic
  • Use batchresource instead of windows_batch
  • Bumps cookbook version to 2.0

0.2.0

Added remoteip and localip attributes. Added Berksfile and preliminary test-kitchen harness. Several bits of cleanup that should not introduce any breaking changes, but a version bump seemed prudent.

0.1.0:

  • Initial release of windows_firewall

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Collaborator Number Metric
            

5.0.0 passed this metric

Contributing File Metric
            

5.0.0 passed this metric

Foodcritic Metric
            

5.0.0 passed this metric

No Binaries Metric
            

5.0.0 passed this metric

Testing File Metric
            

5.0.0 passed this metric

Version Tag Metric
            

5.0.0 passed this metric