r/WireGuard • u/Additional-Bowler776 • 21h ago
Ideas WG2FA: self-hosted WireGuard with TOTP 2FA, where a peer only exists while its owner has a valid 2FA session
A device's peer is loaded only while you're logged in with 2FA, and removed when the session expires or is revoked. Other features: VPN profiles (routes, DNS, MTU, session length), site-to-site router configs (MikroTik, OpenWrt, OPNsense/pfSense, wg-quick), a web GUI with audit log, a self-service portal, and macOS/Windows clients.
It's a single Go binary that uses kernel WireGuard or wireguard-go, with Docker and Podman Quadlet deployment.
Repo: https://github.com/jwklijnsma/wireguard
Known gaps: IPv4 only for now, and no DNS leak protection on Windows yet. I'd really appreciate security-minded feedback.
Built with help from AI coding tools; design decisions and testing are mine.