2021-09-29 17:27:13 +00:00
|
|
|
[NetDev]
|
2023-09-09 11:54:27 +00:00
|
|
|
Name=wg_${iface}
|
2021-09-29 17:27:13 +00:00
|
|
|
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
|
2023-12-10 13:48:24 +00:00
|
|
|
% if specials.get('persistent_keepalive', True):
|
2021-09-29 17:27:13 +00:00
|
|
|
PersistentKeepalive=30
|
2023-12-10 13:48:24 +00:00
|
|
|
% endif
|