FwBlockOutputIP() block output traffic now (was inbound by default)

This commit is contained in:
Yorick Barbanneau 2018-03-25 22:39:53 +02:00
parent 4367ee7a8f
commit 682707c206

View file

@ -73,7 +73,7 @@ function FwBlockOutputIP {
}
else {
Try {
New-NetFirewallRule -Name Blacklist_$($params.ip) -DisplayName "BlackList $($params.ip)" -Protocol any -Enabled True -Profile Any -RemoteAddress $params.ip -Action Block | Out-Null
New-NetFirewallRule -Name Blacklist_$($params.ip) -DisplayName "BlackList $($params.ip)" -Direction Outbound -Protocol any -Enabled True -Profile Any -RemoteAddress $params.ip -Action Block | Out-Null
}
Catch {
Write-Host -ForegroundColor Red "error"