Port reference › Directory & auth

Port 135 · MS RPC

Windows RPC endpoint mapper

TCP Directory & auth Exposure risk: High

What is port 135 used for?

Windows RPC endpoint mapper. AD replication, WMI and DCOM use it to find dynamic ports.

Well-known port (0-1023): opening it on Linux needs root (or CAP_NET_BIND_SERVICE).

Security notes

Block from outside. Large worms such as Blaster targeted this port.

Allow port 135 through the firewall

This port is risky to expose, so the commands below allow only the IPs you specify.

# Replace 203.0.113.10/32 with the IP or network you want to allow
sudo ufw allow from 203.0.113.10/32 to any port 135 proto tcp
sudo ufw status

Check whether port 135 is open

sudo ss -tlpn | grep ':135 '

Other directory & auth ports

389 LDAP 636 LDAPS 88 Kerberos 1812 RADIUS authentication 1813 RADIUS accounting