Article ID: 179442 - Last Review: April 30, 2012 - Revision: 17.0 How to configure a firewall for domains and trusts
This article was previously published under Q179442 If you are a Small Business customer, find additional troubleshooting and learning resources at the Support for Small Business (http://smallbusiness.support.microsoft.com) site.On This PageSUMMARY This article describes how to configure a firewall for domains and trusts. Note that not all of the port listed in the tables below are required in all scenarios. For example, if the firewall separates members and DCs, you don't need to open the FRS and/or DFSR ports. Also if you know no clients use LDAP with SSL/TLS, you don't need to open ports 636 and 3269. MORE INFORMATIONTo establish a domain trust or a security channel across a firewall, the following ports must be opened. Be aware that there may be hosts functioning with both client and server roles on both sides of the firewall. Therefore, ports rules may have to be mirrored. Windows NTIn this environment, one side of the trust is a Windows NT 4.0 trust, or the trust was created by using the NetBIOS names.Collapse this table
Windows Server 2003 and Windows 2000 ServerFor a mixed-mode domain that uses either Windows NT domain controllers or legacy clients, trust relationships between Windows Server 2003-based domain controllers and Windows 2000 Server-based domain controllers may necessitate that all the ports for Windows NT that are listed in the previous table be opened in addition to the following ports.Note The two domain controllers are both in the same forest, or the two domain controllers are both in a separate forest. Also, the trusts in the forest are Windows Server 2003 trusts or later version trusts. Collapse this table
832017
(http://support.microsoft.com/kb/832017/
)
Service overview and network port requirements for the Windows Server system
Windows Server 2008/Windows Server 2008 R2In a mixed-mode domain that consists of Windows Server 2003 domain controllers, Windows 2000 Server-based domain controllers, or legacy clients, the default dynamic port range is 1025 through 5000. Windows Server 2008 and Windows Server 2008 R2, in compliance with Internet Assigned Numbers Authority (IANA) recommendations, has increased the dynamic client port range for outgoing connections. The new default start port is 49152, and the default end port is 65535. Therefore, you must increase the RPC port range in your firewalls.Collapse this table
929851
(http://support.microsoft.com/kb/929851/
)
The default dynamic port range for TCP/IP has changed in Windows Vista and in Windows Server 2008
For more information about this change, visit the Ask the Directory Services Team blog and read the following article:Dynamic Client Ports in Windows Server 2008 and Windows Vista (http://blogs.technet.com/askds/archive/2007/08/24/dynamic-client-ports-in-windows-server-2008-and-windows-vista-or-how-i-learned-to-stop-worrying-and-love-the-iana.aspx) (*) To define RPC server ports that are used by the LSA RPC services, see KB article 224196 or the "Domain controllers and Active Directory" section in the following Microsoft Knowledge Base article: 832017 (http://support.microsoft.com/kb/832017/ ) Service overview and network port requirements for the Windows Server system Note: External trust 123/UDP is only needed if you have manually configured the Windows Time Service to Sync with a server across the external trust. In Windows 2000 and XP, for the Active Directory Group Policy client to function correctly through a firewall, the Internet Control Message Protocol (ICMP) protocol must be allowed through the firewall from the clients to the domain controllers. ICMP is used to determine whether the link is a slow link or a fast link. |
| Client Ports | Server Port | Protocol |
|---|---|---|
| 1024-65535/TCP | 1723/TCP | PPTP |
Note When you add permissions to a resource on a trusting domain for users in a trusted domain, there are some differences between the Windows 2000 and Windows NT 4.0 behavior. If the computer cannotdisplay a list of the remote domain's users:
- Windows NT 4.0 tries to resolve manually-typed names by contacting the PDC for the remote user's domain (UDP 138). If that communication fails, a Windows NT 4.0-based computer contacts its own PDC, and then asks for resolution of the name.
- Windows 2000 and Windows Server 2003 also try to contact the remote user's PDC for resolution over UDP 138, but they do not rely on using their own PDC. Make sure that all Windows 2000-based member servers and Windows Server 2003-based member servers that will be granting access to resources have UDP 138 connectivity to the remote PDC.
APPLIES TO
- Windows Server 2008 Datacenter
- Windows Server 2008 Enterprise
- Windows Server 2008 Standard
- Windows Server 2008 R2 Datacenter
- Windows Server 2008 R2 Enterprise
- Windows Server 2008 R2 Standard
- Microsoft Windows Server 2003, Standard Edition (32-bit x86)
- Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
- Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional Edition
- Microsoft Windows NT Server 4.0 Standard Edition
- Windows Server 2008 Datacenter without Hyper-V
- Windows Server 2008 Enterprise without Hyper-V
- Windows Server 2008 for Itanium-Based Systems
- Windows Server 2008 Foundation
- Windows Web Server 2008 R2
Keywords: | kbenv kbhowto kbnetwork KB179442 |
Other Resources
Other Support Sites
- Solution Centers
- Microsoft Fix It Solutions
- Windows Help and How-to
- Office Online
- Microsoft Partner Network
Community
Get Help Now
Article Translations
- Brasil (Português)
- Česká republika (Čeština)
- Deutschland (Deutsch)
- España, Latinoamérica (Español)
- France (Français)
- Indonesia (Bahasa Indonesia)
- Italia (Italiano)
- Magyarország (Magyar)
- Polska (Polski)
- Portugal (Português)
- România (Română)
- Slovenská Republika (Slovenčina)
- Türkiye (Türkçe)
- Việt Nam (Tiếng Việt)
- Ελλάδα (Ελληνικά)
- Россия (Русский)
- भारत (हिंदी)
- ไทย (ไทย)
- 대한민국 (한국어)
- 中国 (简体中文)
- 台灣 (繁體中文)
- 日本 (日本語)






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top
