none
How do I do this with NETSH? RRS feed

الإجابات

  • 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
    ------------------------------------------------------------
    • تم الاقتراح كإجابة بواسطة Dusty Harper [MSFT] 12/ذو الحجة/1432 09:47 م
    • تم وضع علامة كإجابة بواسطة Miya YaoModerator 15/ذو الحجة/1432 06:10 ص
    12/ذو الحجة/1432 09:47 م

جميع الردود

  • 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
    ------------------------------------------------------------
    • تم الاقتراح كإجابة بواسطة Dusty Harper [MSFT] 12/ذو الحجة/1432 09:47 م
    • تم وضع علامة كإجابة بواسطة Miya YaoModerator 15/ذو الحجة/1432 06:10 ص
    12/ذو الحجة/1432 09: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

    12/ذو الحجة/1432 10: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

     

     

    13/ذو الحجة/1432 03:11 ص