• Support
  • MongoDB connection issue because of Firewall

If I do not select "All" in the Source IP section for the port assigned to MongoDB and instead provide only the internal IP (127.0.0.1) or the server's IP, my applications running on Docker cannot access the database.

When I configure a firewall rule to allow access to the MongoDB port using internal or server IP, I encounter database access issues, receiving errors such as "Topology closed" or "Connection timeout." However, when I make the database port accessible from all IP addresses, there are no issues.

Is there a solution to fix this issue?



5 days later
8 days later

aaPanel_Kern

The port permissions are correct and the firewall is open. There is no problem with the firewall working either, I do not have any problems with the rules I assigned to other ports except the port for mongodb.