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

Wireguard tunnel not working in ReThinkDNS but works with Wireguard app on same device #1298

Closed
Braintoe opened this issue Mar 20, 2024 · 14 comments
Assignees
Labels
bug Something isn't working

Comments

@Braintoe
Copy link

Braintoe commented Mar 20, 2024

ReThinkDNS v0.5.5c is running as a replacement for Netguard here since you implemented Wireguard support - and works in general great.

I do have found one rather bad issue though since I switched from a Raspi Wireguard host to the (newer) official implementation of Wireguard on my Fritzbox router:

  • with the old Wireguard kernel module running on the old Debian Bullseye-based Raspberry PI OS (kernel 5.10), Wireguard worked fine with ReThinkDNS.
  • with Wireguard running on the Fritzbox, it does not: whenever I try to connect to Wireguard with ReThinkDNS, the app shows me either a failure or it connects but no data comes through. If I however connect with the original Wireguard app (same device, same tunnel), the connection works as it should.
@ignoramous
Copy link
Collaborator

We don't have a fritzbox to reproduce this issue you're seeing. Are you technical enough to fetch us logs? If so:

  1. Go to Configure -> Settings -> Log level and set it to Verbose.
  2. Capture logs with adb logcat.
  3. Start your fritzbox WireGuard config in either Advanced mode (set it to Lockdown) or Simple mode.
  4. Add any browser app to it.
  5. Try to load a website or two from the browser (added above).
  6. Stop adb logcat.
  7. If you're comfortable doing so, email the results to me: mz at celzero dot com and mention this github issue.

No pressure.

@Braintoe
Copy link
Author

Braintoe commented Mar 21, 2024 via email

@Braintoe
Copy link
Author

Braintoe commented Mar 21, 2024

@ignoramous I got a logcat file for you where I started the Wireguard connection "wg7" via the "Advanced" tab in RethinkDNS (Rethink told me"connected" then), then switched to my browser, tried to load "heise.de", switched back to RethinkDNS and turned the Wireguard connection off. I will send you a Tresorit link (swiss "Dropbox" alternative, in case you do not know that one) containing the file.

@empty2k
Copy link

empty2k commented Mar 23, 2024

ReThinkDNS v0.5.5c is running as a replacement for Netguard here since you implemented Wireguard support - and works in general great.

I do have found one rather bad issue though since I switched from a Raspi Wireguard host to the (newer) official implementation of Wireguard on my Fritzbox router:

* with the old Wireguard kernel module running on the old Debian Bullseye-based Raspberry PI OS (kernel 5.10), Wireguard worked fine with ReThinkDNS.

* with Wireguard running on the Fritzbox, it does not: whenever I try to connect to Wireguard with ReThinkDNS, the app shows me either a failure or it connects but no data comes through. If I however connect with the original Wireguard app (same device, same tunnel), the connection works as it should.

I can confirm the issue. I'm also using a Fritzbox 7590, and Rethinkdns isn't functioning with Wireguard. Hopefully, a fix can be found soon.

@ignoramous
Copy link
Collaborator

Rethinkdns isn't functioning with Wireguard. Hopefully, a fix can be found soon

Can you email logs if you're technical enough (see comment above on how). The ones Braintoe sent didn't help as much.

@Braintoe
Copy link
Author

Braintoe commented Mar 24, 2024 via email

@ignoramous
Copy link
Collaborator

Thanks.

while ReThink only displays the first line and seems to ignore the second one

What Rethink "displays" as in, in the UI? I'll take another look to see how we handle multiple WireGuard DNSes in Rethink.

As soon as I delete the DNS entry in ReThink and replace it with only the correct DNS entry

What's the "correct DNS entry" here? The IPs 192.168.178.199,192.168.178.1 or fritz.box?

with my setup, only the first DNS entry "192.168.178.199" is valid

Curious: If only ...199 is valid, why configure in the second one ...1? Also, what does "invalid" mean here? The endpoint (...1) doesn't exist?

@Braintoe
Copy link
Author

Braintoe commented Mar 24, 2024 via email

ignoramous referenced this issue in celzero/firestack Mar 24, 2024
ignoramous referenced this issue in celzero/firestack Mar 24, 2024
apparently a popular home network device (Fritz Box) was registered by
a malicious actor to hijack its local name ("fritz.box").
@ignoramous
Copy link
Collaborator

ReThink displays in the UI just the first DNS entry 192.168.178.199,192.168.178.1.

Will fix this. cc: @hussainmohd-a

The correct entry is 192.168.178.199 which is my Pi-Hole. For internal domains (and only for those), the Fritzbox router (192.168.178.1)

Rethink changed how it handled multiple DNS addresses in v055b, which in some cases could result in all sorts of weird issues. Fixed: celzero/firestack@d108715

with Wireguard running on the Fritzbox, it does not: whenever I try to connect to Wireguard with ReThinkDNS, the app shows me either a failure or it connects but no data comes through.

Though "no data comes through" shouldn't happen due to DNS entries. Logs would help to see if something in addition to mishandling of DNS is going on...

maybe to circumvent the issue they recently had when the ICANN allowed the domain suffix .box and some bad guy immediately registered the domain fritz.box.

Yikes. Added fritz.box to undelegated domains that will always be resolved by "System DNS": celzero/firestack@a160fee Quite a few folks (from Germany, particularly) seem to use it.

@ignoramous ignoramous added the bug Something isn't working label Mar 24, 2024
@Braintoe
Copy link
Author

Braintoe commented Mar 24, 2024 via email

@ignoramous
Copy link
Collaborator

ignoramous commented Mar 24, 2024

When it comes to the logs, I fear they won't show much more than what you could see in the log that I shared before with you before... sadly I cannot get any Wireguard logs from the Fritzbox.

Just the logs from Rethink is enough. But it is all good and all fine for now, I guess.

which then meant the browser window stayed empty

hat tip: To check if it is DNS that's messed up, try visiting https://1.1.1.1 in the browser. This simple test works nicely for us.


We'll release a new version soon, so let us know when that's out (a day or two), if it fixes up things for you.

@Braintoe
Copy link
Author

Braintoe commented Mar 25, 2024

While trying to test the DNS issue as you suggested (i.e. visiting 1.1.1.1 with "192.168.178.199,192.168.178.1" as DNS), I noticed that ReThink actually does not allow to enter more than one DNS manually - I get a popup "UNIQUE constraint failed: ProxyApplicationMapping.uid, Proxy..." if I try that.

@hussainmohd-a
Copy link
Collaborator

While trying to test the DNS issue as you suggested (i.e. visiting 1.1.1.1 with "192.168.178.199,192.168.178.1" as DNS), I noticed that ReThink actually does not allow to enter more than one DNS manually - I get a popup "UNIQUE constraint failed: ProxyApplicationMapping.uid, Proxy..." if I try that.

Fix: #1311 (comment)

@ignoramous
Copy link
Collaborator

Released in v055e. Feel free to reopen if this issue isn't fixed for you.

For connectivity drops after waking up device from sleep see:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants