11 lines
478 B
SYSTEMD
11 lines
478 B
SYSTEMD
[NetDev]
|
|
Name=wg0
|
|
Kind=wireguard
|
|
[WireGuard]
|
|
ListenPort={{ services['wireguard']['ports']['udp'] }}
|
|
PrivateKey={{ hostvars['console']['wireguard']['server']['private_key'] }}
|
|
[WireGuardPeer]
|
|
PublicKey={{ hostvars['console']['wireguard']['console']['public_key'] }}
|
|
PresharedKey={{ hostvars['console']['wireguard']['console']['preshared_key'] }}
|
|
AllowedIPs={{ hostvars['fw']["network"]["console"]['ipv4']["wg"] }}/32, {{ hostvars['fw']["network"]["console"]['ipv6']["wg"] }}/128
|