|
| |||||||||
| Tags: block, command, netsh, single |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| command not working to get netsh to block a single IP
I have XP Pro SP3. The Windows Firewall is enabled. I am trying to block a single IP from the command line for testing purposes. The command "netsh firewall set portopening" outputs a reference explaining the different options: set portopening [ protocol = ] TCP|UDP|ALL [ port = ] 1-65535 [ [ name = ] name [ mode = ] ENABLE|DISABLE [ scope = ] ALL|SUBNET|CUSTOM [ addresses = ] addresses [ profile = ] CURRENT|DOMAIN|STANDARD|ALL [ interface = ] name ] (followed by lines explaning the options in more detail) So I took that to mean that the following command would block local programs from connecting to 96.6.58.135 (www.whitehouse.gov) port 80: netsh firewall set portopening protocol=ALL profile=ALL port=80 mode=DISABLE scope=CUSTOM addresses=96.6.58.135 When I run that command it outputs simply "Ok." But my browser can still connect to 96.6.58.135 port 80 (even after restarting the browser), I can still telnet to 96.6.58.135 port 80 on the command line, etc. Did I do something wrong? What's the command to block outgoing connections to a given IP and a given port? Also I'm not sure how to get netsh to show me a list of IPs that are blocked. The command "netsh firewall show portopening" shows only the following: Port configuration for Standard profile: Port Protocol Mode Name ------------------------------------------------------------------- 5353 TCP Enable Adobe CSI CS4 1900 UDP Enable SSDP Component of UPnP Framework |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "command not working to get netsh to block a single IP" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows 7 WLAN netsh command | Mariah-Simpson | Operating Systems | 5 | 13-04-2010 12:49 AM |
| netsh winsock reset command for Mac OS X | CossFire | Operating Systems | 4 | 24-02-2010 11:04 PM |
| How do I block an IP address using command prompt | Krish07 | Technology & Internet | 3 | 29-09-2009 04:08 PM |
| Block Access to Command Prompt in windows xp | pushpendra | Operating Systems | 3 | 12-01-2009 10:30 AM |
| How to Use the Netsh.exe and NETSH Command to Change from Static IP in win2000 | karunakar | Networking & Security | 3 | 01-01-2009 04:59 PM |