I want to allow 1 specific IP in windows firewall via windows power Shell. I did block all the traffic via following power shell rule
New-netfirewall -Direction outbound -Action block
I did allowed ICMP traffic via following Power shell
New-netfirewall -Direction outbound -Action allow -ICMPType any -Enabled true
But when I ping to any host it shows general failure.
in short block all traffic except the one I allow. I did add the allow rule first then block rule. But same situation occurred. I am beginner in windows power shell and windows firewall. All the suggestions are welcome and thanks in advance.