Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

January 09, 2000 12:00 AM

How can I create a domain trust through a firewall?

Windows IT Pro
InstantDoc ID #13545
Rating: (3)

A. When creating trust relationships communications between the two domains is carried out over a number of protocols with each protocol using different TCP/IP port. Below is a list of ports which need to be enabled on the firewall for a trust relationship:

  • PORT 135 (TCP or UDP) for Remote Procedure Call(RPC)Service
  • PORT 137 (UDP) for NetBIOS Name Service
  • PORT 138 (UDP) for NetBIOS datagram (Browsing)
  • PORT 139 (TCP) for NetBIOS session (NET USE)
  • ALL PORTS above 1024 for RPC Communication

You may use LMHOSTS for name resolution (which would have #pre #dom entries for the domain controllers) or WINS can be used which requires:

  • PORT 53 (TCP and UDP) for DNS
  • PORT 42 (TCP and UDP) for WINS Replication

Alternatively, a trust can be established through point-to-point tunneling protocol (PPTP). For PPTP, the following ports must be enabled:

  • PORT (TCP) 1723 for PPTP
  • IP PROTOCOL 47 (GRE)

If you only wish to perform management through a firewall and/or RRAS you can only allow TCP any-139, TCP 139-any and UPD 138-138 through the firewall. Also allow UDP 137-137 to the WINS Servers. This allows all the remote management tools to run from the management NT Workstations.

Also see the following knowledge base articles:

  • Q167128 SMS: Network Ports Used by Remote Helpdesk Functions
  • Q174395 Event ID 4202 Attempting WINS Replication across Router

Related Content:

ARTICLE TOOLS

Comments
  • effjay
    8 years ago
    Jul 20, 2004

    Yup, you just don't set up a trust through the firewall by opening ports. Instead you use a VPN to connect your branch offices to the main office. That way you have a secured channel within which you can have as many ports as you wish, because you have control over the branch office and know that they won't harm you. I hope. *G*

  • Ann Young
    8 years ago
    Jun 30, 2004

    THis is great apart from one thing... opening all ports above 1024 fro dynamic RPC reduces the security of the firewall to that of swiss cheese. IF PPTP isn't possible for whatever reason, there has to be a wy or restricting RPC - it would have been nice if this could have been covered or linked to this FAQ too.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.