Skip to content

Instantly share code, notes, and snippets.

@joltcan
Created February 17, 2020 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joltcan/ff9a58b16a3c970fc86e1e6a4428f04f to your computer and use it in GitHub Desktop.
Save joltcan/ff9a58b16a3c970fc86e1e6a4428f04f to your computer and use it in GitHub Desktop.
auto wg0
iface wg0 inet static
address <changeme>.1
netmask 255.255.255.0
pre-up ip link add $IFACE type wireguard
pre-up wg setconf $IFACE /etc/wireguard/$IFACE.conf
post-down ip link del $IFACE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment