Read about site-to-site VPN configuration, it's what you're looking for.
Self-Hosted Main
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
For Example
- Service: Dropbox - Alternative: Nextcloud
- Service: Google Reader - Alternative: Tiny Tiny RSS
- Service: Blogger - Alternative: WordPress
We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.
Useful Lists
- Awesome-Selfhosted List of Software
- Awesome-Sysadmin List of Software
you should check out the WireGuard documentation, it's pretty straightforward to set up with your Unifi UDM. Once you have your VPN connection established, you can easily route your local traffic to your new cloud VPS. Good luck!
I have a setup where Wireguard docker container that is connected to my local network and if I use any other container to get local access I use `network_mode: service:wireguard-container` for that remote container have the same access as my VPN container.
This has pros and cons. Major pro that the host machine has no access to my network, so it works as regular server. Cons are that if I want to expose say a web panel for one of my local services I have to apply proxy settings to the VPN container and if you use a multiple copies of the same container that does not allow to change default port... you get collisions.
I think this is pretty much what I am looking for. I dont see a big need to have the host access the local network as everything I am using is in docker containers. I tried getting wireguard running on the host and a container and kept getting errors like the one below when trying to start wireguard
RTNETLINK answers: Operation not supported
Unable to access interface: Protocol not supported
AI also ran sudo modprobe wireguard which gave this modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.15.0-20-generic
Any details on how you got yours going?