Port reference › Directory & auth
Port 636 · LDAPS
Encrypted LDAP
TCP Directory & auth Exposure risk: Low
What is port 636 used for?
LDAP over TLS.
Well-known port (0-1023): opening it on Linux needs root (or CAP_NET_BIND_SERVICE).
Security notes
Keep directory servers reachable only from inside.
Allow port 636 through the firewall
This port is generally fine to expose publicly.
sudo ufw allow 636/tcp
sudo ufw status sudo firewall-cmd --permanent --add-port=636/tcp
sudo firewall-cmd --reload sudo iptables -A INPUT -p tcp --dport 636 -j ACCEPT New-NetFirewallRule -DisplayName "Allow TCP 636" -Direction Inbound -Protocol TCP -LocalPort 636 -Action Allow # Replace sg-0123456789abcdef0 with your security group ID
aws ec2 authorize-security-group-ingress --group-id sg-0123456789abcdef0 --protocol tcp --port 636 --cidr 0.0.0.0/0 Check whether port 636 is open
sudo ss -tlpn | grep ':636 ' netstat -ano | findstr :636 nc -zv SERVER 636
# Windows
Test-NetConnection SERVER -Port 636 sudo lsof -i :636 Ports used together
- 389 LDAP · Directory lookups (Active Directory)