Hi everyone,
First, a clear disclaimer: This is an independent, Whonix-inspired open-source hobby project and not an official Whonix derivative.
I wanted to share a project I have been working on and would greatly appreciate technical feedback or a security review from this community.
Motivation & Concept
I love the Whonix Gateway architecture, but I wanted to explore building a minimal, 100% systemd-free Tor Gateway tailored for older or resource-constrained hardware (runs smoothly with 512 MB RAM, ~250–300 MB idle footprint, ~6 GB core disk size). It is built on top of antiX Linux (Debian Trixie base) using SysVinit/runit and IceWM.
Key Architectural Highlights
- Fail-Closed Firewall & eBPF/XDP: Uses an
xdp-filtershield oneth0combined with a strict fail-closednftablesruleset (forward drop, zeroMASQUERADENAT). All Workstation traffic oneth1is forced in kernel-space into Tor’sTransPort(9040) andDNSPort(5353). - Strict UID Service Isolation: Desktop sessions (
user, UID1000) and root shells are blocked from direct WAN access vianftables(meta skuid). Only dedicated system users (debian-tor/ UID107andi2pd/ UID105) are permitted to initiate outbound traffic oneth0. - Automated Censorship Circumvention (Snowflake Auto-Fallback): Upon login via Slimski PAM and
dhcpcdhooks, Tor attempts a direct bootstrap first. If blocked, it automatically switches to Snowflake (using Mozilla and Freifunk STUN servers, zero Google dependencies). - Optional Parallel I2P Routing (
i2pd): Includes a lightweight C++i2pddaemon (~35 MB RAM) toggleable via a custom YAD control panel, exposing isolated HTTP (4444) and SOCKS5 (4447) proxies exclusively toeth1. - Kernel & OPSEC Hardening: Includes
page_poison=1 slub_debug=P,libpam-tmpdir,libpam-pwquality, disabled USB mass-storage auto-mounting, Lynis auditing, and an emergency desktop kill-switch that physically brings downeth0/eth1, force-kills crypto daemons (SIGKILL), flushes caches, and triggerspoweroff -f.
Known Minor UI Quirks
- Since the focus of this release was primarily on kernel hardening and network isolation, there are still a few minor cosmetic flaws in the custom IceWM theme—such as missing window titlebar icons for close, minimize, and maximize (standard keyboard shortcuts like
Alt+F4orEscwork normally, and the visual polish will be addressed in a future update).
Links & Transparency
- GitHub Repository & Open Configs: AntiNix-Panzer-Gateway/README.md at main · Boxenknacker/AntiNix-Panzer-Gateway · GitHub
Specific Questions for Review
- Do you see any potential edge-case leak vectors in combining
xdp-filteroneth0withmeta skuid-basednftablesoutput filtering andpreroutingredirect rules oneth1? - Are there any subtle pitfalls with running
i2pdalongside Tor’s transparent proxy when isolating ports4444/4447viareturnrules in the NAT table?
Thanks in advance for any constructive criticism or hardening suggestions!
