server2008 及其以上版本防火墙设置
来源:互联网 发布:ios 淘宝 双11图标 编辑:程序博客网 时间:2024/05/02 14:40
打开80端口:
netsh advfirewall firewall add rule name=”tcp80” dir=in protocol=tcp localport=80 action=allow
关闭445端口(tcp):
netsh advfirewall firewall add rule name=”deny tcp 445” dir=in protocol=tcp localport=445 action=block
关闭139端口(udp):
netsh advfirewall firewall add rule name=”deny udp 139” dir=in protocol=udp localport=139 action=block
启用桌面防火墙
netsh advfirewall set allprofiles state on
设置默认输入和输出策略
netsh advfirewall set allprofiles firewallpolicy allowinbound,allowoutbound
以上是设置为允许,如果设置为拒绝使用blockinbound,blockoutbound
恢复初始防火墙设置
netsh advfirewall reset
关闭防火墙
netsh advfirewall set allprofiles state off
为不具有封装的 messenger.exe 添加入站规则:
netsh advfirewall firewall add rule name="allow messenger" dir=in program="c:\programfiles\messenger\msmsgs.exe" security=authnoencap action=allow 为端口 80 添加出站规则: netsh advfirewall firewall add rule name="allow80" protocol=TCP dir=out localport=80 action=block 为 TCP 端口 80 通信添加需要安全和加密的入站规则: netsh advfirewall firewall add rule name="Require Encryption for Inbound TCP/80" protocol=TCP dir=in localport=80 security=authdynenc action=allow 为 messenger.exe 添加需要安全的入站规则: netsh advfirewall firewall add rule name="allow messenger" dir=in program="c:\program files\messenger\msmsgs.exe" security=authenticate action=allow 为 SDDL 字符串标识的组 acmedomain\scanners 添加 经过身份验证的防火墙跳过规则: netsh advfirewall firewall add rule name="allow scanners" dir=in rmtcomputergrp=<SDDL string> action=bypass security=authenticate 为 udp- 的本地端口 5000-5010 添加出站允许规则 Add rule name="Allow port range" dir=out protocol=udp localport=5000-5010 action=allow
参考:http://taodegui.blog.163.com/blog/static/26335484201331454433688/
- server2008 及其以上版本防火墙设置
- CentOS7.0以上版本linux防火墙问题
- 让Appium支持xcdoe6及其以上版本
- 改变IE7及其以上版本缩放因子
- Window Server2008 防火墙配置
- [转]卡巴斯基防火墙与ActiveSync4.0以上版本冲突解决办法
- Tomcat5.0以上版本设置连接池
- Tomcat5.0以上版本设置连接池
- micphone静音设置(vista版本以上)
- Centos7.0以上版本静态IP设置
- Matlab2016及以上版本设置VS编译器
- 如何在VC6及其以上版本中使用GDI+
- SQL SERVER2005及其以上版本树形结构实现
- XP及其以上版本自动关机提升权限代码
- QT5.0及其以上版本,<QApplication>出错的原因
- 百度地图3.0以上版本标注marker及其点击事件
- CentOS 5.4 防火墙配置80端口的方法(适用于centos5.3以上版本)
- SQL2005以上版本查询分析器显示行号设置方法
- redis api使用手册
- spatialhadoop2.3源码阅读(九) ShapeLineInputFormat & ShapeLineRecordReader & SpatialRecordReader[FileMBR]
- 设计模型笔记
- 我的第一天
- 一个app通过url调用另一个app
- server2008 及其以上版本防火墙设置
- Himi浅谈游戏开发de自学历程!(仅供参考)
- iOS 跳转到系统的设置界面
- android studio libs 下导入so的问题
- iOS tableView 在设置了footView的情况下,系统自带分割线时而消失,时而出现的问题
- Weblogic跨域集成session冲突解决办法
- QT中中文注释的问题
- 文件的压缩和解压缩
- iOS单例的完整写法