CMD命令添加Win 防火墙进出规则(IP)
Win 防火墙进出规则说明,自己根据要求修改IP,in 入,out 出,block 阻止。
set ip=70.32.89.3 netsh advfirewall firewall add rule name="BLOCK IP ADDRESS - %ip%" dir=in action=block remoteip=%ip% netsh advfirewall firewall add rule name="BLOCK IP ADDRESS - %ip%" dir=out action=block remoteip=%ip%
新建记事本,粘贴以上代码,然后另存为【firewall.bat】。