Update win_firewall_rule.py to include ICMP echo (ping) example (#55013)
* Update win_firewall_rule.py <!--- Your description here --> Added example of enabling ICMP protocol, as ping is commonly used for troubleshooting in automation scenarios. Equivalent netsh command is: netsh advfirewall firewall add rule name='ICMP Allow incoming V4 echo request' protocol=icmpv4:8,any dir=in action=allow +label: docsite_pr * Remove yaml-breaking space Removed extraneous space that caused validation to fail. * Remove more extraneous whitespace
This commit is contained in:
parent
23a751323b
commit
91d0ad9a4c
1 changed files with 11 additions and 0 deletions
|
@ -144,6 +144,7 @@ EXAMPLES = r'''
|
|||
protocol: tcp
|
||||
state: present
|
||||
enabled: yes
|
||||
|
||||
- name: Firewall rule to allow port range
|
||||
win_firewall_rule:
|
||||
name: Sample port range
|
||||
|
@ -153,4 +154,14 @@ EXAMPLES = r'''
|
|||
protocol: tcp
|
||||
state: present
|
||||
enabled: yes
|
||||
|
||||
- name: Firewall rule to allow ICMP v4 echo (ping)
|
||||
win_firewall_rule:
|
||||
name: ICMP Allow incoming V4 echo request
|
||||
enabled: yes
|
||||
state: present
|
||||
profiles: private
|
||||
action: allow
|
||||
direction: in
|
||||
protocol: "icmpv4:8,any"
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue