Re:Ask HN: What do you use for your cloud VPN?
by camjohnson26 on Monday March 15, 2021 @01:18PM
(#26468715)
This is actually what I’m trying to do, just surprised that this step: “install a VPN in the bastion house and add the appropriate routes and settings” is taking a lot more manual configuration than I expected, was hoping for some out of the box solution in case I mess up a routing rule or network configuration. WireGuard is pretty good but still requires messing with iptables to forward the VPN traffic onto the VPC
What you need is a private network[1]. A private VPC will allow instances to communicate with each other, but to access them from the outside a "bastion host" is required. If you install a VPN in the bastion house and add the appropriate routes and settings, you'll be able to connect to your instances internally. This is the "proper" way to create a "private" network.
You could achieve the same thing using Cloud Firewall[2]. The cloud firewall supports droplet as a "source" definition.
UPDATE: You can create a private network using a shared VPN but it is an overkill if instances are on the same data centre.
[1]: https://www.digitalocean.com/docs/networking/vpc/#features
[2]: https://www.digitalocean.com/docs/networking/firewalls/#feat...