Description
Wag adds multi-factor authentication, route restrictions and device enrolment to WireGuard. You define routes that require MFA before they can be reached, and routes that are always accessible without it. New clients are registered through an API, and the README lists high availability, real-time user updates and notifications, and several MFA options: security keys, SSO, PAM and TOTP. Administration happens in a web UI, where the server creates the first admin account on startup and prints its password to standard output, and in a command-line tool for starting the server and managing registration tokens, devices, users and web admin accounts. Wag must run as root because it manages iptables and the WireGuard device, and forwarding has to be enabled in sysctl with iptables and libpam installed. Setup can use Docker Compose, with a configuration file placed in /cfg, or a manual install from a binary release that needs glibc 2.31 or later, or a build from source with Go 1.23.1 and npm. The manual guide includes a systemd service file. The source is public on GitHub.…
Highlights
- MFA in front of WireGuard routes
- Public routes that need no MFA
- Security key, SSO, PAM and TOTP options
- Web admin UI and command-line tool
- Docker Compose or manual install
Ratings & Reviews
No ratings yet
Be the first to rate Wag.
People also visit
Wag FAQ
What does Wag add to WireGuard?
Multi-factor authentication, route restrictions and device enrolment. You choose which routes need MFA and which stay public.
Which MFA methods are supported?
The README lists security keys, SSO, PAM and TOTP.
What does it need to run?
Forwarding enabled in sysctl, iptables and libpam installed, and the process running as root, because Wag manages iptables and the WireGuard device.
How do I create the first admin?
Start the server. The README says it creates the first admin user and prints the password to standard output, and you then log in to the web UI to manage users.
What are the best Wag alternatives?
Popular alternatives to Wag include WGDashboard, WG Manager and WG Easy. See all Wag alternatives

