Firewall Ports Required to Join AD Domain - (2024)

Leave a Comment / By YongKW / February 20, 2020

Refer to the lab below on the testing done to verify Firewall Ports Required to Join AD Domain

Components in this lab

  • Windows 10 Machine – 172.16.1.200
  • Windows 2019 AD Domain Controller – 10.10.10.200
  • Firewall Policy in PfSense
  1. Block Access from 172.16.1.0/24 to 10.10.10.0/24
  2. Block Access from 10.10.10.0/24 to 172.16.1.0/24

The Firewall Ports will be opened one by one from 172.16.1.0/24 to 10.10.10.0/24 to verify the actual ports required

Firewall Ports required to join AD Domain (Minimum)

Windows 10 Client can join to Windows 2019 AD Domain with the following Ports allow in Firewall

Without TCP High Ports open

The following Message appear even join to domain successfully and there is a lot of TCP high ports are blocked in Firewall

  • Group Policy cannot be applied
  • It take very long time to for computer to startup and login to domain successfully

Firewall Ports Required to Join AD Domain - (1)

Firewall Ports Required to Join AD Domain - (2)

Optional Ports

Without TCP 464 Open

User can still change their password successfully even thought TCP 464 is blocked in Firewall

Firewall Rules in pfesense Firewall

The following Firewall Rule is created

  1. Traffics from WIN10 (172.16.1.200) to AD Domain Controller (10.10.10.200)

Firewall Ports Required to Join AD Domain - (3)

  1. Traffics from AD Domain Controller (10.10.10.200) to WIN10 (172.16.1.200) – All Block

Firewall Ports Required to Join AD Domain - (4)

Related

Firewall Ports Required to Join AD Domain - (2024)

FAQs

What port does firewall use to join domain? ›

Port 135 (TCP) for inbound RPC endpoint mapper connections to enable the computer to join the Active Directory domain. Port 49152-65535 (TCP) for inbound RPC endpoint connections (“TCP Dynamic”) to enable the computer to join the Active Directory domain.

What are the minimum ports for Active Directory? ›

Firewall Ports required to join AD Domain (Minimum)
  • TCP 88 (Kerberos Key Distribution Center)
  • TCP 135 (Remote Procedure Call)
  • TCP 139 (NetBIOS Session Service)
  • TCP 389 (LDAP)
  • TCP 445 (SMB,Net Logon)
  • UDP 53 (DNS)
  • UDP 389 (LDAP, DC Locator, Net Logon)
  • TCP 49152-65535 (Randomly allocated high TCP ports)
Jul 18, 2023

What ports are required for domain controllers to communicate? ›

Also Below are the commonly required ports to communicate with DCs. UDP Port 88 for Kerberos authentication UDP and TCP Port 135 for domain controllers-to-domain controller and client to domain controller operations. TCP Port 139 and UDP 138 for File Replication Service between domain controllers.

What port is used for ad authentication? ›

The following ports are required for basic AD communication: TCP/UDP port 53: DNS. TCP/UDP port 88: Kerberos authentication. TCP/UDP port 135: RPC.

What is port 389 used for? ›

Quick Definition: LDAP port 389 is the default port for unencrypted LDAP communication, typically used for directory-related data exchange. In contrast, LDAP port 636 is the encrypted counterpart, ensuring secure transmission of data related to network accounts.

Which of the following ports needs to be opened on the firewall for DNS? ›

DNS zone transfers use TCP port 53. DNS queries use UDP port 53.

How do I allow a domain through my firewall? ›

Windows 10
  1. Right-click the Windows Start button and select Control Panel.
  2. Click Windows Firewall.
  3. Click Advanced Settings.
  4. Click Inbound Rules, then New Rule.
  5. Select Port for the Rule Type, then click Next.
  6. Select TCP for Does this rule apply to TCP or UDP.

What protocols are required for Active Directory? ›

Active Directory makes use of other security and networking protocols including LDAP (Lightweight Directory Access Protocol), DNS (Domain Name System), and Microsoft's version of the Kerberos authentication protocol.

What is the port 445 for Active Directory? ›

What is Port 445 Used For? You use port 445 to share the resources of devices on a network using SMB, which is also a critical component of Microsoft Active Directory (AD).

What are the minimum requirements for a domain controller? ›

At a minimum, you need a 1.4 GHz, 64-bit CPU that supports Second Level Address Translation, 512 MB of RAM -- or 2 GB of RAM when using Desktop Experience -- and 32 GB of disk space. For better performance, especially with larger domains, consider a faster CPU and 4 GB of RAM.

What is port 445 used for on domain controller? ›

What is the use of port 445? Port 445 is a Microsoft networking port which is also linked to the NetBIOS service present in earlier versions of Microsoft Operating Systems. It runs Server Message Block (SMB), which allows systems of the same network to share files and printers over TCP/IP.

What protocols does a domain controller use? ›

Do domain controllers use LDAP? Yes, DCs support LDAP (Lightweight Directory Access Protocol). LDAP is a protocol for accessing server resources over an internet or intranet.

What port is LDAP in Active Directory? ›

Note: The default LDAP port number is 389. If you are using SSL, the default LDAP port number is 636.

Which ports does LDAP use? ›

The standard port for LDAP communication is 389, although other ports can be used. For example, if you must be able to start the server as a regular user, use an unprivileged port, by default 1389. Port numbers less than 1024 require privileged access.

What is the default port number for a domain? ›

Default Port Numbers
PortIPDescription
53TCP & UDPDNS (domain name server) lookup.
80TCPDefault port for browser access.
161UDPInbound GET requests using SNMP.
162UDPOutbound SNMP TRAPs.
10 more rows

What is TCP port 3268 used for? ›

Port 3268. This port is used for queries specifically targeted for the global catalog. LDAP requests sent to port 3268 can be used to search for objects in the entire forest. However, only the attributes marked for replication to the global catalog can be returned.

What is port 443 for domain name? ›

When you add "443" at the end of a URL, you are specifying the port number for a secure web connection. Port 443 is the default port for secure HTTP (HTTPS) traffic. Here's what it means: HTTP (Hypertext Transfer Protocol): The standard protocol for transferring data over the World Wide Web is known as HTTP.

What is port 464 used for? ›

The fact you're seeing this service and port suggests you may be scanning a Domain Controller, for which both UDP & TCP ports 464 are used by the Kerberos Password Change. This port in particular is used for changing/setting passwords against Active Directory.

Top Articles
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 5414

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.