this post was submitted on 10 Feb 2025
18 points (90.9% liked)

Selfhosted

42055 readers
592 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
 

Hello Selfhosted!

So I have an interesting issue. I have a docker host, and that host i have a Caddy container. I have that setup to handle reverse proxying. I have it setup to be local only. I have a pihole and a wireguard server. And can connect to my network successfully.

The part that confuses me is that while on network everything works great. While on VPN I can connect to services by IP:Port. If I use mobile data with VPN, I can't use the site addresses. x.domain.xxx (for privacy sake I'm leaving my domain out of the post.) But when I connect to WiFi, any WiFi, and connect to VPN I can go to the address I have setup for reverse proxying.

I am unsure how to troubleshoot this. Any pointers would be appreciated.

you are viewing a single comment's thread
view the rest of the comments
[–] sylver_dragon@lemmy.world 3 points 1 day ago (1 children)

It makes little sense why it works on an offsite WiFi, but not mobile data.

I'd agree with unbuckled above, it's a DNS issue. If your mobile device is capable, use nslookup or dig to see what responses you are getting in different scenarios. It's possible that your VPN software is leaking DNS queries out to the mobile data provider's DNS servers while you are on mobile data and only using the correct DNS settings when you are on wifi. Possibly look for split tunnel settings in the VPN software, as this can create this type of situation.

You can also confirm this from the pihole side. Connect to the VPN via mobile data and browse to some website you don't use often, but is not your own internal stuff. Then open the query log on your pihole and see if that domain shows up. I'd put money on that query not showing in the pihole query log.

[–] Hellmo_Luciferrari@lemm.ee 1 points 22 hours ago

I turned on query logging for my PiHole. I chose a random site I don't typically browse, and confirmed I saw it logged in my PiHole. Though, I am thinking it's likely DNS that's causing issues.

I even tried turning off split tunneling, and it does the same thing.

I checked automatic DNS setting on my phone.


I don't know if it will make a difference but the DNS records for my local services are CNAME records, so I am going to change it to an A/AAAA record on PiHole.

I have these set in PiHole and not my Unbound.