bundlewrap/bundles/wireguard/files/wg.netdev

22 lines
362 B
SYSTEMD
Raw Normal View History

[NetDev]
Name=wg_${iface}
Kind=wireguard
Description=WireGuard connection to ${peer}
[WireGuard]
PrivateKey=${privatekey}
ListenPort=${port}
[WireGuardPeer]
PublicKey=${pubkey}
AllowedIPs=0.0.0.0/0
% if psk:
PresharedKey=${psk}
% endif
% if endpoint:
Endpoint=${endpoint}
% endif
% if specials.get('persistent_keepalive', True):
PersistentKeepalive=30
% endif