celzero /rethink-app
DNS over HTTPS / DNS over Tor / DNSCrypt client, WireGuard proxifier, firewall, and connection tracker for Android.
★ 5,917⑂ 381👁 62⑃ 652● 2,318▤ 46
+4
日增长
5,917
stars
381
forks
62
watchers
652
prs
2,318
issues
46
releases
README
Rethink DNS + Firewall + VPN for Android
A multi-hop WireGuard client, an OpenSnitch-inspired firewall and network monitor + a pi-hole-inspired DNS over HTTPS (DoH), Oblivious DoH, DNS over TLS (DoT), DNSCrypt client with blocklists.
Release certificate SHA-256 digests:
Prod flavour on the Play Store & Website: 1f32d432e81a1dc5c00aafeb0c6636cd7819965d174420e59db9675dff7a88e9.
Izzy flavour: 80e15f1ed5a1ec512c51E14aa29b18c7befe13c1acb6cfec4b87bd31d171fe7f.
Alpha flavour on GitHub: 014da2d3c66439105d1238f3bcf5705d63a7ce2da2f54005f72066cf8717bbbf.
In other words, Rethink DNS + Firewall + VPN has three primary modes, VPN, DNS, and Firewall. The VPN (proxifier) mode supports multiple WireGuard upstreams in a split-tunnel configuration. The DNS mode routes all DNS traffic generated by apps to _any_ user-chosen DNS-over-HTTPS / Oblivious DNS-over-HTTPS / DNS-over-TLS / DNSCrypt resolver, or to WireGuard-configured DNS in a split-tunnel configuration. The Firewall mode lets the user deny internet-access to entire applications based on events like screen-on / screen-off, app-foreground / app-background, unmetered-connection / metered-connection; or based on play-store defined categories like Social, Games, Utility, Productivity; or additionally, based on user-defined domain & IP denylists.
!2
!3
!4
!5
screenshots from v055e.
VPN / Proxifier
Rethink supports forwarding TCP & UDP over SOCKS5, HTTP CONNECT, and WireGuard tunnels. Split-tunneling further helps run multiple such tunnels at the same time and lets users route different apps over different tunnels. For example, one could route Firefox over SOCKS5 connecting to Tor, Netflix over WireGuard connecting through any popular VPN provider, and Telegram or WhatsApp over censorship-resistant HTTP CONNECT endpoints at the same time.
Firewall
The firewall doesn't really care about the connections per se rather what's making those connections. This is different from the traditional firewalls but in-line with Little Snitch, LuLu, Glasswire and others.
Currently, per-app connection mapping is implemented by capturing udp and tcp flows managed by firestack (written in Go) and asking ConnectivityService for the owner, an API available only on Android 10+. procfs (/proc/net/tcp and /proc/net/udp) is read on-demand to track per-app connections like NetGuard or OpenSnitch do, on Android 9 & below.
Network Monitor
A network monitor is a per-app report-card of sorts on when connections were made, how many were made, and to where. Tracking UDP / TCP (and DNS on Android 12+) is straight-forward. DNS requests are trickier to track on Android 11 & below, and so a rough heuristic is used for now, which may not hold good in all cases.
DNS over HTTPS client
Almost all of the network related code (firestack), including DNS over HTTPS split-tunnel, is a hard fork of Jigsaw-Code/outline-go-tun2socks written in golang. The UI is vastly different but borrows minimally from Jigsaw-Code/Intra. A splitTop issues
#2902v055y: Simple mode WireGuard leaks IP?36 comments · 2026-07-17#2539v055u/w: Do not disallow global / user preferred DNS when WireGuard is in Simple mode34 comments · 2026-02-09#1047Integrate Tailscale32 comments · 2023-09-08#1115Trouble with Push Notifications when Advanced DNS filtering is ON28 comments · 2023-10-16#962Root cause `PR_TAGGED_ADDR_ENABLE` failures on Pixels 26 comments · 2023-08-02#2070Wireguard DNS Problems23 comments · 2025-08-14#2029Rethink in work profile, not connecting14 comments · 2025-08-09#1253IPv6 not preferred 21 comments · 2024-03-08
Discussions
#3258Why "Do not route private IPs" is greyed out?0 comments · 2026-11-10#3246App specific VPN1 comments · 2026-10-28#3234Various questions on the use of Orbot, Kill Switch and proxy0 comments · 2026-10-25#3201On-device blocklists disappear in v0.5.81 comments · 2026-10-17#3191[Request] Openly describe your AI/LLMs usage2 comments · 2026-10-15#3179DNS inconsistencies causes unwanted blocking3 comments · 2026-10-11#3168Google Play tries to "update" my F-Droid v0.5.7 app to v0.5.61 comments · 2026-10-05#3166Will the app detect before an app leaves the foreground and stop routing or only after it is already in background?1 comments · 2026-10-05
Latest release
v0.5.8 v0.5.8 2026-10-13🌍 Lok 3 - _New_: Tasker/Macrodroid intents to automate start, stop, pause, resume Advanced mode WireGuards. - _New_: Configure - Settings - Packet capture auto-turn off, auto-truncation, and manual delete option for .pcap captures. - _New_: Configure - DNS - Use System DNS on Captive Portals to only use System DNS to get past captive portals auth. - _New_: IzzyOnDroid flavour with a different package name (com.celzero.bravedns.izzy) to F-Droid (com.celzero.bravedns). - _Improvement_: Reduced power use. Down from 5% - 10% to 2% to 3% in our tests. - _Improvement_: Quick setting to bypas