.. _community.windows.win_firewall_module:
******************************
community.windows.win_firewall
******************************
**Enable or disable the Windows Firewall**
.. contents::
:local:
:depth: 1
Synopsis
--------
- Enable or Disable Windows Firewall profiles.
Requirements
------------
The below requirements are needed on the host that executes this module.
- This module requires Windows Management Framework 5 or later.
Parameters
----------
.. raw:: html
Parameter |
Choices/Defaults |
Comments |
inbound_action
string
added in 1.1.0
|
Choices:
- allow
- block
- not_configured
|
Set to allow or block inbound network traffic in the profile.
not_configured is valid when configuring a GPO.
|
outbound_action
string
added in 1.1.0
|
Choices:
- allow
- block
- not_configured
|
Set to allow or block inbound network traffic in the profile.
not_configured is valid when configuring a GPO.
|
profiles
list
|
Choices:
Domain ←
Private ←
Public ←
Default:
["Domain", "Private", "Public"]
|
Specify one or more profiles to change.
|
state
string
|
Choices:
- disabled
- enabled
|
Set state of firewall for given profile.
|