k3s_setup/roles/wireguard/templates/interfaces-nodevpn.cfg.j2

8 lines
211 B
Plaintext
Raw Normal View History

2019-12-18 13:15:52 +00:00
auto nodevpn
iface nodevpn inet static
address {{wg_ip}}
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