Windows Server 2008 ?? Windows Vista ??? Windows ???????? ??????? ???????? ???? ?? ??? "netsh ????????" ?????? ?? ???? "netsh advfirewall ????????" ?????? ?? ????? ???? ????

???? ?????? ???? ??????
???? ID: 947709 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

?????

Netsh advfirewall ???????? ????-?????? ?????? Windows Server 2008 ?? Windows Vista ??? ?????? ???? ??? ?? ?????? netsh ???????? ?? ?????? ??? ???? Windows ???????? ?????? ?????? ?????? ???? ??? ?? ?? Windows ???????? ??????? ????????? ???? ?? ??? ??????????? ?????? ???? ???

?? ?????? ?? ???????? ?????? ?? ???? ???? ???????? ?? ??? ??????????? ?????? ???? ??? ?? ???? ?????????? ?????-????????? ???????? ????? ???:
  • ?????
  • ????
  • ?????????
Netsh ???????? ????-?????? ?????? Windows ???????? ?????? ?? ???? ???? ??????? ??? ???? ??? ?? ???? ??? ?? ??????? ???? ??? ?? ?? ???????? ??????? ???????? ?? ??? ?????? netsh advfirewall ???????? ?? ????? ?????

??? Netsh ???????? ???? ?????? ?? ????? ???? ' % ws ' ??? Windows Vista ?? ??? ???????? ???? ???

?? ???? ????? ?? ?? ???? ?????? netsh advfirewall ???????? Windows Server 2008 ?? Windows Vista ??? Windows ???????? ??????? ???????? ?? ??? ?????? netsh ???????? ?? ???? ?? ????? ?????

???? ???????

?????????? ?? ?????????? ???? ?? ????? ???, ?? ???? ???????? ?? ?????????? ???? ???????? ?? ????? ???? ??? ??, ?? ????? ????????? ?? ??? ?? ????? ????????? ?? ???? ?????? ?? ????? ????????? ?? ????? ????????? ?? ??? ??????? ???? ?? ???, ????? ???? ?? ???? ?????????, ?? ????? ????????? ???? ??????? ????, ??? ????-????? ????, ?? ???? ??? ?????????? ?? ??? ??? ??????? ??? ????? ??????? ?????

???-??? ????? ??? ???? ???? ???? ?? ??? ?????? ????? ???????? ??? ?????? ???? ?? ???? ?? ?? ???????? ?? ???? ??? ?????? netsh advfirewall ???????? ???? ?? ??? netsh ???????? ?????? ?? ?????? ???????? ???? ??? ??? ???? ?? ??? ????? ?? ???? ????

??? ??, netsh advfirewall ???? ?? ?? ??????? ?????? ??? ??????? ???? ?? ??? ????? ?? ???? ??? ?????? ??? ???? ????

?????? 1: ?? ????????? ????? ????

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
?????? ?????? ????
allowedprogram C:\MyApp\MyApp.exe "???? ?????????" ????? netsh ???????? ??????netsh advfirewall ???????? ?????? ???? ?? ??? = "???? ?????????" dir ??? ?????? = = program="C:\MyApp\MyApp.exe ?? ?????? ???" ????? = ???
netsh ???????? ?????? program=C:\MyApp\MyApp.exe ??? allowedprogram = "???? ?????????" ??? ????? ??????? = ????? addresses=157.60.0.1,172.16.0.0/16,LocalSubnet ????????? = ????? =netsh advfirewall ???????? ?????? ???? ?? ??? = "???? ?????????" dir = ?????? ??? = ????????? ?? ?????? ???"" C:\MyApp\MyApp.exe ????? = = ??? ????????? remoteip=157.60.0.1,172.16.0.0/16,LocalSubnet ????? =
netsh ???????? ?????? program=C:\MyApp\MyApp.exe ??? allowedprogram = "???? ?????????" ??? ????? ??????? = ????? ????????? addresses=157.60.0.1,172.16.0.0/16,LocalSubnet = = ???????? ???? ?????:

netsh advfirewall ???????? ?????? ???? ?? ???"" ???? ????????? dir = ?????? ??? = = ????????? ?? ?????? ??? ="" C:\MyApp\MyApp.exe ????? = ??? ????????? remoteip=157.60.0.1,172.16.0.0/16,LocalSubnet ????? =

netsh advfirewall ???????? ?????? ???? ?? ???"" ???? ????????? dir = ?????? ??? = = ????????? ?? ?????? ??? ="" C:\MyApp\MyApp.exe ????? = ??? ????????? remoteip=157.60.0.1,172.16.0.0/16,LocalSubnet ???? =
???????? ???? ?????? ?? ???, ???? ?? ???? ??? ???? ??????? ?? ???, ????? ???? ?????:
netsh advfirewall ???????? ?????? ?????

?????? 2: ??? ????? ????? ????

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
?????? ?????? ????
netsh ???????? TCP 80 "???? ????? 80" portopening ??????netsh advfirewall ???????? ?????? ???? ?? ???"???? ????? 80" dir = ?????? ??? = = ????????? ?? ?????? ??? TCP localport = = 80
???????? ???? ?????? ?? ???, ???? ?? ???? ??? ???? ??????? ?? ???, ????? ???? ?????:
netsh advfirewall ???????? ?????? ?????

?????? 3: ????? ????????? ?? ????? ?????

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
?????? ?????? ????
netsh ???????? ????? allowedprogram C:\MyApp\MyApp.exe????? netsh advfirewall ???????? ???? ?? ??? =???? ?? ??? ????????? ="" C:\MyApp\MyApp.exe
portopening ????????? ??? ??? UDP ????? = = 500????? netsh advfirewall ???????? ???? ?? ??? =???? ?? ??? ????????? udp localport = = 500
???????? ?????? ?? ????? ?? ???, ???? ?? ???? ??? ???? ??????? ?? ???, ????? ???? ?????:
netsh advfirewall ???????? ???? ??????

