#author("2020-05-21T03:55:32+00:00","default:admin","admin")
*PowerShellでの設定 [#l03d1721]
-[[Windows PowerShell を使用した高度なセキュリティ管理を使用する windows Defender ファイアウォール:https://docs.microsoft.com/ja-jp/windows/security/threat-protection/windows-firewall/windows-firewall-with-advanced-security-administration-with-windows-powershell]]
-[[PowerShell 関連〜PowerShell から Windows Firewall を操作するメモ:https://inokara.hateblo.jp/entry/2016/02/21/195729]]
-[[セキュリティが強化されたWindowsDefenderファイアウォールの使い方を調べた:https://qiita.com/asterisk9101/items/8f271c8d59f0ddaf4cce]]
-[[初期設定 : Ping 応答を許可する:https://www.server-world.info/query?os=Windows_Server_2016&p=initial_conf&f=6]]

**関連コマンド [#nf5c05a2]
-ルールの有効化
 Set-NetFirewallRule –DisplayName "[ルール名]" -Enabled True

-ルールの無効化
 Set-NetFirewallRule –DisplayName "[ルール名]" -Enabled False

-ルールの削除
 Remove-NetFirewallRule –DisplayName "[ルール名]"

**設定例 [#vcc9e6b3]
***ping応答を許可 [#gb249ba0]
-設定
 New-NetFirewallRule `
 -Name 'ICMPv4' `
 -DisplayName 'ICMPv4' `
 -Description 'Allow ICMPv4' `
 -Profile Any `
 -Direction Inbound `
 -Action Allow `
 -Protocol ICMPv4 `
 -Program Any `
 -LocalAddress Any `
 -RemoteAddress Any 

-設定確認
 Get-NetFirewallRule | Where-Object Name -Like 'ICMPv4' 
 
 Name                  : ICMPv4
 DisplayName           : ICMPv4
 Description           : Allow ICMPv4
 DisplayGroup          :
 Group                 :
 Enabled               : True
 Profile               : Any
 Platform              : {}
 Direction             : Inbound
 Action                : Allow
 EdgeTraversalPolicy   : Block
 LooseSourceMapping    : False
 LocalOnlyMapping      : False
 Owner                 :
 PrimaryStatus         : OK
 Status                : The rule was parsed successfully from the store. 
 (65536)
 EnforcementStatus     : NotApplicable
 PolicyStoreSource     : PersistentStore
 PolicyStoreSourceType : Local

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS