Panoptes logo: Linux Secure Network

Linux · systemd-resolved + NetworkManager · x86_64 and aarch64 · MIT

Linux Secure Network: private DNS, a WARP kill-switch with Proton VPN behind it, and an endpoint watch

Twenty-three field-tested command-line tools, each written after a real outage that took hours to diagnose by hand. They audit everything that can set your DNS and show where a leak could get in. They enforce DNSSEC and DNS-over-TLS, build a curl that speaks Encrypted Client Hello and switch ECH on in every browser you have. They run Cloudflare WARP with a verified kill-switch and a self-healing watchdog, and park it safely when you switch to Proton VPN. They put OpenSnitch in front of every outbound connection and osquery behind everything that persists, with a notification the moment that changes. And they investigate any address that knocks.

Fix a specific problem

Wi-Fi connected, but no internetDiagnose it layer by layer: link, routes, DNS, a leftover VPN or kill-switch, a captive portal. DNS leak test on LinuxWhich resolver is really answering under systemd-resolved, and whether DNSSEC and DoT actually work. Encrypted Client Hello on LinuxWhat ECH hides, a curl that can speak it, and switching it on in Firefox and Chromium browsers.

Why this exists

Most network trouble on a modern Linux desktop isn't a routing problem. It's a DNS problem that looks like one. Your VPN pushed its own resolver, DHCP quietly overrode the one you configured, systemd-resolved is answering from a per-link server you never chose, or a kill-switch left an nftables table behind after its daemon died.

netmaster exists because a Wi-Fi link associated fine, the LAN worked, and the internet was gone, and stayed gone across reboots. The cause was a stale VPN tun device that NetworkManager had adopted and persisted, with hundreds of static routes. warp-killswitch exists because a WARP daemon that dies, or wedges, leaves a firewall with policy DROP behind it while every indicator says "connected". proton-fallback exists because raising a second tunnel over a merely-disconnected WARP is exactly how that wedge happens. probesource exists because "who is this address and why is it knocking" deserved a better answer than four terminals of whois, dig and tcpdump.

Quick start

git clone https://github.com/doug445/Panoptes.git
cd Panoptes
sudo ./install.sh
checkdns              # resolver, WARP, mDNS and ECH status in one readout
sudo audit-dns.sh     # what controls DNS here, and where a leak could get in
netcheck              # interfaces, Wi-Fi band/bitrate, firewall, listening ports
ech-browsers.sh       # turn on Encrypted Client Hello in every browser you have
sudo warp-setup.sh    # Cloudflare WARP: repository, client, registration, kill-switch service
proton-fallback on    # park WARP and bring Proton VPN up instead (sign in once first)
persistcheck          # everything persistent or exposed right now, and what changed since last time

The installer copies the tools, installs dependencies after asking, installs the Proton VPN client and the endpoint pair (OpenSnitch, osquery) after asking, and wires the tray helpers with two pinned sudoers rules. Every installer and setup tool is idempotent: run it again and it reports unchanged. audit-dns.sh, netcheck, nettop, checkdns and dns-status.sh are strictly read-only; everything that writes takes --dry-run.

The tools

