gitmyhub

wtui

Rust ★ 0 updated 5mo ago

A WireGuard client TUI

wtui is a terminal menu for managing WireGuard VPN connections, connect, disconnect, and inspect connections with arrow keys instead of typing commands.

RustWireGuardsetup: moderatecomplexity 2/5

wtui Explanation

This is a terminal-based application that makes it easier to manage WireGuard VPN connections on your computer. Instead of typing command-line commands to connect or disconnect from a VPN, you can use a simple menu-driven interface where you navigate with arrow keys and press letters to perform actions. It's like having a friendly control panel for your WireGuard connections right in your terminal.

The application shows you all your configured WireGuard connections in a list. For each one, you can see whether it's currently connected or disconnected, how much data you've sent and received, and details like the server address, allowed IP ranges, and DNS settings. You can highlight a connection and press "c" to connect, "d" to disconnect, or "y" to copy the public key to your clipboard. There's also a search function (press "/") if you have many connections and want to find a specific one quickly.

You'll need administrator (root) permissions to run this tool, since WireGuard controls your network connection and that's a sensitive operation. The README suggests a setup process that lets you run it with elevated privileges without typing a password every time, which makes it convenient for regular use. You could even bind it to a keyboard shortcut—for example, pressing a specific key combination automatically opens the app in a terminal window.

The main limitation to be aware of is that this tool is designed for WireGuard setups with a single peer (basically, one connection per configuration file). If your setup is more complex, this might not be the right tool. The project is written in Rust and available as a pre-built download or something you can compile yourself.

Where it fits