tpt-w-netguard

Rust

Open-source GlassWire alternative: real-time per-app bandwidth monitoring, historical usage, and one-click firewall blocking. Rust core (WFP/ETW on Windows, nftables/eBPF on Linux) + Tauri UI. Windows & Linux for v1; Archon support planned.

0 stars0 forks0 watchersApache License 2.0

Languages

Rust83.4%TypeScript14.1%CSS1.7%Python0.4%HTML0.2%Shell0.2%
README

tpt-netguard

License: MIT OR Apache-2.0 CI

A visual, easy-to-understand network activity monitor and firewall — an open-source alternative to GlassWire. Real-time per-app bandwidth, persistent history, one-click per-app allow/block, and a panic-button "block all internet" toggle.

Built by TPT Solutions. Targets Windows and Linux for v1. See spec.txt for the concept and todo.md for the roadmap and current status.

Layout

Crate / dirPurpose
core/Traffic model, TrafficMonitor / FirewallBackend traits, aggregation, sampling policy, SQLite history store
platform-windows/Windows backend (ETW + IP Helper monitoring, WFP ALE enforcement) — not yet implemented
platform-linux/Linux backend (/proc attribution, nftables + eBPF enforcement) — not yet implemented
geoip/Offline GeoLite2-City loader and updater — not yet implemented
dns/App-scoped DoH/DoT resolver — not yet implemented

Building

Requirements:

  • Rust toolchain. rust-toolchain.toml pins the version and components; rustup installs it automatically on first use.
  • A C toolchain for the bundled SQLite build: MSVC Build Tools on Windows, gcc/clang on Linux.
cargo build --workspace
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --all -- --check

Licensing

tpt-netguard is dual-licensed under either of

at your option.

Source file headers

Every source file starts with an SPDX identifier line:

// SPDX-License-Identifier: MIT OR Apache-2.0

Use the comment syntax of the file type (# for TOML/YAML/shell, // for Rust/TypeScript). Copyright notices are carried by the LICENSE-* files rather than repeated per file.

Third-party data

Geo-IP lookups use the MaxMind GeoLite2-City database, which requires a free license key and attribution. See the Phase 7 and Phase 15 items in todo.md.