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

No DNS with firewall

Open Ypot opened this issue 1 year ago • 10 comments

I can't allow an app to connect through the firewall and use DNS.

I test it, and there are fewer adds blocked with firewall+DNS, than if I am using only the DNS. Here to test: https://d3ward.github.io/toolz/adblock

Ypot avatar Mar 24 '24 09:03 Ypot

Presuming I understood your request correctly... Can you share screenshots of what you mean when you say DNS + Firewall works better than DNS-only mode at blocking ads (as tested at https://d3ward.github.io/toolz/adblock)?

This shouldn't be the case.

ignoramous avatar Mar 24 '24 23:03 ignoramous

screenshots: Just DNS running image:

Screenshot_2024-03-25-22-38-06-02_c8cbde12d3521911922be4eee6a05664

Results with just DNS running (good): Screenshot_2024-03-25-22-39-29-85_0a156e521caef1694fb53a7dad489d44 d3_adb_25_3_2024 22_38_37.json

Rethink DNS + Firewall settings: Screenshot_2024-03-25-22-40-17-54_c8cbde12d3521911922be4eee6a05664

Screenshot_2024-03-25-22-40-01-93_c8cbde12d3521911922be4eee6a05664

Results with DNS+Firewall (not good): Screenshot_2024-03-25-22-40-43-51_0a156e521caef1694fb53a7dad489d44

d3_adb_25_3_2024 22_41_25.json

Ypot avatar Mar 25 '24 22:03 Ypot

  1. Some of the domains that show up as allowed may have been added to per-app rules?
  2. Or, if any app is set to Bypass DNS & Firewall, then most domain blocks are done at connection time (that is, by the Firewall) and not resolution time (that is, not by the DNS).

ignoramous avatar Mar 25 '24 23:03 ignoramous

Hi @ignoramous

  1. Some of the domains that show up as allowed may have been added to per-app rules?

No domains manually allowed.

2. Or, if _any_ app is set to _Bypass DNS & Firewall_, then most domain blocks are done at _connection_ time (that is, by the Firewall) and not _resolution_ time (that is, _not_ by the DNS).

I am not sure if I understand it. I have set to bypass some apps, but not the Opera app, which is the brower with which I am testing the website. Is it not possible to add bypass rules to some apps, while others are using the DNS?

Ypot avatar Mar 28 '24 18:03 Ypot

Is it not possible to add bypass rules to some apps, while others are using the DNS?

It is. But the behaviour is that ALL domains are resolved as the firewall rules for domains will be applied at connection time. That is, DNS logs would show that a particular domain was allowed but may or may not have been blocked at connection time, which should show up in Network logs.


We released v055d today (GitHub and Website only; Play Store F-Droid are under review), can you see if it fixes this issue?

ignoramous avatar Apr 01 '24 21:04 ignoramous

I can't install it.

It says: the app hasn't been installed because of a conflict with a packet.

Screenshot_2024-04-02-05-03-20-97_3d73e98b1ad3bd2575f7a56513d89a0c

Ypot avatar Apr 02 '24 03:04 Ypot

It says: the app hasn't been installed because of a conflict with a packet

You likely installed the current app on your Android from F-Droid? If so, you'll have to update to the new version from F-Droid. Only Play Store, GitHub, and Website versions are interchangeably updatable with each other.

ignoramous avatar Apr 02 '24 08:04 ignoramous

Is it not possible to add bypass rules to some apps, while others are using the DNS?

It is. But the behaviour is that ALL domains are resolved as the firewall rules for domains will be applied at connection time. That is, DNS logs would show that a particular domain was allowed but may or may not have been blocked at connection time, which should show up in Network logs.

We released v055d today (GitHub and Website only; Play Store F-Droid are under review), can you see if it fixes this issue?

It works apparently, thanks!

Ypot avatar Apr 05 '24 03:04 Ypot

It's still happening. If Wireguard hides my IP, ads are not blocked. I stop Wireguard and ads are blocked again.

Ypot avatar Apr 28 '24 14:04 Ypot

Are you using WireGuard in Simple mode? If so, WireGuard DNS is then responsible for blocking domains.

ignoramous avatar Apr 28 '24 17:04 ignoramous

Yes, I am using simple mode. So, is it possible to have better DNS protection of using simple mode?

Ypot avatar May 03 '24 17:05 Ypot

So, is it possible to have better DNS protection of using simple mode?

Only with On-device blocklists (available on F-Droid and GitHub or Website builds from Configure -> DNS.

ignoramous avatar May 04 '24 14:05 ignoramous

Thanks!

Not very intuitive, but working!

Ypot avatar May 04 '24 17:05 Ypot