Introduction
A WireGuard configuration file describes one VPN tunnel. The wg-quick tool uses files with the
.conf extension, named after the network interface and looked for in
/etc/wireguard/ first. The extension is also used by many unrelated programs.
Structure
INI-style text. One [Interface] section holds the private key and optionally the listening
port and firewall mark; each [Peer] section holds a public key and optionally a preshared key,
allowed IP ranges, an endpoint and a keepalive interval. # starts a comment. wg-quick adds
interface keys such as Address, DNS, MTU and
PostUp.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the value syntax and every key are in the wg(8) and wg-quick(8) manual pages.
- Viewer: the site has no viewer for this format.
Also used for
- HOCON configuration – Superset of JSON with comments, merging and substitutions.
Links
Software
- WireGuard – the wg and wg-quick tools read these files
Reference
- wg(8) – includes the configuration file format
- wg-quick(8) – the extra interface keys