Subscribe to Windows IT Pro
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

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