bitlvl
ES

Referencia de números de puerto

Escribe un número o un nombre de servicio para filtrar. Las notas dicen qué suele escuchar ahí y qué puertos son peligrosos si están expuestos a internet. Cada número de puerto enlaza a su propia página (en inglés): qué corre en él, si va cifrado, si debería estar abierto y cómo comprobarlo y gestionarlo en el cortafuegos.

 
PortProtoServiceNotes
1tcptcpmux
7tcp/udpecho
9udpdiscard / Wake-on-LANWoL magic packets are often sent to UDP 9
13tcp/udpdaytime
20tcpFTP dataFTP data channel (active mode)
21tcpFTPFTP control; plaintext, replace with SFTP
22tcpSSHSSH, SCP, SFTP, git over ssh
23tcpTelnetPlaintext remote shell; should be off
25tcpSMTPMail transfer between servers
37tcp/udptime
43tcpWHOIS
49tcp/udpTACACS+
53tcp/udpDNSDomain name resolution; TCP for large answers and zone transfers
67udpDHCP serverHands out IP addresses
68udpDHCP client
69udpTFTPTrivial file transfer (PXE boot, network gear)
70tcpGopher
79tcpfinger
80tcpHTTPWeb, unencrypted
88tcp/udpKerberosAuthentication (Active Directory)
110tcpPOP3Mail retrieval, plaintext
111tcp/udprpcbind / portmapperNFS and other ONC RPC services
113tcpident
119tcpNNTPUsenet news
123udpNTPTime synchronisation
135tcpMS RPCWindows RPC endpoint mapper
137udpNetBIOS nameWindows name service
138udpNetBIOS datagram
139tcpNetBIOS sessionOld SMB over NetBIOS
143tcpIMAPMail access, plaintext/STARTTLS
161udpSNMPNetwork monitoring
162udpSNMP trap
179tcpBGPBorder Gateway Protocol
194tcpIRC
389tcp/udpLDAPDirectory services; plaintext/STARTTLS
443tcp/udpHTTPSWeb over TLS; UDP for HTTP/3 (QUIC)
445tcpSMBWindows file sharing, Samba
464tcp/udpKerberos passwd
465tcpSMTPSMail submission over implicit TLS
500udpIKEIPsec key exchange
513tcp/udprlogin / whoBSD r-commands; obsolete
514udpsyslogRemote logging (tcp 514 is rsh/rlogin historically)
515tcpLPDLine printer daemon
548tcpAFPApple Filing Protocol
554tcpRTSPStreaming control (IP cameras)
563tcpNNTPSUsenet over TLS
587tcpSMTP submissionMail from clients, STARTTLS
601tcpsyslog (TCP)IANA-registered reliable syslog
631tcp/udpIPP / CUPSPrinting
636tcpLDAPSLDAP over TLS
749tcp/udpKerberos adminkadmin
853tcpDNS over TLS
873tcprsyncrsync daemon
990tcpFTPS (implicit)FTP over TLS from the first byte
993tcpIMAPSIMAP over TLS
995tcpPOP3SPOP3 over TLS
1080tcpSOCKSProxy
1194udpOpenVPN
1433tcpMS SQL Server
1434udpSQL Server BrowserInstance → port lookup; SQL Slammer
1521tcpOracle DB
1723tcpPPTPObsolete VPN
1812udpRADIUS auth
1813udpRADIUS accounting
1883tcpMQTTIoT messaging
1900udpSSDP / UPnP
1935tcpRTMPLive-stream ingest (OBS → server)
2049tcp/udpNFSNetwork file system
2082tcpcPanel
2083tcpcPanel (TLS)
2087tcpWHM (TLS)cPanel root panel
2181tcpZooKeeperClient port
2375tcpDocker APIUnencrypted; never expose
2376tcpDocker API (TLS)
2379tcpetcd clientKubernetes datastore
2380tcpetcd peer
2888tcpZooKeeper peers3888 for leader election
3000tcpdev serversGrafana, Rails, Node apps
3128tcpSquid proxy
3268tcpAD Global Catalog3269 over TLS
3306tcpMySQL / MariaDB
3389tcpRDPWindows Remote Desktop
3478tcp/udpSTUN / TURNWebRTC NAT traversal
3690tcpSubversion
3888tcpZooKeeper election
4000tcpdev serversPhoenix, Jekyll
4011udpPXE proxyDHCP
4200tcpAngular dev
4369tcpEPMDErlang port mapper (RabbitMQ)
4443tcpHTTPS alt
4500udpIPsec NAT-TIKE/ESP when behind NAT
5000tcpdev serversFlask, Docker registry, UPnP
5001tcpDSM (TLS) / iperf3
5060tcp/udpSIPVoIP signalling
5061tcpSIP over TLS
5173tcpVite dev
5222tcpXMPP client
5269tcpXMPP server-to-serverFederation
5353udpmDNSBonjour / Avahi discovery
5432tcpPostgreSQL
5555tcpADBAndroid debug bridge
5601tcpKibana
5672tcpAMQPRabbitMQ
5900tcpVNCRemote desktop
5938tcpTeamViewer
6033tcpProxySQLClient port; admin on 6032
6379tcpRedisNo auth by default; never expose
6432tcpPgBouncerPostgreSQL pooler
6443tcpKubernetes API
6514tcpsyslog over TLS
6667tcpIRCPlaintext; most networks
6697tcpIRC over TLS
6881tcp/udpBitTorrent6881–6889
7000tcpCassandraInter-node
7001tcpWebLogic / Cassandra SSL
8000tcpdev serversDjango, python -m http.server
8008tcpHTTP alt
8080tcpHTTP altTomcat, proxies, dev servers
8081tcpHTTP alt
8086tcpInfluxDB
8088tcpHTTP alt / Hadoop
8118tcpPrivoxyFiltering proxy, often in front of Tor
8123tcpClickHouse HTTP
8200tcpVault
8333tcpBitcoin
8443tcpHTTPS altTomcat, Plesk, Unifi
8448tcpMatrix federation
8500tcpConsul
8554tcpRTSP altMediaMTX, cameras
8883tcpMQTT over TLS
9000tcpPHP-FPM / SonarQube / Portainer
9001tcpTor ORPort / Supervisor
9042tcpCassandra CQLClient port
9050tcpTor SOCKS
9090tcpPrometheus
9092tcpKafka
9093tcpAlertmanager
9100tcpJetDirect / node_exporterRaw printing, Prometheus node exporter
9117tcpJackett
9200tcpElasticsearch
9300tcpElasticsearch transport
9418tcpgitgit:// protocol
9443tcpPortainer / HTTPS alt
9735tcpLightning Network
10000tcpWebmin
10250tcpkubelet
10443tcpHTTPS alt
11211tcp/udpMemcachedNever expose; UDP used in amplification attacks
15672tcpRabbitMQ management
16379tcpRedis Cluster busData port + 10000
20000udpRTP range end / UserminAsterisk 10000–20000
25565tcpMinecraft
25672tcpRabbitMQ inter-node
26379tcpRedis Sentinel
27015tcp/udpSource engine games
27017tcpMongoDB
30303tcp/udpEthereum P2P
32400tcpPlex
33060tcpMySQL X Protocol
33434udptracerouteBase port for UDP traceroute
49152tcp/udpDynamic / ephemeral range startsIANA ephemeral ports 49152–65535 (Linux uses 32768–60999)
51820udpWireGuard
65535tcp/udpHighest portEnd of the ephemeral range

