News for hackers. Stuff that matters.
Re:Ask HN: What do you use for your cloud VPN? by atmosx on Sunday March 14, 2021 @02:58PM (#26457808)
> 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.

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...

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
Re:Ask HN: What do you use for your cloud VPN? by atmosx on Monday March 15, 2021 @06:04PM (#26469814)
I did not get that, sorry.

I would opt for routing instead of NATing if possible.