Linux
Where Are WireGuard Config Files?
WireGuard interface configs in /etc/wireguard on Linux and tunnel files on other platforms.
Last updated
WireGuard keeps one .conf per interface in /etc/wireguard on Linux. Each file holds private key, addresses and peers for that tunnel.
Permissions matter. Configs must be root-readable-only (600) or wg-quick refuses them, which is the most common first-setup failure.
Where WireGuard stores this, by platform
Linux
/etc/wireguard/wg0.conf
One wg0.conf style file per tunnel. Root-only 600 permissions required. Manage with wg-quick; GUI apps on other platforms keep tunnels in their own stores.
Frequently asked questions
How do I add a WireGuard tunnel?
Create wg0.conf with Interface and Peer sections, set 600 permissions, then wg-quick up wg0. Private keys never leave the machine; share only public keys.
Notice an outdated path? Let us know.