?????? 4: ICMP ???????? ????????? ????

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
?????? ?????? ????
netsh ???????? ??? icmpsetting 8netsh advfirewall ???????? ?????? ???? ?? ??? ="ICMP ?? ?????? ??? ??? V4 ?????????? ??????" ????????? icmpv4:8, ??? ?? dir = ?????? ??? = = ?? ?????? ???
icmpsetting ?????? ??? netsh ???????? ??? ??? = = ????? ????netsh advfirewall ???????? ?????? ???? ?? ??? ="??? V4 ICMP" ????????? = icmpv4: ??? ??, ???? ?? dir ??? ?????? = = ?? ?????? ???
icmpsetting 13 ??? ????? ???? netsh ???????? ??? ????netsh advfirewall ???????? ?????? ???? ?? ??? ="??? ?????? 13 ICMP V4 ?????????" icmpv4:13, ??? ?? dir = ?????? ??? = = ?????
ICMP ???????? ?? ????????? ???? ???? ?? ???? ??? ???? ??????? ?? ???, ????? ???? ?????:
netsh advfirewall ???????? ?????? ?????

?????? 5: ?????? ??? ????

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
?????? ?????? ????
netsh ???????? ????? 4096 ????? ???? ?????? %systemroot%\system32\LogFiles\Firewall\pfirewall.log ???????? ???? ?????:

??? ????? ?? ??? %systemroot%\system32\LogFiles\Firewall\pfirewall.log currentprofile netsh advfirewall ??? ????

netsh advfirewall currentprofile ?????? maxfilesize 4096 ??? ????
netsh advfirewall currentprofile ?????? ??? droppedconnections ????? ????

netsh advfirewall currentprofile ?????? ??? allowedconnections ????? ????
???? ??????? ?? ???, ????? ???? ?????:
netsh advfirewall currentprofile ????
??? ?? ??? ????? ????????? ?? ??? ??? ??? ???? ????? ???, ?? ????? ???????? ??? ?? ?? "currentprofile" ?????? ?? ???? ?? ????? ????:
  • Domainprofile
  • Privateprofile
  • Publicprofile

?????? 6: Windows ???????? ????? ????

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
?????? ?????? ????
opmode ????? netsh ???????? ??? ????netsh advfirewall currentprofile ?????? ?? ??? ????
opmode ??? ??? netsh ???????? ????? ????? = = ????? ????????? ???? ?????:

Netsh advfirewall currentprofile ?????? ?? ??? ????

netsh advfirewall currentprofile firewallpolicy blockinboundalways, allowoutbound ??? ????
opmode ??? ??? netsh ???????? ????? ????? = = ????? ????????? ????? =????? ???? ?????:

Netsh advfirewall domainprofile ?????? ?? ??? ????

netsh advfirewall domainprofile firewallpolicy blockinbound, allowoutbound ??? ????
opmode ??? ??? netsh ???????? ?????? ????????? = = ???????? ???? ?????:

netsh advfirewall domainprofile ?????? ?? ??? ????

netsh advfirewall privateprofile ?????? ?? ??? ????
???? ??????? ?? ???, ????? ???? ?????:
netsh advfirewall currentprofile ????
?? ??? ????? ????????? ?? ??? ???????? ?????? ??? ???? ????? ???, ?? ????? ???????? ??? ?? ?? "currentprofile" ?????? ?? ???? ?? ????? ????:
  • Domainprofile
  • Privateprofile
  • Publicprofile

?????? 7: ???? ?????????? ???????????? ????

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
?????? ?????? ????
netsh ???????? ????? ????netsh advfirewall ????? ????
???? ??????? ?? ???, ????? ???? ?????:
netsh advfirewall ?? ????? ?????

?????? 8: ??????? ???? ????? ????

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
?????? ?????? ????
netsh ???????? ???? FileAndPrint ??? ????netsh advfirewall ???????? ???? ???? ??? ????"????? ?? ??????? ????" ??? ????? = = ???
netsh ???????? ???? RemoteDesktop ????? ???? ??? ????netsh advfirewall ???????? ??? ???? ???? "?????? ????????" ??? ????? = = ???
netsh ???????? ???? ????? ????????? RemoteDesktop ??? ???? = ???????? ???? ?????:

netsh advfirewall ???????? ??? ???? ???? "?????? ????????" ?? ????? = ??? ????????? = ????? =

netsh advfirewall ???????? ??? ???? ???? "?????? ????????" ?? ????? = ??? ????????? = ???? =

???

???? ID: 947709 - ????? ???????: 03 ????? 2013 - ??????: 3.0
???? ???? ???? ??:
  • Windows Server 2008 Enterprise
  • Windows Server 2008 Datacenter
  • Windows Server 2008 Standard
  • Windows Server 2008 for Itanium-Based Systems
  • Windows Web Server 2008
  • Windows Vista Ultimate
  • Windows Vista Ultimate 64-bit edition
  • Windows Vista Enterprise
  • Windows Vista Enterprise 64-bit edition
  • Windows Vista Business
  • Windows Vista Business 64-bit edition
  • Windows Vista Home Premium
  • Windows Vista Home Premium 64-bit edition
  • Windows Vista Home Basic
  • Windows Vista Home Basic 64-bit edition
  • Windows 7 Enterprise
  • Windows 7 Home Basic
  • Windows 7 Professional
  • Windows 7 Starter
  • Windows 7 Ultimate
  • Windows 7 Home Premium
  • Windows Server 2008 R2 Datacenter
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Standard
??????: 
kbPubTypeKC kbinfo kbhowto kbmt KB947709 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:947709

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com