by sigwinch28 · 6y ago · 0 comments
I run a PiHole on my home network and it's also my WireGuard "server". I will concede am lucky enough to have static IPv4/IPv6 addresses on my home connection.
On my iOS devices I have two connections set up: one for "access to home + DNS", and the other for all traffic. When I'm on my home wifi the VPN connection is off, when I'm on cellular data the DNS is set to the PiHole, and when I'm on any other wifi I route all traffic via the VPN (all automatically via the WireGuard app).
For my other mobile devices... well, they're Linux, so I just set the DNS server correctly and leave WireGuard always connected. It's a UDP "connection" for crying out loud.
This all works flawlessly now to the point that my less technically-minded roommate has it set up on their phone, too: they can access the NAS all the time and ads are blocked in the web browser and in apps.
I use the official WireGuard app from the app store. I have two connections configured.
Assume that the endpoint (i.e. server running wireguard on port 500) is 8.8.8.8:500, the IP of my iDevice on the VPN should be 192.128.1.254, my home LAN is 192.168.1.0/24, my PiHole is 192.168.1.2, and my home wifi SSID is Ycombinator.
Connection 1 is:
- Address(es): 192.168.1.254
- DNS Servers: 192.168.1.2
- Endpoint: 8.8.8.8:500
- Allowed IPs: 192.168.1.0/24
- On-demand activation:
-- Wifi: Off
-- Cellular: On
Connection 2 is:
- Address(es): 192.168.1.254
- DNS Servers: 192.168.1.2
- Endpoint: 8.8.8.8:500
- Allowed IPs: 192.168.1.0/24, 0.0.0.0/0
- On-demand activation:
- Wifi: On (Except 1 SSID: Ycombinator)
- Cellular: Off
If this isn't clear, I can post screenshots.
Is this redundant, since 0.0.0.0 should include the 192.168.1.0/24 subnet? Not being a smart alec, I'm actually asking: I have an okay-ish understanding of networking stuff but not an expert.
Sidebar: I also have a copy of my desktop Firefox hosted as a RemoteApp on a Win10Ent VM, for the odd time I need remote access to a credentialed account while I'm away.
Or if you want something more topic specific, Feinstein co-sponsors it so we can fully assume it elevates the whims of The State over the welfare of us.
It's a spectacular experience when it comes to accessing all your stuff without multiple logins (since none of it is exposed to the internet) and Wireguard is blazing fast.
A while back, some HN commenters in a Wireguard thread tried to argue that all home connections have static IP addresses, or at least ones that do not change frequently enough to be an issue. If I had a static IP address I, too, would consider myself lucky.
While they could still use a dynamic DNS service, the public IP that it sees will actually be a public IP address that is shared by many customers.
---
Perhaps a kernel is available for your device, or you can look at building and contributing one if not!
What device do you have?
I'm not affiliated with the WireGuard project, but I would appreciate it if you could encounter the issue again, and then submit an account of your experience and the logs from your device.