Exposed ports
Copies this page as Markdown with context, so an AI can walk you through your case step by step.
A database, a Redis or a remote desktop open to the whole Internet is one of the most common ways to lose data.
How we check
We only check ports on verified domains: you have to prove with a DNS record that the domain is yours. On any other domain, the audit doesn’t connect to any port.
We try to open a TCP connection to each port and close it. We never send data or try passwords. If your site is behind a CDN like Cloudflare, we see the CDN and not your server: the audit says so, and you should install the agent, which detects open ports from inside.
Which ports and how serious
| Port | Service | Severity |
|---|---|---|
| 23 | Telnet | Critical |
| 445 | SMB | Critical |
| 1433 | SQL Server | Critical |
| 2375 | Docker API without TLS | Critical |
| 3306 | MySQL | Critical |
| 5432 | PostgreSQL | Critical |
| 5900 | VNC | Critical |
| 5984 | CouchDB | Critical |
| 6379 | Redis | Critical |
| 9200 | Elasticsearch | Critical |
| 10250 | Kubelet | Critical |
| 11211 | Memcached | Critical |
| 27017 | MongoDB | Critical |
| 21 | FTP | High |
| 2376 | Docker API | High |
| 3389 | RDP (remote desktop) | High |
| 5601 | Kibana | High |
| 8086 | InfluxDB | High |
| 9000 | Portainer or PHP-FPM | High |
| 9092 | Kafka | High |
| 15672 | RabbitMQ panel | High |
| 22 | SSH | Medium |
| 25 | SMTP | Info |
How to close it
Ideally the service only listens inside the server:
| Service | What to change |
|---|---|
| MySQL | bind-address = 127.0.0.1 in /etc/mysql/mysql.conf.d/mysqld.cnf |
| PostgreSQL | listen_addresses = 'localhost' in postgresql.conf |
| Redis | bind 127.0.0.1 and protected-mode yes in /etc/redis/redis.conf |
| MongoDB | net.bindIp: 127.0.0.1 in /etc/mongod.conf |
| Elasticsearch | network.host: 127.0.0.1 in elasticsearch.yml |
Restart the service after the change. If you really need outside access, open it only to your IP in the firewall:
sudo ufw allow from YOUR_IP to any port 5432
sudo ufw deny 5432
SSH and RDP
You don’t need to close them, but do protect them: for SSH, turn off password login (PasswordAuthentication no in /etc/ssh/sshd_config) and use keys. For RDP, use a VPN or limit access by IP. The ganyant agent tells you if someone tries brute force.