Cheat sheet

Network ports — memo form

Reference of common ports, protocols and troubleshooting context; a known port never means it should be exposed to the Internet.

⌚ About 2 min read
View my favorites
NetworkBeginner to intermediate8 sections · 32 reference points

Reference of common ports, protocols and troubleshooting context; a known port never means it should be exposed to the Internet.

Core infrastructure

22/TCP
SSH / SFTP

Remote Unix/Linux administration; prefer keys and network filtering.

53/TCP+UDP

UDP common, TCP for large responses/transfers and other cases.

67/68 UDP
DHCPv4 serveur/client

Broadcast/relay depending on architecture.

123/UDP

Critical for Kerberos

Monitoring & directory

161/162 UDP
SNMP / traps

Prefer SNMPv3 where possible.

389/TCP+UDP
LDAP

Active Directory also requires RPC/Kerberos/DNS.

636/TCP
LDAPS

LDAP over TLS; check certificate and trust chain.

3268/3269 TCP
Global Catalog / GC SSL

Used by Active Directory global catalog.

Web & administration

80/TCP
HTTP

Often redirected to HTTPS but may still be required for some services.

443/TCP
HTTPS

Major application port; inspect TLS/SNI/Host beyond TCP.

5985/TCP
WinRM HTTP

Remote PowerShell management on Windows.

5986/TCP
WinRM HTTPS

WinRM over TLS; requires correct certificate/configuration.

Email

25/TCP
SMTP MTA à MTA

Server-to-server mail transport.

465/TCP
Submission TLS implicite

Depending on provider/service.

587/TCP
SMTP Submission

Common authenticated client/application submission port.

993/995 TCP
IMAPS / POP3S

Mailbox access, separate from SMTP sending.

Windows & Active Directory

88/TCP+UDP
Kerberos

AD authentication; also depends strongly on DNS and NTP.

135/TCP
RPC Endpoint Mapper

RPC then uses dynamic ports depending on OS/configuration.

445/TCP
SMB / SYSVOL / partages

Highly sensitive to Internet exposure.

49152-65535/TCP
RPC dynamique Windows moderne

Modern default dynamic RPC range, configurable.

Databases

1433/TCP
Microsoft SQL Server

Default classic SQL Server port; named instances may differ.

3306/TCP
MySQL / MariaDB

Do not expose publicly without strong justification and controls.

5432/TCP
PostgreSQL

Filter DB access by source and authentication.

6379/TCP
Redis

Unprotected exposure is especially risky.

VPN, VoIP & virtualization

500/UDP
IKE / IPsec

IKE negotiation.

4500/UDP
IPsec NAT-T

Used when NAT is detected.

5060/5061
SIP / SIP TLS

Does not cover RTP media, whose range depends on the platform.

443/902 TCP
VMware vSphere/ESXi — usages courants

Exact requirements depend on components and flow direction.

Test without unnecessary exposure

PowerShell
Test-NetConnection serveur -Port 443

Tests TCP from the client point of view.

Linux nc
nc -vz serveur 443

Tests TCP if netcat is installed.

Windows listeners
Get-NetTCPConnection -State Listen

Confirms a local service is listening.

Linux listeners
ss -lntup

Maps ports and processes when permissions allow.

Key points

  • A standard port does not prove which service is actually behind it.
  • Do not globally disable firewalls to test a port; use targeted temporary tests.
  • For Active Directory, think in required flow sets rather than only 389/636.
  • For SIP/RTP, VPN and vendor products, use the port matrix for the deployed version.
← All cheat sheets
♡ 0