关闭常见危险端口

Posted on 2019-07-18 20:56  努力成长静待花开  阅读(165)  评论(0编辑  收藏  举报
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