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.99k stars 152 forks source link

Support per-SSID DNS types #1130

Open tlvince opened 1 year ago

tlvince commented 1 year ago

Would you consider adding support to change the DNS type (system, other, Rethink) based on the the Wi-Fi SSID?

One use case might be to use the system DNS when connected to the home network. Alternatively, this could be configured on the "protection mode" level to disable Rethink's DNS handling (per SSID), but keep other features enabled (e.g. firewall).

NextDNS supports excluding Wi-Fi networks ("Wi-Fi networks (SSID) on which NextDNS is disabled"), at least on Apple profiles, which can be used to achieve this.

image

Related to #445 and #1103.

ignoramous commented 1 year ago

Would you consider adding support to change the DNS type (system, other, Rethink) based on the the Wi-Fi SSID?

SSID requires location permission, and so we've not prioritized adding this feature. It is something that's do-able, because all of the code (except for asking for permission) is already there.

tlvince commented 1 year ago

Ah, that's a shame. Is the permission a one-time requirement? I almost exclusively have location disabled.

ignoramous commented 1 year ago

Ah, that's a shame. Is the permission a one-time requirement?

On Android 8+ (ref), "location" permission has to be granted to apps fetching SSIDs (I don't think GPS has to be switched ON).

Dyras commented 7 months ago

Any hope of this getting prioritized?

I've been using WG Tunnel for Wireguard, but I would much prefer using Rethink instead for a multitude of reasons. Not being able to opt-out of using a VPN/DNS on my WiFi at home is the one show-stopper really. I don't think I'm alone in that either.

ignoramous commented 7 months ago

Not being able to opt-out of using a VPN/DNS on my WiFi at home is the one show-stopper really. I don't think I'm alone in that either.

Don't see how this request matches "per SSID DNS"? Or, you mean, "use System DNS" when at Home and some other DNS on the road?

Any hope of this getting prioritized?

The only reason we aren't working on this is, accessing SSID requires the Location permission.

Dyras commented 7 months ago

I meant system DNS/no VPN at home and some other DNS/VPN while on the road :)

Yeah I get it, would still be a nice feature though!

gitrazor9512 commented 4 days ago

I need this feature as well.

Can you implement it this way: Set customizable primary and secondary dns, when primary dns can't be reached switch to secondary dns, when primary dns is back online switch back to primary dns.

Just like AdGuard Home's 'Fallback DNS servers': Screenshot 2024-11-06 082138