其他分享
首页 > 其他分享> > 关闭常见危险端口

关闭常见危险端口

作者:互联网

netsh advfirewall set publicprofile state on >null
netsh advfirewall set currentprofile state on >null
netsh advfirewall firewall add rule name="135_139_445" protocol=TCP dir=in localport=135,139,445 action=block
netsh advfirewall firewall add rule name="137_138" protocol=UDP dir=in localport=137,138 action=block

 

标签:set,protocol,netsh,firewall,135,端口,advfirewall,关闭,危险
来源: https://www.cnblogs.com/feiyucha/p/11209937.html