Spotter-VM/vm/etc/network/interfaces

14 lines
299 B
Plaintext

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto wg0
iface wg0 inet static
address 172.17.255.1
netmask 255.255.255.0
pre-up ip link add $IFACE type wireguard
pre-up wg setconf $IFACE /etc/wireguard/wg0.conf || ip link del $IFACE
post-down ip link del $IFACE