WireGuard VPN Configuration Cheatsheet for Linux
Master WireGuard VPN setup and management on Linux with this cheatsheet, covering installation, connection, and configuration commands, tailored for Gentoo Linux and general usage
**
Install Wireguard
emerge --ask net-vpn/wireguard-tools
Quick Connect (configuration)
wg-quick up /etc/wireguard/wireguard.conf
Quick Connect (interface)
wg-quick up wg0
Disconnect
wg-quick up wg0
Save Connection
wg-quick save wg0
The strip command is useful for reloading configuration files without disrupting active sessions
wg syncconf wgnet0 <(wg-quick strip wgnet0)
Wireguard
Show Configuration
wg showconf se-sto-wg-001
Save Configuration /etc/wireguard/wireguard-another.conf
wg showconf se-sto-wg-001 > /etc/wireguard/wireguard-another.conf