Windowsファイアウォールのポート操作
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ファイアウォールのポート操作
関連
調査用
Wikipedia.icon
Wikipedia.icon