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

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