服務(wù)器常見危險(xiǎn)端口關(guān)閉命令

服務(wù)器上面很多時(shí)候會默認(rèn)開啟一些弱端口,這些端口對于一般的用戶來說用不上的,所以為了防止出現(xiàn)這些弱端口被利用,我們可以在服務(wù)器上面點(diǎn)擊運(yùn)行——cmd然后輸入以下的命令:

netsh ipsec static ^
add policy name=關(guān)閉危險(xiǎn)端口
netsh ipsec static ^
add filteraction name=阻止端口 action=block
netsh ipsec static ^
add filterlist name=危險(xiǎn)端口關(guān)閉
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕TCP445端口 dstport=445 protocol=tcp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕UDP445端口 dstport=445 protocol=udp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕TCP135端口 dstport=135 protocol=tcp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕UDP135端口 dstport=135 protocol=udp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕TCP139端口 dstport=139 protocol=tcp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕TCP593端口 dstport=593 protocol=tcp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕TCP1025端口 dstport=1025 protocol=tcp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕TCP2531端口 dstport=2531 protocol=tcp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕TCP2745端口 dstport=2745 protocol=tcp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕TCP3127端口 dstport=3127 protocol=tcp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕TCP6129端口 dstport=6129 protocol=tcp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕UDP123端口 dstport=123 protocol=udp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕UDP137端口 dstport=137 protocol=udp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕UDP138端口 dstport=138 protocol=udp mirrored=yes
netsh ipsec static ^
add filter filterlist=危險(xiǎn)端口關(guān)閉 srcaddr=any dstaddr=me description=拒絕UDP1900端口 dstport=1900 protocol=udp mirrored=yes
netsh ipsec static ^
add rule name=BlockAllAccess policy=關(guān)閉危險(xiǎn)端口 filterlist=危險(xiǎn)端口關(guān)閉 filteraction=阻止端口
netsh ipsec static set policy name=關(guān)閉危險(xiǎn)端口 assign=y
exit

?
關(guān)註我們
關(guān)於我們
合作夥伴
加入我們
聯(lián)系我們
推薦產(chǎn)品
網(wǎng)站制作
運(yùn)維管家服務(wù)
營銷網(wǎng)站定制
聯(lián)系我們
地址:香港灣仔灣仔道171號樂基中心14樓1405C
電話支持:00852-67283646
在線QQ:1823835988
在線QQ:1226424053
   

香港總公司:香港縱然雲(yún)計(jì)算國際有限公司 HK ZONGRAN CLOUD COMPUTING INT'L LIMITED

Copyright © 2016 香港縱然雲(yún)計(jì)算國際有限公司HK ZONGRAN CLOUD COMPUTING INT'L LIMITED m.xvyh.cn Corporation, All Rights Reserved

合作站點(diǎn): 安全狗