How would I go about setting up a secure VPN server?

- I want to host this VPN from a virtual machine on my personal computer.

- I need it to be safe and secure.

- My friends will connect to the VPN so we can be on a local network.

- I have Ubuntu installed on the VM.

Use wireguard. The VM is not necessary imo. You can host wireguard directly on windows. Then it depends on your ISP, are you behind a NAT?

What’s your use-case for ~“My friends will connect so we can be on a local network”. VPN is the dinosaur in the room and engineers often pigeonhole a known technology for a use case that doesn’t fit it. VPN could be what you’re looking for, but I can’ tell based on this. There are other solutions (Philip mentioned one of them) that may be a better fit for your usecase.

If you’re behind a NAT, you can use cloudflare tunnel

u/Pretend_Sympathy7373

u/PhilipLGriffiths88

Thanks for the reply. I will look into these solutions in more depth.

How about openziti vs cloudflare? I think cloudflare offers up to 50 users in the free tier

Thank you so much for the explaination! Also one more thing, are you associated with openziti in any way?