Los resultados y mensajes de esta herramienta se muestran en inglés.

Los tres rangos de puertos

  • 0–1023, conocidos: asignados por la IANA a servicios estándar. En Unix solo root (o un proceso con CAP_NET_BIND_SERVICE) puede escuchar en ellos.
  • 1024–49151, registrados: concedidos a fabricantes y proyectos que los solicitan (3306 MySQL, 5432 PostgreSQL, 6379 Redis). Cualquier usuario puede enlazarlos.
  • 49152–65535, dinámicos / efímeros: para el lado cliente de las conexiones. Linux usa en realidad 32768–60999 por defecto (net.ipv4.ip_local_port_range).

Puertos que nunca deberían estar expuestos a internet

Redis (6379), Memcached (11211), MongoDB (27017), Elasticsearch (9200), la API de Docker (2375), etcd (2379) y la mayoría de las bases de datos se distribuyen sin autenticación o con valores por defecto débiles y se escanean constantemente. Enlázalos a 127.0.0.1 o a una interfaz privada, ponlos detrás de una VPN o una regla de cortafuegos y nunca confíes en pasar desapercibido. Shodan los indexa todos en cuestión de horas.

Averiguar qué escucha

ss -tulpn            # Linux: sockets TCP/UDP a la escucha con nombre de proceso
sudo lsof -i :8080   # qué proceso tiene el puerto 8080
nc -zv host 22       # ¿está abierto un puerto remoto?

Un puerto que aparece «abierto» en ss pero no es alcanzable desde fuera suele estar bloqueado por un cortafuegos (ufw, nftables, un security group en la nube, o Cloudflare, que solo reenvía 80/443).

Preguntas

¿Cuál es la diferencia entre puertos TCP y UDP?

Son espacios de nombres separados: TCP 53 y UDP 53 son sockets distintos aunque el DNS use ambos. Un servicio puede escuchar en uno, en el otro o en los dos.

¿Por qué no puedo enlazar el puerto 80 sin root?

Los puertos por debajo de 1024 son privilegiados en Unix. Ejecuta el servicio en un puerto alto detrás de un proxy inverso, da al programa CAP_NET_BIND_SERVICE (setcap) o usa la activación por socket de systemd.

¿Qué significa «address already in use»?

Otro proceso ya escucha en el puerto (ss -tulpn muestra cuál), o un socket cerrado hace poco sigue en TIME_WAIT. SO_REUSEADDR o esperar un minuto arregla lo segundo.

¿Qué puertos usa HTTP/3?

UDP 443. HTTP/3 va sobre QUIC, que se basa en UDP; los navegadores lo descubren mediante la cabecera Alt-Svc o un registro DNS HTTPS.