Ask HN: What do you use for your cloud VPN?
I have a couple of servers running in digital ocean with some docker web applications on them. I want to block access to these web services from the public internet but allow them from the VPC network. The only out of the box solutions I see for digitalocean are proprietary apps like OpenVPN. WireGuard is a good alternative but requires a surprisingly high amount of configuration, and all the third party UIs are barely maintained.
I can’t believe this isn’t a solved problem so very curious what people are using to access VPCs. Preferably open source.
21 comments
[ 2.9 ms ] story [ 58.9 ms ] threadAre there features you need from the non-CE version?
I'm actually facing the same scenario, but I thought that a bastion ssh server between the VPC and the internet was enough. I'm totally new to these things, so could someone tell me the differences between a VPN and a VPC+bastion server?
[0] - https://github.com/trailofbits/algo
I run this on an inexpensive AWS Lightsail instance. Trivial to move it between regions also.
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...
I would opt for routing instead of NATing if possible.
Not really. It has a bit of a learning curve, but once you get past it it's actually a total joy to use.
But if you want something even simpler, I could suggest https://github.com/jedisct1/dsvpn
https://www.zerotier.com/