WireGuard Commands

Bring WireGuard Interface Up or Down

wg-quick

If you’re not using systemctl, then on server or client you run the below. The config file name will be wg0 unless you’ve created a config file with a different name.

wg-quick up <config-file-name>
wg-quick down <config-file-name>

SystemD

You can also, start or stop with systemctl which is good because it’ll then automatically bring the interface up on boot.

sudo systemctl enable --now wg-quick@wg0.service
sudo systemctl status wg-quick@wg0.service
sudo systemctl start wg-quick@wg0.service
sudo systemctl stop wg-quick@wg0.service
sudo systemctl restart wg-quick@wg0.service

About

I'm a technology professional who's been passionate about computers since my Grandad introduced me to an Intel 386 back in the 90s when I was a kid. Those moments inspired a passion within for technology, and I've been playing around with anything with a circuit board ever since. Whenever I have a moment you can probably find me working on something computer-related, and this is where I like to write about those moments.