本文介绍了MSDTC和防火墙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用MSDTC进行SQL事务.我在设置防火墙以使MSDTC正常工作时遇到问题.应用程序和SQL在不同的计算机上运行.如果我关闭应用程序服务器上的防火墙,当前MSDTC正在工作.我认为应该为某些端口的防火墙设置添加某种例外.这样防火墙仍然可以打开,并且DTC不会有任何问题.我不确定要在防火墙设置中添加的端口(我确实尝试添加端口135,但未成功)

We are using MSDTC for SQL transactions.I am having issue with setting up firewall for MSDTC to work.The application and SQL are running on separate machine.Currently MSDTC is working if i turn off firewall on application server.I think there should be someway to add exception to the firewall setting for some ports.So that firewall can still be ON and DTC will not have any issues.I am not sure of the ports to add in firewall setting (I did try adding port 135 with no success)

推荐答案

使防火墙允许端口135和dcom端口范围.默认情况下,dcom端口范围是1024-65535.多数民众赞成在打开.您可以在注册表中或使用dcomcnfg限制此范围.这篇文章对此进行了描述:

Have your Firewall allow port 135 and the dcom port range. By default, the dcom port range is 1024-65535. Thats a big range to open up. You can limit this range in the registry or using dcomcnfg. This post describes this:

http://blogs.msdn.com/distributedservices/archive/2008/11/12/troubleshooting-msdtc-issues-with-the-dtcping-tool.aspx

这篇关于MSDTC和防火墙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-08 05:36