this post was submitted on 19 Jun 2023
2 points (100.0% liked)

Selfhosted

46362 readers
707 users here now

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.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hi, I was planning on the VPS+Reverse proxy setup instead of port-forwarding from my home address (basically, Wireguard VPN to VPS box which will host a reverse proxy, be hardened and only open necessary ports). I will be hosting Pi-Hole+Unbound at home, and would like to access it from outside. I do not want to share my DNS with anyone else. How would I be able to achieve that with this setup? Do I have to open a port on the VPS for another VPN endpoint (Wireguard), which will basically mean I have to go through two VPN tunnels to get to my DNS? I can't quite figure it out.

Thanks for your time!

top 5 comments
sorted by: hot top controversial new old
[–] aucubin@lemmy.aucubin.de 5 points 2 years ago

You can add the device you want to use PiHole with to your WireGuard VPN and set the DNS property for the Interface.

Then you need to add the PiHole machine to the VPN, if it is not already reachable (or you use your existing machine in the internal networking with masquerade)

[–] death916@lemmy.death916.xyz 2 points 2 years ago

I use tailscale on my pihole container and add the tailscale ip as dns for all tailscale devices. Then u just have tailscale one your phone laptop or w.e and will be using that dns. No ports opened at all.

[–] LostAndSmelly@lemmy.world 0 points 2 years ago (2 children)

Sounds like you need Cloudflare. The free tier should be just fine.

[–] cjerrington@kbin.social 2 points 2 years ago

Cloudflare DNS proxied dns to be exact too. They also allow DNS only which is not routed through Cloudflare and the services.

[–] hfdh 1 points 2 years ago* (last edited 2 years ago)

Cloudflare has great free tier network solutions that being said:

If you outsource your network you outsource your control, and in this case you must be sure you can trust them.

The software mentioned here by the other people to do it yourself is not more difficult to setup and maintain than Cloudflare.

Last question one should ask themselves is why do I run a homelab and does outsourcing parts to third party vendors fit in to my objectives.