zoukankan      html  css  js  c++  java
  • 命令行下开启与关闭windows防火墙关端口(转)

    sc config sharedaccess start= auto //设置防火墙服务为自动

    net start sharedaccess //开启防火墙服务

     

    关闭端口

    netsh firewall add portopening protocol = TCP port = 139 name = "关闭139" mode = DISABLE

    netsh firewall add portopening protocol = TCP port = 445 name = "关闭445" mode = DISABLE

    netsh firewall add portopening protocol = UDP port = 137 name = "关闭137" mode = DISABLE

    netsh firewall add portopening protocol = UDP port = 138 name = "关闭138" mode = DISABLE 

     

    开启端口

    netsh firewall add portopening protocol = TCP port = 139 name = "开启139" mode = ENABLE

    netsh firewall add portopening protocol = TCP port = 445 name = "开启445" mode =  ENABLE

    netsh firewall add portopening protocol = UDP port = 137 name = "开启137" mode =  ENABLE

    netsh firewall add portopening protocol = UDP port = 138 name = "开启138" mode =  ENABLE

  • 相关阅读:
    网站图片轮播效果
    图片处理类
    字符串处理帮助类
    css3高级选择器
    JQuery选择器大全
    ASCII码表
    jQuery选择器大全
    OpenFileDialog无法弹出的解决方法
    socket学习目录
    ps-抠图
  • 原文地址:https://www.cnblogs.com/waw/p/3411981.html
Copyright © 2011-2022 走看看