通過防火牆入站規則關閉終端不常用埠
操作方法
ver|find /i “5.1” && goto :xp
ver|find /i “6.1” && goto :win7
:win7
net start MpsSvc
sc config MpsSvc start= auto
netsh advfirewall set allprofiles state on
net start MpsSvc
sc config MpsSvc start= auto
netsh advfirewall set allprofiles state on
rem # :bellow ports are the ports we closed at the first time
netsh advfirewall firewall add rule name=”deny udp HIGH RISK PORT” dir=in protocol=udp localport=7,9,13,21,22,23,25,26,37,53,79,80,81,88,106,110,111,113,119,123,135,139,143,144,179,199,389,427,443,444,445,465,513,514,515,543,544,548,554,587,631,646,873,990,993,995,1025,1026,1027,1028,1029,1110,1433,1720,1723,1755,1900,2000,2001,2049,2121,2717,3000,3128,3306,3389,3986,4899,5000,5009,5051,5060,5101,5190,5357,5432,5631,5666,5800,5900,6000,6001,6646,7070,8000,8008,8009,8080,8081,8443,8888,9100,9999,10000,32768,49152,49153,49154,49155,49156,49157,0,1,19,31,67,68,69,70,99,102,109,115,137,138,161,177,456,553,555,568,569,593,635,636,666,777,1001,1011,1024,1033,1080,1170,1234,1243,1245,1352,1434,1492,1494,1500,1503,1521,1524,1600,1701,1731,1807,1812,1813,1981,1999,2023,2115,2140,2375,2425,2500,2583,2638,2745,2801,3024,3127,3129,3150,3210,3333,3700,3996,4011,4060,4092,4100,4321,4422,4433,4444,4590,5001,5002,5321,5400,5401,5402,5550,5554,5569,5632,5742,5901,6112,6192,6267,6379,6400,6670,6671,6711,6712,6776,6883,6969,6970,7000,7001,7300,7301,7306,7307,7308,7323,7326,7789,8010,8089,8161,9080,9081,9090,9200,9400,9401,9402,9875,9989,10067,10167,11000,11223,12076,12223,12345,12346,12361,13223,16969,17027,19132,19191,20000,20001,20034,20432,21154,22222,23456,25565,26274,27017,27374,30003,30100,30303,30999,31337,31338,31339,31666,31789,33333,34324,40412,40421,40422,40423,40426,43210,44445,47262,47878,50505,50766,53001,54321,61466,64101,65000 action=block
netsh advfirewall firewall add rule name=”deny tcp HIGH RISK PORT” dir=in protocol=tcp localport=7,9,13,21,22,23,25,26,37,53,79,80,81,88,106,110,111,113,119,123,135,139,143,144,179,199,389,427,443,444,445,465,513,514,515,543,544,548,554,587,631,646,873,990,993,995,1025,1026,1027,1028,1029,1110,1433,1720,1723,1755,1900,2000,2001,2049,2121,2717,3000,3128,3306,3389,3986,4899,5000,5009,5051,5060,5101,5190,5357,5432,5631,5666,5800,5900,6000,6001,6646,7070,8000,8008,8009,8080,8081,8443,8888,9100,9999,10000,32768,49152,49153,49154,49155,49156,49157,0,1,19,31,67,68,69,70,99,102,109,115,137,138,161,177,456,553,555,568,569,593,635,636,666,777,1001,1011,1024,1033,1080,1170,1234,1243,1245,1352,1434,1492,1494,1500,1503,1521,1524,1600,1701,1731,1807,1812,1813,1981,1999,2023,2115,2140,2375,2425,2500,2583,2638,2745,2801,3024,3127,3129,3150,3210,3333,3700,3996,4011,4060,4092,4100,4321,4422,4433,4444,4590,5001,5002,5321,5400,5401,5402,5550,5554,5569,5632,5742,5901,6112,6192,6267,6379,6400,6670,6671,6711,6712,6776,6883,6969,6970,7000,7001,7300,7301,7306,7307,7308,7323,7326,7789,8010,8089,8161,9080,9081,9090,9200,9400,9401,9402,9875,9989,10067,10167,11000,11223,12076,12223,12345,12346,12361,13223,16969,17027,19132,19191,20000,20001,20034,20432,21154,22222,23456,25565,26274,27017,27374,30003,30100,30303,30999,31337,31338,31339,31666,31789,33333,34324,40412,40421,40422,40423,40426,43210,44445,47262,47878,50505,50766,53001,54321,61466,64101,65000 action=block
exit
:xp
netsh firewall set opmode mode=enable
sc config SharedAccess start= auto
net start SharedAccess
netsh firewall set opmode mode=enable
sc config SharedAccess start= auto
net start SharedAccess
netsh firewall set portopening protocol = ALL port =7 name = 7 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9 name = 9 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =13 name = 13 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =21 name = 21 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =22 name = 22 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =23 name = 23 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =25 name = 25 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =26 name = 26 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =37 name = 37 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =53 name = 53 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =79 name = 79 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =80 name = 80 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =81 name = 81 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =88 name = 88 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =106 name = 106 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =110 name = 110 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =111 name = 111 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =113 name = 113 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =119 name = 119 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =123 name = 123 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =135 name = 135 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =139 name = 139 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =143 name = 143 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =144 name = 144 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =179 name = 179 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =199 name = 199 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =389 name = 389 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =427 name = 427 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =443 name = 443 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =444 name = 444 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =445 name = 445 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =465 name = 465 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =513 name = 513 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =514 name = 514 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =515 name = 515 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =543 name = 543 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =544 name = 544 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =548 name = 548 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =554 name = 554 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =587 name = 587 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =631 name = 631 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =646 name = 646 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =873 name = 873 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =990 name = 990 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =993 name = 993 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =995 name = 995 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1025 name = 1025 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1026 name = 1026 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1027 name = 1027 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1028 name = 1028 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1029 name = 1029 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1110 name = 1110 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1433 name = 1433 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1720 name = 1720 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1723 name = 1723 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1755 name = 1755 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1900 name = 1900 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2000 name = 2000 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2001 name = 2001 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2049 name = 2049 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2121 name = 2121 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2717 name = 2717 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3000 name = 3000 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3128 name = 3128 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3306 name = 3306 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3389 name = 3389 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3986 name = 3986 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =4899 name = 4899 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5000 name = 5000 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5009 name = 5009 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5051 name = 5051 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5060 name = 5060 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5101 name = 5101 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5190 name = 5190 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5357 name = 5357 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5432 name = 5432 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5631 name = 5631 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5666 name = 5666 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5800 name = 5800 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5900 name = 5900 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6000 name = 6000 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6001 name = 6001 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6646 name = 6646 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7070 name = 7070 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =8000 name = 8000 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =8008 name = 8008 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =8009 name = 8009 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =8080 name = 8080 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =8081 name = 8081 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =8443 name = 8443 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =8888 name = 8888 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9100 name = 9100 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9999 name = 9999 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =10000 name = 10000 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =32768 name = 32768 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =49152 name = 49152 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =49153 name = 49153 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =49154 name = 49154 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =49155 name = 49155 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =49156 name = 49156 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =49157 name = 49157 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =0 name = 0 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1 name = 1 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =19 name = 19 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =31 name = 31 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =67 name = 67 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =68 name = 68 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =69 name = 69 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =70 name = 70 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =99 name = 99 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =102 name = 102 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =109 name = 109 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =115 name = 115 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =137 name = 137 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =138 name = 138 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =161 name = 161 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =177 name = 177 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =456 name = 456 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =553 name = 553 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =555 name = 555 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =568 name = 568 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =569 name = 569 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =593 name = 593 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =635 name = 635 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =636 name = 636 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =666 name = 666 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =777 name = 777 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1001 name = 1001 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1011 name = 1011 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1024 name = 1024 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1033 name = 1033 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1080 name = 1080 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1170 name = 1170 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1234 name = 1234 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1243 name = 1243 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1245 name = 1245 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1352 name = 1352 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1434 name = 1434 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1492 name = 1492 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1494 name = 1494 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1500 name = 1500 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1503 name = 1503 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1521 name = 1521 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1524 name = 1524 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1600 name = 1600 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1701 name = 1701 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1731 name = 1731 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1807 name = 1807 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1812 name = 1812 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1813 name = 1813 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1981 name = 1981 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =1999 name = 1999 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2023 name = 2023 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2115 name = 2115 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2140 name = 2140 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2375 name = 2375 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2425 name = 2425 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2500 name = 2500 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2583 name = 2583 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2638 name = 2638 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2745 name = 2745 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =2801 name = 2801 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3024 name = 3024 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3127 name = 3127 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3129 name = 3129 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3150 name = 3150 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3210 name = 3210 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3333 name = 3333 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3700 name = 3700 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =3996 name = 3996 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =4011 name = 4011 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =4060 name = 4060 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =4092 name = 4092 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =4100 name = 4100 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =4321 name = 4321 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =4422 name = 4422 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =4433 name = 4433 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =4444 name = 4444 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =4590 name = 4590 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5001 name = 5001 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5002 name = 5002 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5321 name = 5321 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5400 name = 5400 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5401 name = 5401 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5402 name = 5402 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5550 name = 5550 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5554 name = 5554 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5569 name = 5569 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5632 name = 5632 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5742 name = 5742 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =5901 name = 5901 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6112 name = 6112 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6192 name = 6192 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6267 name = 6267 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6379 name = 6379 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6400 name = 6400 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6670 name = 6670 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6671 name = 6671 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6711 name = 6711 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6712 name = 6712 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6776 name = 6776 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6883 name = 6883 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6969 name = 6969 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =6970 name = 6970 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7000 name = 7000 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7001 name = 7001 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7300 name = 7300 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7301 name = 7301 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7306 name = 7306 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7307 name = 7307 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7308 name = 7308 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7323 name = 7323 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7326 name = 7326 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =7789 name = 7789 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =8010 name = 8010 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =8089 name = 8089 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =8161 name = 8161 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9080 name = 9080 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9081 name = 9081 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9090 name = 9090 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9200 name = 9200 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9400 name = 9400 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9401 name = 9401 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9402 name = 9402 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9875 name = 9875 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =9989 name = 9989 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =10067 name = 10067 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =10167 name = 10167 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =11000 name = 11000 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =11223 name = 11223 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =12076 name = 12076 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =12223 name = 12223 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =12345 name = 12345 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =12346 name = 12346 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =12361 name = 12361 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =13223 name = 13223 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =16969 name = 16969 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =17027 name = 17027 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =19132 name = 19132 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =19191 name = 19191 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =20000 name = 20000 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =20001 name = 20001 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =20034 name = 20034 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =20432 name = 20432 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =21154 name = 21154 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =22222 name = 22222 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =23456 name = 23456 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =25565 name = 25565 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =26274 name = 26274 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =27017 name = 27017 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =27374 name = 27374 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =30003 name = 30003 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =30100 name = 30100 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =30303 name = 30303 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =30999 name = 30999 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =31337 name = 31337 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =31338 name = 31338 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =31339 name = 31339 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =31666 name = 31666 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =31789 name = 31789 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =33333 name = 33333 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =34324 name = 34324 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =40412 name = 40412 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =40421 name = 40421 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =40422 name = 40422 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =40423 name = 40423 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =40426 name = 40426 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =43210 name = 43210 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =44445 name = 44445 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =47262 name = 47262 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =47878 name = 47878 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =50505 name = 50505 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =50766 name = 50766 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =53001 name = 53001 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =54321 name = 54321 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =61466 name = 61466 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =64101 name = 64101 mode = DISABLE scope = ALL profile = ALL
netsh firewall set portopening protocol = ALL port =65000 name = 65000 mode = DISABLE scope = ALL profile = ALL
exit