Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE IDEA] only tunnel DNS traffic on/off switch #468

Open
Lycidias93 opened this issue Nov 29, 2024 · 0 comments
Open

[FEATURE IDEA] only tunnel DNS traffic on/off switch #468

Lycidias93 opened this issue Nov 29, 2024 · 0 comments

Comments

@Lycidias93
Copy link

          > @merlinuwe On your phone, copy an existing wireguard tunnel that you're able to use to access your PiHole. (Long press to get the copy option).

Test the duplicate entry and make sure it works. Then disconnect.

Edit that entry.

  • Rename the tunnel to PiHole DNS (or similar)
  • in the interface section, set DNS to 192.168.178.100.
  • in the peer section, set Allowed IPs to 192.168.178.100/32
    Save

Explanation The "Allowed IPs" entry for a peer is the list of IP addresses and subnets that are reachable via a peer. Commonly that's set to 0.0.0.0/0, ::/0 which means "all IPv4 and all IPv6 addresses". Your phone will try to send all traffic (for included apps) through that tunnel. By setting it to 192.168.178.100/32 then your phone will ONLY use that tunnel to access your DNS server and all other traffic will take other routes.

This works like a charm, thanks!

Would be nice, if we could have a on/off switch for "only tunnel DNS traffic" @zaneschepke

Originally posted by @Lycidias93 in #404 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant