打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
使用DOS命令如何操作Windows防火墙(命令介绍及应用举例) .
                  一:命令格式: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:/A.exe //删除放行程序A.exe
        netsh firewall set allowedprogram C:/A.exe A ENABLE //添加程序C盘下的A.exe并放行
        netsh firewall add allowedprogram C:/A.exe A ENABLE //添加程序C盘下的A.exe并放行 
        要是终端登陆做了IP限制的可以用netsh firewall set portopening TCP 3389 远程桌面 ENABLE CUSTOM 1.1.1.1←—你的IP,这个命令(中文版XP2)。             
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
如何快速解决Windows防火墙的配置问题
win7 防火墙开启ping
走进Windows Server 2008服务器核心(Serve Core)
Windows 2008防火墙配置教程(一)
为 IBM Rational ClearCase 配置 Microsoft Windows 防火墙
Windows XP 防火墙设置技巧
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服