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


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.

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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel