Hi there, I hope somebody can help me out with this, because I’ve done some research already but either I have come across dead links or I haven’t understood what I was reading.

I have a bunch of docker containers running behind Nginx Proxy Manager and I have pi-hole with unbound set up as dns server for ad-blocking and also to resolve “mydomain.tld” to my local server ip (I have a hard time remembering ips/ports).

Some containers are publicly available for convenience, the rest aren’t but I’d still like to have some or all of them behind a VPN so I can access them from outside my local network and it would be great if I could also set the pi-hole as the dns server for the VPN.

Long story short, I don’t want to route all of the traffic behind the VPN, just specific containers.

All of them are running on ubuntu server with no VMs, it’s a small homelab, nothing fancy.

How can I do this?