Travel Mode
A Linux-first, open-source alternative to TripMode: a root daemon, CLI, and GTK4/libadwaita desktop app that show which applications are using the network and let you block any of them, live, down to the packet.
Metered tethering and data caps are the everyday trigger: knowing that Steam or a backup client is quietly saturating a hotspot, and being able to shut it off without killing the app or firewalling the whole machine.
Overview
GoalPer-application network control on Linux: see who's using the connection, how much data they're moving, and block any of them with a single command.
InspirationTripMode, a macOS/Windows-only app that does exactly this. Nothing equivalent existed for Linux, so I built one.
Architecture
Travel Mode is written in Rust and split into three parts: a background service that runs as root, a command-line tool, and a desktop app. Only the service touches the network. The other two just ask it questions and send it requests, so there’s one source of truth and nothing to fall out of sync.
The serviceOwns everything: which network you're on, how much each connection is moving, which app owns it, the rules, and the firewall.
The CLIStatus, live usage, and block or allow, with JSON output for scripting.
The desktop appA GNOME-style app with a tray icon. It shows what the service reports and has no networking logic of its own.
Blocking happens in the Linux firewall. Each new outbound connection is held for a moment while the service works out which app it came from, then dropped if that app is blocked.
Everything is designed to fail open: if filtering can’t be set up, traffic just flows and the app says filtering is off. A tool that sits between you and the internet has to earn trust, and the worst outcome is it silently breaking your connection while you’re tethered somewhere.
Development highlights
Kill-on-blockThe first version only stopped new connections, so a download already running kept going after you blocked it. Now blocking also cuts the app's open connections, which is what people actually expect the switch to mean.
Best-effort attributionTraffic is matched to an app by looking at which process owns each connection. Anything that can't be matched shows as unknown and is left alone, rather than risk blocking the wrong thing.
Switches that stay putA slow reply from the service could flick a toggle back mid-click. The app now holds your choice until the service confirms it.
Chasing a rendering bugStray bits of text from other pages kept appearing on screen. I traced it to a bug in the graphics toolkit's renderer on my hardware, not my code, and worked around it.
Result & impact
In daily usePhase 2 (daemon, CLI, and GUI end to end) is complete and is what I actually run day to day on tethered and metered connections.
What's nextUsage history and per-app data limits, then automatic profile switching so home Wi-Fi and a phone hotspot can carry different rule sets without touching anything by hand.
The bigger draw was the systems side rather than the UI: designing something that sits directly in the Linux firewall, has to reason correctly about connections the kernel is tracking and what happens under every failure, and still stays boring and predictable enough to trust running as root on a machine I use every day.