#author("2020-08-11T09:48:48+00:00","default:admin","admin") -[[セキュリティが強化された Windows ファイアウォール:https://forsenergy.com/ja-jp/authfw/html/60324d03-97f8-4aa5-864b-af205ebff02b.htm]] *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 *トラブル対応 [#f7265aca] -[[Windowsファイアウォール設定が突然変わった。再起動後Pingが飛ばない:https://blog.putise.com/windows%E3%83%95%E3%82%A1%E3%82%A4%E3%82%A2%E3%82%A6%E3%82%A9%E3%83%BC%E3%83%AB%E8%A8%AD%E5%AE%9A%E3%81%8C%E7%AA%81%E7%84%B6%E5%A4%89%E3%82%8F%E3%81%A3%E3%81%9F%E3%80%82%E5%86%8D%E8%B5%B7%E5%8B%95/]] -[[何かつながらないと思ったらパブリックネットワーク:https://blog.treedown.net/entry/2016/10/19/010000]]