Windowsファイアウォールのポート操作
#Fleeting_Notes
Windowsファイアウォールのポート操作(port operation at the Windows firewall)
$ Test-NetConnection -ComputerName localhost -Port 8080
$ Get-NetFirewallRule
$ Get-NetFirewallRule | Where-Object {$_.DisplayName -like "*ICMP*"}
$ Get-NetFirewallRule | Where-Object {$_.LocalPort -eq "1521"}
$ New-NetFirewallRule -DisplayName "Allow Inbound TCP Port 8080" -Direction Inbound -LocalPort 8080 -Protocol TCP -Action Allow -Profile Any
$ Remove-NetFirewallRule -DisplayName "Allow Inbound TCP Port 8080"
$ Set-NetFirewallRule -DisplayName "Allow Inbound TCP Port 8080" -Enabled False
確認用
Q. Windowsファイアウォールのポート操作
New-NetFirewallRule (NetSecurity) | Microsoft Learn
Windows クライアント のファイアウォールとポートの設定 - Configuration Manager | Microsoft Learn
関連
Windows ログ確認
調査用
Google.icon Windowsファイアウォールのポート操作(日)
Google.icon Port operation at the windows firewall(英)
Wikipedia.icon
Windowsファイアウォールのポート操作 - Wikipedia(日)
Windowsファイアウォールのポート操作(検索) - Wikipedia(日)
Wikipedia.icon
Port operation at the windows firewall - Wikipedia(英)
Port operation at the windows firewall(検索) - Wikipedia(英)