none
How do I do this with NETSH? RRS feed

  • Pertanyaan

  • How do I add a block filter as I would have (XP) with the following IPSECCMD command:

    ipseccmd -f [srcip/srcmask+dstip/dstip]

    Thanks.

     - Vince

    Selasa, 08 November 2011 02.28

Jawaban

  • NetSh.exe AdvFirewall Firewall Add Rule Name="Block This" dir=in action=block enable=yes profile=any localip=1.0.0.1/2 remoteip=2.0.0.0/24

    Hope this helps,

     


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Selasa, 08 November 2011 21.47

Semua Balasan

  • NetSh.exe AdvFirewall Firewall Add Rule Name="Block This" dir=in action=block enable=yes profile=any localip=1.0.0.1/2 remoteip=2.0.0.0/24

    Hope this helps,

     


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Selasa, 08 November 2011 21.47
  • Thanks, Dusty.  I'll try it after dinner.  That seems like it will be permanent.  The IPSECCMD method I mentioned did not survive a restart. (???)

     - Vince

    Selasa, 08 November 2011 22.32
  • NetSh.exe AdvFirewall Firewall Add Rule Name="Block This" dir=in action=block enable=yes profile=any localip=1.0.0.1/2 remoteip=2.0.0.0/24

    Hope this helps,

     


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------

    Yup, that works.  Thanks, Dusty.

    What about doing it in a non-permanent way?

     - Vince

     

     

    Rabu, 09 November 2011 03.11