← Back to all network ports
TCP
Vulnerable
5432 PostgreSQL
PostgreSQL uses port 5432 for SQL traffic, replication, and operational tooling.
Security Context
Port 5432 is high-risk when broadly exposed. Treat it as an attack-surface decision, not just a connectivity setting, and confirm whether the listener truly needs to be reachable.
- !Public database exposure creates unnecessary authentication and exploit surface.
Nmap Check
Use a version probe first so you confirm whether the expected service is really what is listening on this port.
nmap -sV -p 5432 <host>Firewall Commands
UFW
sudo ufw allow 5432/tcpiptables
sudo iptables -A INPUT -p tcp --dport 5432 -j ACCEPT