locked
firewall filtering with netsh RRS feed

  • Question

  • Hello, I am new to your forums.

    I want to set a Windows XP Professional computer to drop packets that is receiving from a certain website, or from a location on the internet.
    Can I do this using netsh firewall? I want to set the firewall to drop packets from login.yaoo.com or smsg.yahoo.com. Only these websites. I can't set a rule to block the http port, or the https port. Can this be done? I already did this on linux(using IPtables) and on Mac (using ipfw). All I had to do is set some simple rules.
    Sunday, February 21, 2010 12:32 PM

Answers

  • Not using NetSh.  You can add rules in WIndows Firewall's UI (firewall.cpl) or use the Firewall APIs http://msdn.microsoft.com/en-us/library/aa366415(v=VS.85).aspx

    Hope this helps.
    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Monday, March 8, 2010 10:30 PM
    Moderator

All replies

  • I don't believe we added Windows Firewall's netsh block functionality until Vista.  On Vista and Win7 you are able to add block rules via NetSH.

    Hope this helps

    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Tuesday, March 2, 2010 9:52 PM
    Moderator
  • Ok, so is there no way I can block access those sites from a XP computer?
    Monday, March 8, 2010 10:13 AM
  • Not using NetSh.  You can add rules in WIndows Firewall's UI (firewall.cpl) or use the Firewall APIs http://msdn.microsoft.com/en-us/library/aa366415(v=VS.85).aspx

    Hope this helps.
    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Monday, March 8, 2010 10:30 PM
    Moderator