Adds a new inbound firewall rule that filters traffic by allowing network packets that match the specified criteria.
1 2 3 4 5 | C:\Users\run>netsh advfirewall firewall add rule name="Open Port 80" dir=in action=allow protocol=TCP localport=80 OK. C:\Users\run> |
Removes an inbound firewall rule.
1 2 3 4 5 | C:\Users\run> netsh advfirewall firewall delete rule name="Open Port 80" protocol=TCP localport=80 OK. C:\Users\run> |