How to access personal DNS setup through VPS+Reverse Proxy setup?

3 years ago by MigratingtoLemmy to c/selfhosted

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!

load all comments
aucubin 7 points 3 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)

path: 0 339705, hotness: undefined, score: 7, children: 1
MigratingtoLemmy 1 point 3 years ago

Hi, if I understand you correctly, you're suggesting something similar to what I mentioned in my post? I.e. Pi-Hole hosted on premises -> connected via Wireguard to VPS -> Device connecting to VPS via Wireguard to access Pi-Hole. Is this what you're trying to say?

My apologies if I didn't get it right. Thanks!

path: 0 339705 352334, hotness: undefined, score: 1, children: 0
selfhosted
selfhosted

@lemmy.world

login for more options
63070
6829
6401

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:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

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

Questions? DM the mods!

go to feed...