Module for configuring Windows Firewall
salt.modules.win_firewall.
add_rule
(name, localport, protocol='tcp', action='allow', dir='in')New in version 2015.5.0.
Add a new firewall rule
CLI Example:
salt '*' firewall.add_rule "test" "tcp" "8080"
salt.modules.win_firewall.
disable
(profile='allprofiles')Disable all the firewall profiles
CLI Example:
salt '*' firewall.disable
salt.modules.win_firewall.
enable
(profile='allprofiles')Enable firewall profile :param profile: (default: allprofiles)
New in version 2015.5.0.
CLI Example:
salt '*' firewall.enable
netapi
modules