Access VPC via Wireguard

Posted June 2, 2020 2k views
VPNDigitalOcean Managed PostgreSQL Database


I have a managed database, and I would like to restrict access to it to VPC only.

I have setup a droplet in the same VPC as the managed DB, and configured WireGuard on it.
I can succesfully connect to the Wireguard VPN but I cannot seem to access the VPC (telnet private.....db.digitalocean PORT times out).

Can this be done?

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.

Submit an Answer
2 answers

Hi @dr42,

You are correct! I’m glad to hear you managed to find the solution. In such cases what I like to do si visit the docs.

Managed Databases:

VPC Docs:

The funny thing is every time I need to check something is I learn something new about any of the services.


Nevermind, I think this was because I have “Trusted Sources” configured for my managed DB, and it explicitely says that any non-explicitly whitelisted clients (from private or public networks) will be denied.