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

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

?? ????? ??

?????

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

?? ?????? ???????? ?????? ?? ???? ?? ???????? ?? ??? ??????????? ?? ?????? ???? ??? ?? ?????? ??? ?????????? ?????-????????? ???????? ????? ??:
  • ?????
  • ????
  • ?????????
??? netsh ???????? ????-?????? ?????? ?? ?????? ??????? ??? deprecated ?? ???? ?? ??? Windows ???????? ??????? ?? ??????? ???? ??? ?? ?? ?? ????? netsh advfirewall ???????? ???????? ??????? ?? ????????? ???? ?? ??? ???????

??? Netsh ???????? ????? ???? ??? ????? ?? ??? ???????? ???? ?? Windows Vista.

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

???? ???????

?????????? ??? ?? ???????????? ?? ???? ?? ?? ????? ??, ?? ?????????? ???? ???????? ?? ??????? ????????? ?? ??? ?? ???? ?????, ???? ???????? ?? ????? ???? ??? ????? ?????????? ????? ????????? ?? ??? ?? ??????? ????????? ??????? ???? ?? ???, ??????? ?? ????? ?? ??????? ???? ????????? ?? ????? ????????? ?? ???? ??????? ???? ?? ??? ?????, ??? ????-????? ????, ?? ???? ??? ????? ???? ?????????? ?? ??? ??? ?????.

??? ?????? ????? ????? ???? ???? ?????? ?? ??? ?????? ???? ?? ??? ????? ???????? ???? ?? ??????????? ???? ??? ???? ??? ?? ??? ?? ?? ???????? ?? ????? ?? ???? ??? ?????? netsh ???????? ?? ?? ??? ?????? netsh advfirewall ???????? ???????

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

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

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
?????? ?????? ????
netsh ???????? ?????? allowedprogram C:\MyApp\MyApp.exe "???? ?????????" ????? ????netsh advfirewall ???????? ?????? ???? ?? ??? = "???? ?????????" dir ??? ?????? = = program="C:\MyApp\MyApp.exe ?? ?????? ???" ????? = ???
netsh ???????? ?????? allowedprogram program=C:\MyApp\MyApp.exe ??? = "???? ?????????" ??? ????? ??????? = = ????? 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 ???????? ?????? allowedprogram program=C:\MyApp\MyApp.exe ??? "???? ?????????" ??? = = ????? ??????? ????? 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 ???????? ?????? portopening TCP 80 "????? ????? 80"netsh advfirewall ???????? ?????? ???? ?? ??? ="????? ????? 80" dir ??? ?????? = = ????????? ?? ?????? ???? TCP localport = = 80
???????? ?????? ?? ?????? ?? ???, ???? ?? ???? ??? ???? ??????? ?? ???, ????? ????? ???????:
netsh advfirewall ???????? ???? ???????

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

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

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

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

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

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

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

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

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

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

?? ?????? ?? ??????? ?????? ?????? ?? ??????? ????
?????? ?????? ????
netsh ???????? opmode ????? ???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 ??? ????
netsh ???????? ??? opmode ??? ????? ????????? = = ???????? ???? ?????:

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 - ????? ???????: 06 ????? 2012 - ??????: 2.1
???? ???? ???? ??:
  • 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

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