celzero / rethink-app

DNS over HTTPS / DNS over Tor / DNSCrypt client, WireGuard proxifier, firewall, and connection tracker for Android.
https://rethinkfirewall.com/
Apache License 2.0
2.95k stars 148 forks source link

Internet blocked when using hotspot of another phone #477

Open Gissyup4 opened 2 years ago

Gissyup4 commented 2 years ago

Using version 053h on android 9. When I connect to the internet through another phone's hotspot, everything gets blocked. The only things I've found to work are to pause or stop the app.

I have experienced this problem when trying to use the hotspot of various phones. I do not have these problems at all when connecting to a normal wifi connection.

ignoramous commented 2 years ago

Thanks for the bug report. If you're technical enough, you may answer these (if not, feel free to ignore):

  1. Does the hotspot expose an ipv6-only gateway?

  2. Is there a mismatch in MTUs (maximum transmission unit)? RethinkDNS app presets it to 1500. If the target network has MTU any lower than 1500, then I can see why one'd face connectivity issues (though, I'd imagine TCP recovers, but who knows).

Gissyup4 commented 2 years ago

Thanks for the bug report. If you're technical enough, you may answer these (if not, feel free to ignore):

  1. Does the hotspot expose an ipv6-only gateway?
  2. Is there a mismatch in MTUs (maximum transmission unit)? RethinkDNS app presets it to 1500. If the target network has MTU any lower than 1500, then I can see why one'd face connectivity issues (though, I'd imagine TCP recovers, but who knows).

The following was done while I had the app in pause and I was connected to a phone hotspot.

I went to an ipv6 test website and it said the connection I'm using does have IPv6. https://test-ipv6.com/

I also downloaded a terminal emulator and after entering ifconfig, I saw within wlan0 that there is an MTU of 1500.

Gissyup4 commented 2 years ago

For some odd reason, I am able to use the hotspot WiFi without having to use pause or stop now.

I see the same MTU value under wlan0, but when I go to the same site to test IPv6, it fails with these results

Test with IPv4 DNS record |   | ok (1.417s) using ipv4
-- | -- | --
Test with IPv6 DNS record |   | bad (0.019s)
Test with Dual Stack DNS record |   | ok (1.555s) using ipv4
Test for Dual Stack DNS and large packet |   | ok (1.619s) using ipv4
Test IPv6 large packet |   | bad (0.016s)
Test if your ISP's DNS server uses IPv6 |   | ok (1.825s) using ipv4
Find IPv4 Service Provider |   | ok (1.241s) using ipv4 ASN 21928
Find IPv6 Service Provider |   | bad (0.030s)
ignoramous commented 2 years ago

IPv6 isn't supported in any of the released versions as of today. It is in the upcoming version v053i(due launch anyday now) #380

ignoramous commented 2 years ago

v053i is a-go (download from the website for now, build/upload requests submitted to F-Droid and Play, should be available in 5 days or so).

Can you check if your hotspot now works (as RDNS supports IPv6 now, unless disabled explicitly).