diff options
author | Patrick Schaumburg <pschaumburg@tecracer.de> | 2020-04-02 07:34:34 +0200 |
---|---|---|
committer | Patrick Schaumburg <pschaumburg@tecracer.de> | 2020-04-02 07:34:46 +0200 |
commit | 6f9d34d8759b33fb6cde49ce82112c0bfff4637d (patch) | |
tree | 9f4c0231dd881eb2d421a5ece232f95cf1764b7f /lib/chef | |
parent | 3471abbe10201a446294f02bdc621d6d5c7627a7 (diff) | |
download | chef-6f9d34d8759b33fb6cde49ce82112c0bfff4637d.tar.gz |
add example for icmp_type
Signed-off-by: Patrick Schaumburg <pschaumburg@tecracer.de>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource/windows_firewall_rule.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/chef/resource/windows_firewall_rule.rb b/lib/chef/resource/windows_firewall_rule.rb index d9d8057ca3..2b04bb2aa2 100644 --- a/lib/chef/resource/windows_firewall_rule.rb +++ b/lib/chef/resource/windows_firewall_rule.rb @@ -38,6 +38,17 @@ class Chef end ``` + Allow protocol ICMPv6 with ICMP Type + ```ruby + windows_firewall_rule 'CoreNet-Rule' do + rule_name 'CoreNet-ICMP6-LR2-In' + display_name 'Core Networking - Multicast Listener Report v2 (ICMPv6-In)' + local_port 'RPC' + protocol 'ICMPv6' + icmp_type '8' + end + ``` + Blocking WinRM over HTTP on a particular IP ```ruby windows_firewall_rule 'Disable WinRM over HTTP' do |