3

I want to allow one IP address that can connect to internet (whitelist) and block others' connections through internet using Windows Firewall on Server 2008 using command prompt.

  1. Is it possible to only allow given IP address (example 192.168.1.5) and block all IP address by using cmd?
  2. And how do i disable all allow rules by using cmd?
bentek
  • 2,205
  • 1
  • 14
  • 23
Haikal Adnan
  • 51
  • 1
  • 3

1 Answers1

1

You can use netsh advfirewall (commands listed here) to administer Windows Firewall via command line.

bentek
  • 2,205
  • 1
  • 14
  • 23