Port 27017: MongoDB

MongoDB database connections. Tens of thousands of open MongoDB databases have been wiped and ransomed. Bind to localhost and enable authentication.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Examples:

Ports

1 of 41

Port Lookup

Port 27017 at a glance

Port27017
ProtocolTCP
ServiceMongoDB
Open to the Internet?No, keep it on a private network
See What Is Listeningss -lntup | grep ':27017 '
Test From Outsidenc -zv your-server 27017
Block with UFWufw deny 27017/tcp
Block with nftablesnft add rule inet filter input tcp dport 27017 drop

MongoDB uses TCP port 27017. MongoDB database connections.

Tens of thousands of open MongoDB databases have been wiped and ransomed. Bind to localhost and enable authentication.

If ss shows something listening on port 27017 on a public address, bind it to 127.0.0.1 or a private interface in the service's own configuration, and drop the port in the firewall as well.

Questions

What is port 27017 used for?
MongoDB. MongoDB database connections.
Is it safe to open port 27017?
No, keep it on a private network. Tens of thousands of open MongoDB databases have been wiped and ransomed. Bind to localhost and enable authentication.
How do I check if port 27017 is open?
On the server, ss -lntup | grep ':27017 ' shows what is listening. From another machine, nc -zv your-server 27017 shows whether the firewall lets it through.
How do I block port 27017?
With UFW: ufw deny 27017/tcp. With nftables, add a drop rule for dport 27017 in your input chain.

Abuse from open ports on your VMs?

Frabs spots amplification, scans and floods leaving any VM and stops them, without touching your firewall.