This article outlines the essential services and ports required to ensure proper communication between a client workstation and its Active Directory server
User is unable to communicate with Active Directory server through SRX firewall.
Consider the following topology:[User PC]192.168.1.2 ---> ge-0/0/1-[SRX]-ge-0/0/2 ---> 10.0.0.1[Active Directory]
Connections from User to Active directory and services that must be allowed in the SRX configuration are:
Note: Junos already contains application junos-ldap which is TCP port 389, but it does not contain an application for CLDAP UDP port 389, so a custom application must be created:
set applications application LDAP_UDP protocol udpset applications application LDAP_UDP destination-port 389
Note: Junos default application package does not contain Kerberos protocol application, a custom application must be created:
set applications application KERBEROS_TCP protocol tcpset applications application KERBEROS_TCP destination-port 88
set applications application KERBEROS_UDP protocol udpset applications application KERBEROS_UDP destination-port 88
Note: Junos default application package does not contain LDAPS protocol application, a custom app should be created:
set applications application LDAPS_TCP protocol tcpset applications application LDAPS_TCP destination-port 636
set applications application LDAPS_UDP protocol udpset applications application LDAPS_UDP destination-port 636
This is how the security policy should look like:
set security zones security-zone ZONE_LAN interfaces ge-0/0/1.0set security zones security-zone ZONE_SERVER interfaces ge-0/0/2.0
set security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match source-address anyset security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match destination-address anyset security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match application LDAP_UDPset security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match application junos-smbset security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match application KERBEROS_TCPset security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match application KERBEROS_UDPset security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match application junos-ldapset security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match application junos-nbdsset security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match application junos-ms-rpc-anyset security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match application LDAPS_TCPset security policies from-zone ZONE_LAN to-zone ZONE_SERVER policy ALLOW_AD_SERVICES match application LDAPS_UDP
10/23/2024 - Added bulletpoints and additional information about services allowed.
06/16/2026 - Removed integrated user firewall references