This guide outlines a basic WireGuard server and client setup.
sudo apt update
sudo apt install -y wireguard
sudo dnf install -y wireguard-tools
wg genkey | tee server.key | wg pubkey > server.pub
Create /etc/wireguard/wg0.conf with server and peer settings.
sudo systemctl enable --now wg-quick@wg0
Create client configs with the server public key and endpoint.
See WireGuard Configuration for configuration guidance.
Any questions?
Feel free to contact us. Find all contact information on our contact page.
Prefer automation? See WireGuard Ansible Setup for an example playbook.
Prefer containers? See WireGuard Docker Setup.
See WireGuard Security for hardening guidance.