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.62k stars 133 forks source link

Import & Export pi-hole teleport backups #873

Open yoshimo opened 1 year ago

yoshimo commented 1 year ago

https://pi-hole.net/ itself acts as a dns based filter for devices on your network and can handle block lists in hosts format and limited adblockplus style parsing. Would be nice if you could import and export white and blocklist hosts in the pihole format.

ignoramous commented 1 year ago

Thanks. Where is the pihole format formally defined?

yoshimo commented 1 year ago

https://github.com/pi-hole/AdminLTE/blob/d7f1842825e33abe098a9383672b63d6d56dfd0f/scripts/pi-hole/php/teleporter.php i guess.

These settings are saved in a tar.gz archive and contains

adlist.json
blacklist.exact.json
blacklist.regex.json
whitelist.exact.json
whitelist.regex.json
ignoramous commented 1 year ago

If you're comfortable, can you upload samples for those .json files? It is okay if you can't, no pressure.

yoshimo commented 1 year ago

pi-hole-raspberrypi-teleporter_2023-05-02_19-26-27.zip