admin管理员组文章数量:1532656
2024年5月8日发(作者:)
如何在xp下通过命令行对防火墙进行配置?
如何在xp下通过命令行对防火墙进行配置?
命令:
netsh firewall
参数:
? // 显示命令列表
add // 添加防火墙配置
delete // 删除防火墙配置
dump // 显示一个配置脚本
help // 显示命令列表
reset // 将防火墙配置重置为默认值。
set // 设置防火墙配置
show // 显示防火墙配置
add allowedprogram // 添加防火墙允许的程序配置。
add portopening // 添加防火墙端口配置
delete allowedprogram // 删除防火墙允许的程序配置
delete portopening // 删除防火墙端口配置
set allowedprogram // 设置防火墙允许的程序配置
set icmpsetting // 设置防火墙 ICMP 配置
set logging // 设置防火墙记录配置
set multicastbroadcastresponse // 设置防火墙多播/广播响应
配置
set notifications // 设置防火墙通知配置
set opmode // 设置防火墙操作配置
set portopening // 设置防火墙端口配置
set service // 设置防火墙服务配置
show allowedprogram // 显示防火墙允许的程序配置
show config // 显示防火墙配置。
show currentprofile // 显示当前防火墙配置文件
show icmpsetting // 显示防火墙 ICMP 配置
show logging // 显示防火墙记录配置
show multicastbroadcastresponse // 显示防火墙多播/广播响
应配置
show notifications // 显示防火墙操作配置
show opmode // 显示防火墙端口配置
show portopening // 显示防火墙端口配置
show service // 显示防火墙服务配置
show state // 显示当前防火墙状态
例如:
命令:
netsh firewall show allowedprogram //查看防火墙放行的程
序
netsh firewall set portopening TCP 445 ENABLE //打开445
端口
netsh firewall set portopening TCP 3389 ENABLE //不用说
了,放行终端啦。。
netsh firewall delete allowedprogram C: //删除放行程
序
netsh firewall set allowedprogram C: A ENABLE //添
加程序C盘下的并放行
netsh firewall add allowedprogram C: A ENABLE //添
加程序C盘下的并放行
版权声明:本文标题:如何在xp下通过命令行对防火墙进行配置- 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1715127045a436514.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论