Five-minute check to see if your database is exposed to the internet on a Linux VPS
Attackers routinely scan the internet for exposed Redis, MongoDB, Elasticsearch and Postgres instances, often breaking in within hours of a server going live. The article explains that administrators can check their own Linux VPS in about five minutes using the ss command to see which addresses services are bound to. Docker is a common culprit, since published ports can bypass UFW firewall rules unless bound to localhost. It recommends testing reachability from an outside machine with nmap or nc, then restricting each database's bind address, enabling authentication, and using SSH tunnels or private networks for remote access.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in