Active Directory ports are the invisible channels that enable domain controllers and clients to communicate securely across your network. When you combine those ports with a correctly configured firewall, you create a resilient identity perimeter that supports authentication, group policy, and seamless resource access.
This overview maps the most important protocols and ports, explains how to filter them with a firewall, and shows the practical impact on security and availability. Use these insights to refine segmentation rules, troubleshoot replication issues, and reduce exposure without breaking core services.
| Protocol | Direction | Port | Use Case | Firewall Guidance |
|---|---|---|---|---|
| LDAP | Client to DC | 389 TCP/UDP | Standard authentication and queries | Allow within site, restrict to trusted subnets |
| LDAP SSL | Client to DC | 636 TCP | Encrypted LDAP binds | Allow from apps that require LDAPS |
| Kerberos | Client to DC | 88 TCP/UDP | Ticket granting and TGT handling | Allow end-user and app authentication |
| Global Catalog | Client to DC | 3268 TCP, 3269 TCP | Forest-wide search and GC referrals | Allow for logon and directory search |
| DNS | DC and clients | 53 TCP/UDP | SRV records and dynamic updates | Allow only where name resolution is required |
| NetBIOS | Client to DC | 137–139 TCP/UDP | Legacy protocols and file shares | Block at perimeter, allow within LAN if needed |
| SMB Direct | Server to server | 445 TCP | Modern file and replication traffic | Allow only for backup and DFS-R links |
| Kerberos Change Sync | DC to DC | 464 TCP | Password changes and resets | Allow within domain for replication |
| LDAP GC SSL | Client to GC | 3269 TCP | Secure global catalog queries | Allow for external applications if required |
Designing the Active Directory Ports Firewall Policy
Principles for Segmented Access Control
A robust Active Directory ports firewall policy balances availability and security by specifying exactly which traffic can traverse your network segments. You should allow LDAP, Kerberos, and DNS within the identity zone, while tightly restricting inbound access from outside subnets. Use group-based rules so that domain controllers in separate organizational units or locations can still replicate without unnecessary exposure to broader infrastructure.
Zone-Based Filtering and Logging
Implement zone-based filtering that treats internal user zones, application zones, and perimeter zones differently. Log denied attempts on high-risk ports such as 389 and 636 to detect reconnaissance or brute-force patterns. Combine these logs with threat intelligence to identify suspicious source addresses and refine the rules over time.
Least Privilege for Server to Server Paths
For server-to-server communication, apply source-IP whitelisting and restrict ports to the minimum required set. Limit SMB and replication ports to backup systems, domain controllers, and file servers that truly need them. Tightening these channels reduces lateral movement risk while keeping critical replication and authentication flows intact.
Hardening the Identity Perimeter
Blocking Unnecessary Inbound Paths
The strongest perimeter starts by blocking nonessential inbound ports at the edge firewall. Public-facing systems should not expose LDAP, Kerberos, or NetBIOS from the internet, and tightly scoped VPNs or Azure AD Conditional Access should replace broad open ports. When remote users need directory access, prefer LDAPS or modern secure connectivity instead of raw LDAP.
Encrypted Channels for Sensitive Queries
Encrypting directory traffic with LDAPS and StartTLS prevents credential and data exposure on the network. Firewalls should allow 636 and 3269 for secure queries while enforcing strict certificate validation and key management. Regular audits confirm that plaintext ports are not being used for high-privilege operations across the environment.
Operational Resilience and Failover Planning
Domain controllers rely on multiple ports working together, so test failover paths before you lock down the firewall. Verify that replication, DFS-R, and SYSVOL synchronization remain healthy under the new rules. Maintain redundancy by allowing required ports between sites and ensure monitoring alerts fire when specific services become unreachable.
Securing Authentication Traffic
Kerberos and Ticket Granting Considerations
Kerberos uses UDP 88 and TCP 88 for authentication, making it essential for interactive logon and service tickets. Firewalls should permit these between clients and domain controllers within a site while preventing external access. Monitor for anomalies such as repeated TGT requests that could indicate ticket-granting abuse or protocol-level attacks.
Global Catalog and Replication Health
Global Catalog traffic over ports 3268 and 3269 supports logon and universal group lookups across the forest. Allow these ports where needed, but prefer tightly scoped replication links between DCs rather than open access. Validate that global catalog usage does not degrade logon performance, and tune placement to balance query load and security.
Password and Policy Synchronization
Password changes flow through port 464, and tightly controlling this path prevents exposure of credential change operations. Use secure channels such as LDAPS for resetting credentials from management tools, and restrict who can invoke the change-and-get service. Synchronize policies between domain controllers so that authentication rules remain consistent even if one DC is temporarily blocked.
Troubleshooting Common Connectivity Issues
Logon Failures and Replication Breaks
Blocked LDAP or Kerberos traffic is a common cause of logon failures and replication errors. Start by verifying that required ports are open between the affected systems and that no intermediate firewall is silently dropping or resetting packets. Correlate events on both endpoints to identify whether the issue is ACL related, routing related, or service specific.
Slow Authentication and Time Skew Risks
Slow authentication often traces back to DNS and time service dependencies. Ensure port 53 for DNS and NTP ports for time synchronization remain allowed within the domain. If LDAPS or GC SSL is in use, check certificate chain validation and handshake performance, as misconfigured encryption can add latency to every bind attempt.
Key Recommendations for Active Directory Ports Management
- Create explicit allow rules for LDAP, Kerberos, DNS, and GC within trusted subnets only
- Block inbound LDAP and NetBIOS from external networks and prefer LDAPS over port 636 for secure queries
- Limit SMB and replication ports to backup and file servers that require them
- Log and review denied traffic on directory ports to detect reconnaissance or misconfigured clients
- Test replication and authentication after any firewall change to confirm continuity
FAQ
Reader questions
Should I open Active Directory ports directly to the internet for remote access?
No, avoid opening raw LDAP, Kerberos, or NetBIOS ports to the internet. Use secure remote access such as VPNs, Azure AD Seamless SSO, or modern identity protection policies instead of exposing directory services directly.
Which ports must stay open between domain controllers for replication to work?
For replication, allow inbound Kerberos 88, LDAP 389, LDAP SSL 636, SMB 445 for DFS-R, and RPC dynamic ranges as documented by your operating system version. GC ports 3268 and 3269 are also needed for forest-wide queries.
How can I tell if a firewall rule is blocking a critical Active Directory port?
Use network traces, firewall denied logs, and built-in tests such as Test-NetConnection or Repadmin diagnostics. Look for dropped packets on expected ports and correlate with replication warnings or authentication event IDs from domain controllers.
Is it safe to disable NetBIOS over TCP/IP to reduce the attack surface?
Yes, disabling NetBIOS over TCP/IP is generally safe in modern environments and reduces legacy exposure. Validate that applications and services no longer depend on NetBIOS before fully disabling it, and restrict 137–139 to legacy links only.