防火墙文件

Windows防火墙的状态

salt.states.win_firewall.add_rule(name, localport, protocol='tcp', action='allow', dir='in')

Add a new firewall rule (Windows only)

salt.states.win_firewall.disabled(name='allprofiles')

取消所有的防火墙设置(仅供Windows用户)

salt.states.win_firewall.enabled(name='allprofiles')

Enable all the firewall profiles (Windows only)