使用脚本为domino server配置windows防火墙

本文提供了一个用于Windows Server 2003及2008的批处理脚本,通过该脚本可以自动打开邮件服务、远程桌面等常用端口。对于Windows Server 2003,使用netsh命令逐个配置;而Windows Server 2008则通过单一命令实现多端口同时开放。

For Windows server 2003

请将以下代码复制到记事本中并保存成 .cmd结尾,然后在domino服务器上双击运行即可:

netsh firewall add portopening protocol=TCP port=25 name=smtp

netsh firewall add portopening protocol=TCP port=80 name=http

netsh firewall add portopening protocol=TCP port=110 name=pop3

netsh firewall add portopening protocol=TCP port=143 name=imap

netsh firewall add portopening protocol=TCP port=389 name=ldap

netsh firewall add portopening protocol=TCP port=443 name=https

netsh firewall add portopening protocol=TCP port=465 name=smtps

netsh firewall add portopening protocol=TCP port=636 name=ldaps

netsh firewall add portopening protocol=TCP port=993 name=imaps

netsh firewall add portopening protocol=TCP port=995 name=pop3s

netsh firewall add portopening protocol=TCP port=1352 name=domino

netsh firewall add portopening protocol=TCP port=8250 name=RDP

For windows server 2008

请将以下代码复制到记事本中并保存成 .cmd结尾,然后在domino服务器上双击运行即可:

netsh advfirewall firewall add rule name="mail services" dir=in protocol=TCP localport=25,80,110,143,389,443,465,636,993,995,1352,8250 action=allow



本文转自 高文龙 51CTO博客,原文链接:http://blog.51cto.com/gaowenlong/1211949,如需转载请自行联系原作者

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值