您的当前位置:首页正文

CMD命令行netsh添加防火墙规则

2021-08-06 来源:步旅网
CMD命令⾏netsh添加防⽕墙规则

>netsh advfirewall firewall add rule name=\"f.exe\" dir=in program=\"e:\\f.exe\" action=allow

删除

netsh advfirewall firewall delete rule name=\"f.exe\"

2、添加端⼝

netsh advfirewall firewall add rule name=\"HTTP\" protocol=TCP dir=in localport=8080 action=allow

删除

netsh advfirewall firewall delete rule name=\"HTTP\" protocol=TCP dir=in localport=8080

因篇幅问题不能全部显示,请点此查看更多更全内容