Question

Adding IPv6 to MongoDB cluster's trusted sourcess (IP Binding)

This may seems such a trivial question but it is possible to edit the MongoDB’s configuration file and bind multiple IP/range in order to restrict access to the database. (https://docs.mongodb.com/manual/core/security-mongodb-configuration/)

This option is available on DigitalOcean’s dashboard for “Managed MongoDB Database” but it only allows IPv4. Recently I was trying to add an IPv6 to the list of “trusted sources” but I got an error saying only IPv4 is allowed.

Since we do not have access to the database cluster itself and can not configure it manually, does DO offer an option to allow IPv6 for trusted sources in the dashboard?

I searched a lot through documentation but could not find any clue.


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Rajkishore J
DigitalOcean Employee
DigitalOcean Employee badge
November 30, 2021
Accepted Answer

Hi @bbkkbbkk,

Restricting access to specific ports or IPv6 addresses is not currently supported with DO Managed database.

As we continue to work on improving our products and services, we encourage you to share your thoughts, ideas, or feedback you have at https://ideas.digitalocean.com/

This will help us to better prioritize features that you feel need more attention.

Regards, Rajkishore

Quite sad. My case is Postgres Managed DB, I have the same problem here. I have ipv6 at the home/office, and I can’t access the database. I would say that the alternative is to create a jump box inside a droplet.

Since my app is not in production yet, I only remove all trusted sources whenever I’m connected directly to the database.

But soon will be, and I can’t afford to remove the trusted sources and leave them open.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Quite sad. I have the same problem here. I have ipv6 at the home/office, and I can’t access the database. I would say that the alternative is to create a jump box inside a droplet.

Since my app is not in production yet, I only remove all trusted sources whenever I’m connected directly to the database.

But soon will be, and I can’t afford to remove the trusted sources and leave them open.