interfaces-wireguard(5)
πΈ NAME πΈ
Okay bestie, this is interfaces-wireguard(5) from the File Formats Manual β the whole vibe is Wireguard extensions for the interfaces(5) file format. π
β¨ DESCRIPTION β¨
Wireguard is a contemporary in-Kernel layer 3 VPN protocol implementation whose whole mission is fast + secure tunnels. The options below let you set up Wireguard VPN tunnels. π¦
π‘οΈ WIREGUARD-RELATED OPTIONS π‘οΈ
wireguard-config-path pathβ This is the absolute path to the Wireguard configuration file. If no path is given,/etc/wireguard/<interface>.confgets used. In that latter case,use wireguardhas to be explicitly set in the interface configuration. π
β οΈ Be aware: the config file you give here will be loaded usingwg setconf, not withwg-quick. The file formats for those two tools are not compatible, so you have to make sure you're handing over a valid configuration file for thewgtool. If you already have awg-quickconfig, you can set up the tunnel manually once, then dump the configuration usingwg showconfand save it to path. π
π§ͺ EXAMPLES π§ͺ
A Wireguard VPN tunnel with an explicit configuration file specified:
auto wg-foo
iface wg-foo
wireguard-config-path /etc/wireguard/foo.conf
#
address 192.0.2.23/42
address 2001:db8::23/64
A Wireguard VPN tunnel with an implicit configuration file:
auto wg-bar
iface wg-bar
use wireguard
#
address 192.0.2.23/42
address 2001:db8::23/64
π SEE ALSO π
interfaces-wireguard-quick(5) β go read that one too, bestie. π
π AUTHORS π
Maximilian Wilhelm β <max@sdn.clinic> π«Ά
xoxo, this has been interfaces-wireguard(5) from the File Formats Manual, dated 2026-05-10 β slay your tunnels responsibly π
β¨
π¦ where this page comes from
- alpine 3.24: ifupdown-ng-doc 0.13.0-r0 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms