rethink-app icon indicating copy to clipboard operation
rethink-app copied to clipboard

v0.5.5t (f-droid) Error in IP server name mapping after correct DNS resolution leads to firewall malfunction

Open user4andre opened this issue 1 month ago • 8 comments

My observation: The FOSS Warn app retrieves map data. This data is incorrectly blocked.

The log shows that the IP address query (name to IP) is correct. Image

When processed in the firewall, this IP is assigned a different server name (used by another app).

Due to a naming rule, the connection is then incorrectly blocked. Image

For DNS Settings, refer to: https://github.com/celzero/rethink-app/issues/2441

user4andre avatar Dec 07 '25 18:12 user4andre

What Android version are you on?

Enable Configure -> DNS -> Split DNS (if it isn't enabled already) and see if things are better?

When processed in the firewall, this IP is assigned a different server name (used by another app). Due to a naming rule

This domain name rule, is it set globally in Configure -> Firewall -> IP & Port rules -> Domain rules? If so, Rethink is acting being over cautious since more than 1 domain names map to the same IP, and one of those domains has been blocked globally.

ignoramous avatar Dec 07 '25 18:12 ignoramous

The error only occurred sporadically. But for now, enabling Configure -> DNS -> Split DNS seems to have helped.

screenshot Image

Thank you!

user4andre avatar Dec 07 '25 19:12 user4andre

This domain name rule, is it set globally in Configure -> Firewall -> IP & Port rules -> Domain rules?

It is blocked for the browser app. (Not by name for FOSS Warn app. But FOSS Warn is isolated and the firefox domain is not permitted.) It is not blocked globally.

The server seams to be owned by Fastly. https://www.findip-address.com/146.75.117.91

And you are right: The IP is shared. https://www.netify.ai/resources/hostnames/firefox.settings.services.mozilla.com

user4andre avatar Dec 07 '25 19:12 user4andre

It is blocked for the browser app. (Not by name for FOSS Warn app. But FOSS Warn is isolated and the firefox domain is not permitted.) It is not blocked globally

OK, applying an app's domain block rule to another app which is Isolated but setup to allow the domain/IP ... sounds like a severe bug.

Can you tap on those blocked FOSS Warn entries (these have red-coloured left-hand side border) which show the technically wrong firefox.com domain name? A bottomsheet should come up with more information about the connection, including the footer with a message from the network engine and the top right-hand corner chip showing a label denoting the reason this connection was blocked.

ignoramous avatar Dec 07 '25 21:12 ignoramous

Sorry I tried to go back to last stable v0.5.5n without success. After importing the settings stored from the newer app-version the app crashes at start. All logs are now deleted.

I think about going back and editing all settings new by hand. But therefore I need more time than I have at the moment.

user4andre avatar Dec 08 '25 08:12 user4andre

(1 day later again) still v0.5.5t: Image Image Image

For DNS settings reference: https://github.com/celzero/rethink-app/issues/2441 (same date)

user4andre avatar Dec 09 '25 16:12 user4andre

As mentioned in the previous comment, due to IP sharing among various domains, Rethink is reluctant to allow this particular request (as the other domain is not in the allowlist for the Isolated app "FOSS Warn").

We'll revisit and think on it again whether Rethink should allow such requests (to shared IPs) if any ONE domain is in the allowlist of an Isolated app...

ignoramous avatar Dec 09 '25 18:12 ignoramous

2 more screenshots that may help you: Image Image

Others (requested by ironfox) although allowed for ironfox only.

user4andre avatar Dec 09 '25 18:12 user4andre

Gotcha. We have improved how the firewall maps domains to IPs (shared between different domains) for Android 12+. It will ship in v055v, the upcoming version.

ignoramous avatar Dec 14 '25 01:12 ignoramous