bundlewrap/bundles/wireguard/files/wg.netdev

18 lines
287 B
SYSTEMD
Raw Permalink Normal View History

[NetDev]
Name=wg${number}
Kind=wireguard
Description=WireGuard connection to ${peer}
[WireGuard]
PrivateKey=${privatekey}
ListenPort=${port}
[WireGuardPeer]
PublicKey=${pubkey}
AllowedIPs=0.0.0.0/0
PresharedKey=${psk}
% if endpoint:
Endpoint=${endpoint}
% endif
PersistentKeepalive=30