Skip to content

Wireguard

Drew Daniels edited this page Sep 9, 2025 · 2 revisions

Generate Client Configuration

https://www.man7.org/linux/man-pages/man8/wg-quick.8.html https://nixos.wiki/wiki/WireGuard

Create and download a Client configuration file (*.conf) and place it in /etc/wireguard/wg0.conf

NOTE: wg0 is the interface name

sudo mv ~/Downloads/ /etc/wireguard/wg0.conf <original-name >.conf

Bring up the interface

Use systemctl directly:

sudo systemctl start wg-quick@wg0.service

Or use helper script:

start-wg

Bring down the interface

Use systemctl directly:

sudo systemctl stop wg-quick@wg0.service

Or use helper script:

stop-wg

Clone this wiki locally