Skip to content
Léo MERCIER edited this page Aug 4, 2024 · 11 revisions

Setup WireGuard locally

This is the list of commands to install your local Wireguard client. If you don't want to start connecting to your wg0 interface automatically when booting up, you can remove the package wireguard-dinit.

doas pacman -S wireguard-tools wireguard-dinit openresolv
mkdir -p /etc/wireguard
chown root:root /etc/wireguard
chmod 700 /etc/wireguard
doas dinitctl enable wireguard # Will connect to the wg0 interface when booting up

Connect to your Wireguard server

Make sure your config does not contain ipv6 addresses if you disabled ipv6 on your machine. Move or create your config file (in this example wg0.conf) to /etc/wireguard and run

doas wg-quick up wg0
Clone this wiki locally