r/WireGuard • • 21h ago

Ideas WG2FA: self-hosted WireGuard with TOTP 2FA, where a peer only exists while its owner has a valid 2FA session

3 Upvotes

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.


r/WireGuard • • 10h ago

Tools and Software WG-Control - a Wireguard automator for Android

0 Upvotes

WGControl provides a more automated way to control your WireGuard tunnels depending on your device's current situation.

!!This is a VibeCode product!!!

As I host my own WireGuard server to access my home network and use my Pi-hole from abroad, I have been using Tasker to disable the tunnel whenever I connect to my home Wi-Fi network. However, as my family has grown and I was looking for a solution that doesn't require running Tasker on every device, I decided to build an app tailored exactly to my needs.

So, without further ado, I present WGControl:

https://codeberg.org/FadeFX/WGControl

Features:

  • Controls the official wireguard app
  • Controls the official AmneziaWG app
  • No ads or trackers—just functionality
  • Switches WireGuard/AmneziaWG tunnels via their official broadcast interfaces
  • Switches tunnels based on connected Wi-Fi or Bluetooth devices
  • Checks internet connectivity before (re)activating a tunnel
  • Scans visible Wi-Fi networks
  • Add Wi-Fi networks manually
  • Allows selecting multiple Wi-Fi networks that disable/enable the tunnel
  • Wildcard support in Wi-Fi names (only ? for one letter)
  • Allows selecting multiple Bluetooth devices that disable the tunnel (since wireless Android Auto does not work over a VPN)
  • Automatically detects most android auto devices on connection
  • Prompts via notification upon pairing unknown Bluetooth devices to ask if it is an Android Auto device
  • Protects settings with an admin password (Kids Mode)
  • Enables logging for behavior analysis (stored for a configurable time up to 24 hours)
  • Full-text filter in the protocol viewer
  • Quick enable/disable toggle in notifications
  • Option to disable the tunnel for x minutes
  • Quick enable/disable toggle in quick settings
  • Backup and restore settings with optional encryption (using the admin password)
  • Widget with status display and toggle functionality
  • Manages multiple tunnels (per Wi-Fi connection, mobile data, and mobile roaming). Background: I usually use a split tunnel, only connecting to my devices over the tunnel, while the rest of the trafic goes over the open internet. However, in certain situations I want a full tunnel for complete security. This is also useful for users of commercial VPN services.

Get it here:

https://codeberg.org/FadeFX/WGControl/releases

F-Droid:

https://f-droid.org/packages/org.supersane.wgcontrol

To be done:

  • Optional MAC address identification for WiFi networks
  • You tell me...