wg-quick
Quick WireGuard VPN tunnel setup
TLDR
SYNOPSIS
wg-quick [up|down|save|strip] interface
DESCRIPTION
wg-quick is a convenience wrapper for setting up WireGuard VPN tunnels quickly. It reads configuration files from /etc/wireguard/ and handles interface creation, routing, and DNS configuration automatically.Configuration files are named [interface].conf (e.g., /etc/wireguard/wg0.conf) and contain both WireGuard settings and wg-quick-specific options like Address, DNS, and routing rules.
PARAMETERS
up _interface_
Bring up a WireGuard interface using config filedown _interface_
Tear down a WireGuard interfacesave _interface_
Save current configuration to config filestrip _interface_
Output configuration without wg-quick-specific options
CAVEATS
Requires root privileges. Configuration files must exist in /etc/wireguard/. The script modifies routing tables and may affect network connectivity. DNS changes require resolvconf or systemd-resolved support.
HISTORY
wg-quick is part of the WireGuard tools, created by Jason A. Donenfeld. WireGuard was initially developed as a Linux kernel module and merged into the mainline Linux kernel in version 5.6 (March 2020). The wg-quick script simplifies the setup that would otherwise require multiple wg and ip commands.