AreaToolsWhat they do
DNSaudit-dns.sh, harden-dns.sh, checkdns, dns-toggle, dns-status.sh, dns-trayRead-only audit of everything that can set DNS. Idempotent DNSSEC and DNS-over-TLS hardening, with --dry-run, that restores the chattr +i lock on every exit path. One-screen resolver status. A tray toggle between two encrypted resolvers, AdGuard and Cloudflare 1.1.1.2.
Tunnelwarp-setup.sh, warp-killswitch, proton-setup.sh, proton-fallback, warp-trayCloudflare WARP set up in tunnel-only mode. A kill-switch that tears WARP down to nothing and proves plain internet works, rebuilds it with a verified tunnel or rolls back, heals a dead tunnel from a watchdog, and parks the stack so Proton VPN can take the network without wedging it. The official Proton VPN client installed from Proton's repository with the signing key pinned; proton-fallback drives it. One tray icon for all of it: green W, red W, orange W parked, yellow circle with a black P for Proton VPN.
Endpointendpoint-setup.sh, persistcheck, persistwatchThe Linux counterpart of LuLu, KnockKnock and BlockBlock. OpenSnitch asks before any program's first outbound connection, with the suite's own daemons pre-approved. osquery, from its own repository with the key pinned, runs a persistence pack: units in admin paths, cron, autostart, kernel modules, SSH keys, sudoers, setuid binaries, exposed listeners, deleted-binary processes, hook-file hashes. persistcheck lists it all with what changed since last time; persistwatch notifies the moment a row appears.
ECHech-build.sh, ech-browsers.shBuilds an ECH-capable curl into its own prefix, statically, so no other program picks up the development TLS stack, and verifies it with a real --ech hard handshake. Enables ECH and the secure DNS it needs in every Firefox- and Chromium-family browser, native, Flatpak or Snap, and restores your previous settings on --revert. Never touches Tor Browser or Mullvad Browser.
Watchnetwatch, nettop, netcheck, probesourceDesktop alerts for firewalld drops, new inbound connections and a gateway whose identity changes on the same network. LAN and WAN hosts with vendors. A full interface, Wi-Fi, firewall and listening-port readout. Investigation of any address, passive first.
Repairnetmaster, wifi-recover.sh, panoptes-deps.shThe master network repair tool: diagnose, a repair ladder that stops when the internet is back, captive-portal mode and its exact reversal, panic and undo with a journal that replays in reverse. Wi-Fi diagnosis that changes nothing unless you pass --repair. A dependency resolver that knows dnf, apt, pacman, zypper and apk.

probesource's passive tactics send nothing to the target. Its active tactics are for hosts and networks you own or are authorised to test. OpenSnitch will ask about the suite's own probes once each; allow them.

Audited, in the open

3.0.0 shipped after a full adversarial audit of every file by four independent reviewers: 47 defects found and fixed, 20 of them rated high, every one published with its severity in the README and the changelog. The rules it produced, from "every dry run is dry" to "passwordless sudo rules are pinned and visudo-checked", are kept in SECURITY.md and bind every future change.

FAQ

Which Linux distributions does Panoptes support?

It is built and used daily on Fedora and a Linux Mint MATE stick, and exercised on Manjaro, EndeavourOS, Debian/Ubuntu and Fedora Asahi Remix on Apple Silicon. Anything running systemd-resolved and NetworkManager is in scope, on x86_64 and aarch64; its dependency installer understands dnf, apt, pacman, zypper and apk.

Will installing it change my system?

The installer copies tools, installs dependencies after asking, installs the Proton VPN client and the endpoint pair (OpenSnitch, osquery) after asking, and writes two pinned sudoers rules for the tray helpers. The only services it enables are the WARP watchdog (when WARP is installed), opensnitch, osqueryd and persistwatch. audit-dns.sh, netcheck, nettop, checkdns and dns-status.sh are strictly read-only; everything that writes supports --dry-run.

Can I run Proton VPN and Cloudflare WARP on the same machine?

Not at the same time: when another tunnel takes the network, a merely-disconnected WARP daemon wedges with its lockdown firewall still loaded and the machine goes dark. proton-fallback parks the WARP stack first (daemon stopped, DNS kept, watchdog standing by), connects Proton VPN, and rebuilds WARP when Proton VPN disconnects. The tray shows the same thing: orange W for parked, a yellow circle with a black P for Proton VPN on.

Is there anything like LuLu, KnockKnock and BlockBlock for Linux?

Yes: the suite's endpoint component. OpenSnitch is the per-application outbound firewall with prompts. osquery with the suite's persistence pack gives the other two: persistcheck lists everything persistent or exposed and what changed since you last looked, and persistwatch raises a desktop notification when a new unit, cron entry, autostart item, kernel module, SSH key, sudoers rule, listener or changed hook file appears.

Why does turning Cloudflare WARP off make my browser think it is offline?

DNS lookups in flight at that moment fail DNSSEC validation because their transport disappeared mid-chain, and systemd-resolved caches the failures. resolvectl flush-caches clears them; every tunnel transition in the suite flushes for you. FallbackDNS= does not help: it is only used when DNS= is empty.

Does it touch Tor Browser or Mullvad Browser?

No. ech-browsers.sh never touches them: they resolve through their proxy circuit on purpose, and pointing them at a DoH resolver would send lookups around it.

On a Mac? The macOS counterpart is Panoptes-macOS: the same watchman on networksetup, scutil, pf and launchd, with the same ProtonVPN-parks-WARP logic and the Objective-See tools this suite's endpoint component mirrors.