blokadaorg / blokada

The official repo for Blokada apps.
https://blokada.org
3.05k stars 215 forks source link

Blokada blocks installed app despite being whitelisted #593

Open ToaToaToaster opened 4 years ago

ToaToaToaster commented 4 years ago

Steps to reproduce

  1. Install UserLAnd from Play Store
  2. Whitelist UserLAnd in Blokada
  3. Start UserLAnd, select Ubuntu, give it the permissions requested, enter name and passwords, and select VNC

Expected behaviour

UserLAnd should now download some assets.

Actual behaviour

UserLAnd keeps downloading for a long time, always displaying "0 out of 2 complete", without actually downloading anything. After some minutes, an error message is displayed.

The same behavior can be observed when the ad blocker and Tunnel are deactivated completely and only DNS is active, or when only the ad blocker is active and DNS and Tunnel are off. Only when deactivating Blokada entirely, i.e. all three modules, then UserLAnd proceeds to download its assets as expected. It seems Blokada has blocking functionality beyond that of ad blocking, DNS and Tunnel.

Configuration

  1. Blokada version blokada/4.4.4 (android-28 full official arm64-v8a samsung-starlte touch api compatible)

  2. Device model Galaxy S9, model SM-G960F

  3. Android version / ROM 9

Questions

  1. How long have you been using Blokada? about half a year

  2. How long time ago has the problem started to happen? when having started using UserLAnd about 2 months ago

  3. How often does this problem happen to you? each time a fresh Ubuntu is needed

peterroth commented 4 years ago

Thanks for the report. Can you check in Host Log if you see which hosts are being blocked when UserLAnd tries to download assets? Can you check if the same issue happens after you restart Blokada?

ToaToaToaster commented 4 years ago

When UserLAnd tries to download the assets, Host Log does not show additional hosts. The same issue happens after having restarted the device.

peterroth commented 4 years ago

In the meantime we had a few similar issues. The solution was to kill and restart Blokada, which, of course, will restart the VPN tunnel as well. Can you try it once you run into the same issue? I would like to see if it works in every case, because maybe there should be an option to force-restart the tunnel.

ToaToaToaster commented 4 years ago

In response to your request, I did various things and now the problem has gone. Among other things, in the ad blocker settings, I manually started a filter list download because there was an error message pointing to an unsuccessful filter download. I also noticed that the filter counter stated there are about 600,000 rules, and up to 20,000 rules fit into the device memory (after the download, more than 900,000 rules do fit). Now UserLAnd performs the asset download without any problem. Unfortunately, I cannot say for sure that it was the filter list download that resolved the issue. When reporting this issue a month ago, I made many tests without seeing this error message, and the problem occurred irrespective of whatever I tried (e.g. whitelisting UserLAnd). Now, I cannot reproduce the issue anymore, which of course also means that I cannot do the kill/restart test you asked for.

cm-mc commented 4 years ago

This seems similar to issue #633, just that I can't dl hosts lists manually, because of issue #632.

And96 commented 4 years ago

Similar problem for me. While VPN is on, some download does not work. Example:

When I switch off blokada, download start again and it works fine.

No log, nothing blocked, same problem also with others VPN. It may be an Android issue and not directly related to blokada.