this post was submitted on 27 Sep 2026
239 points (99.2% liked)

Selfhosted

62348 readers
1203 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:

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!

founded 3 years ago
MODERATORS
 

It took me a while to figure out why many of my self-hosted services were intermittently failing to connect on my phone after updating to Android 17. I eventually figured out there's a new ACCESS_LOCAL_NETWORK permission which means the "Nearby devices" permission is now required to access devices on the same network subnet. For an avid self-hoster, this can be quite a bit.

I had my DNS configured so my public-facing server resolved to a local IP address when on my LAN. This meant that my web, immich, xmpp, NTP, jellyfin and DoH servers all resolved to a local IP address on wifi. On Android 17, it all broke without warning. No error messages. No asking for extra permissions. Just silent packet dropping.

I've solved it by configuring my public-facing services to resolve to my external (static) IP address, even when inside the network. I couldn't make any internal services resolve to the external address (SMB, CUPS etc) because they are (obviously) not bound to my WAN interface.

I get why the change was made. A lot of apps were snooping around people's networks to gather intel. A potentially massive privacy violation.

Has anyone else had this issue? Is this the cleanest solution?

you are viewing a single comment's thread
view the rest of the comments
[–] wholookshere@lemmy.blahaj.zone 5 points 1 day ago (4 children)

Not OP but I do the same for two reasons.

A) it eleimitaes my ISP traffic. It doesn't have to go out to my router, to come back in on the public IP. They can't track what never hits them.

B) I also have completely internal services. So the DNS entries are internal only. Can't map my internal network publicly.

[–] pHr34kY@lemmy.world 2 points 21 hours ago

I've also got a completely different DNS config for WAN and LAN traffic. WAN devices can only resolve PTR records for my mail server. My LAN devices have DDNS so internally they a get allocated DNS entries by hostname. Even my guest network has a different config for isolation.

They definitely all need to be kept separate.

[–] frongt@lemmy.zip 1 points 20 hours ago (1 children)

A router shouldn't be sending that traffic outside. It should already have routes to send it right back, either regular or NAT rules.

[–] wholookshere@lemmy.blahaj.zone 1 points 7 hours ago

It still has to hit the ISP router?

Depends on the IP. I have a static block, so the other IPs have to hit the public IP and come back, because the router doesn't hold those IPs, itnjust forwards the traffic.

[–] Rai@lemmy.dbzer0.com 1 points 1 day ago (3 children)

Would you have any recommendations to resources where I can read about setting something like this up? I’ve recently picked up a managed switch and set up a computer to act as a router, and I’ve been learning how VLANs be. I don’t have things fully working on my home network yet, though, but I’m very interested!

[–] tburkhol@lemmy.world 3 points 23 hours ago (2 children)

I don't know how the others set theirs up, but I use "views" in bind 9 https://kb.isc.org/docs/aa-00851

Essentially, the DNS I run on a router-like box much like you describe uses a different database depending on whether you query from an internal IP address or a public address. For me, the advantages are that I can let devices on my local network declare their own names to DHCP and enter them in DNS without worrying about the outside world. Mu internal network doesn't crash if my ISP changes my address, Certbot happily requests certs for any site with a public address, and that cert works seamlessly on the corresponding internal address, no wildcards or DNS challenge required.

[–] pHr34kY@lemmy.world 1 points 21 hours ago

That's exactly what I'm doing.

[–] Rai@lemmy.dbzer0.com 1 points 21 hours ago (1 children)

That’s so sick! That’s definitely above my skill level at the moment, but I will save this for when I’m more knowledgeable—thank you much!

[–] frongt@lemmy.zip 1 points 15 hours ago (1 children)

What are you running on your router? If you use opnsense, I'm pretty sure it has a GUI for DNS stuff. Been a while since I've used it.

If you use pihole for DNS, you can set it up in there too, but it's not the same process as most other systems.

[–] Rai@lemmy.dbzer0.com 1 points 15 hours ago

I right now have an ISP router, but I’ve got an OpenWRT Pi5 and some Lenovo Tinys I can install OpnSense on when I know more things about stuff!

[–] KyuubiNoKitsune@lemmy.blahaj.zone 2 points 23 hours ago* (last edited 23 hours ago) (1 children)

If you host your own internal dns server like a pihole, you can just add them in as local names.

Careful of something called split brain dns though.

For reference, I use AWS Route53 to host my dns domain publicly and internally I use pihole and Traefik. Traefik deals with getting certificates for my internal resources.

[–] Rai@lemmy.dbzer0.com 2 points 21 hours ago

Thank you! I currently do run a PiHole, which I’ve been running for like six years? I really need to get that updated as well hahaha. I’ll look into doing it they way!

I'll admit I dont have one.

I've been meaning to write one myself on how I use things. As how I've gotten it to work has really been from a decade of doing this professionally. And I have opnions.

I'll for sure post links to this community when I have them.

[–] electric_nan@lemmy.ml 1 points 1 day ago (2 children)

Do your apps complain about SSL certs?

[–] pHr34kY@lemmy.world 2 points 21 hours ago (1 children)

Nope. SSL certs are pinned to the hostname, not the IP address. I can change the IP address in DNS and it will still work.

[–] electric_nan@lemmy.ml 1 points 16 hours ago

Ahh, OK I see. I don't know why I didn't realize that before.

Traefik serves DNS challenge certificates