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

Feature: on-device blocklist backup #1684

Open XingShelly opened 2 months ago

XingShelly commented 2 months ago

Recently, I decided to try and delete, rethink and reinstall it again, maybe an issue would get solved (t did not). I thought if I just created a backup and restore it, it would just restore everything.

I noticed that the proxy list and the chosen block list I had in the previous installation were not ported to the new one.

As for the proxey list, I have seen in previous issues that the proxy lists are encrypted with an on-device encryption key and they're not easily portable. However, This was still on the same device and yet it did not work. Also, if used with a password, it should not be an issue, right?

On the other hand, the block lists I have downloaded and handpicked were not backed up as well. I wish if there was an option that would back them up altogether along with the chosen lists.

ignoramous commented 2 months ago

noticed that the proxy list and the chosen block list I had in the previous installation were not ported to the new one

Yeah, we need to impl this. Unfortunately, it is slightly complicated to restore proxies (and not just due to encryption). Track at:

the block lists I have downloaded and handpicked were not backed up as well

Yikes. The blocklist selection is backed-up, but may be lost in the restore process. We'll check

XingShelly commented 1 month ago

Just to be clear what I mean when I say block lists. I mean the ones that you can access from the "DNS" tab and then you have to download and manually pick which ones you want. Those are the ones I am talking about, not the rules in the firewall tab. I don't know if the ones in the DNS tab are also supposed to be backed up or not, but they were not for me. Whether it's a bug or a feature, I really hope in the future that we would be able to back up the ones in the DNS ten as well.