代码改变世界

随笔档案-2013年11月

命令行下开启与关闭windows防火墙关端口(转)

2013-11-07 10:34 by 狼人:-), 1699 阅读, 收藏, 编辑
摘要: sc config sharedaccess start= auto //设置防火墙服务为自动net start sharedaccess //开启防火墙服务关闭端口netsh firewall add portopening protocol = TCP port = 139 name = "关闭139" mode = DISABLEnetsh firewall add portopening protocol = TCP port = 445 name = "关闭445" mode = DISABLEnetsh firewall add portop 阅读全文
点击右上角即可分享
微信分享提示