Files
ilnmors-homelab/config/node/fw/wireguard/30-fw-wg0.netdev
2026-03-15 04:41:02 +09:00

11 lines
426 B
SYSTEMD

[NetDev]
Name=wg0
Kind=wireguard
[WireGuard]
ListenPort=11290
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']["network4"]["console"]["wg"] }}/32, {{ hostvars['fw']["network6"]["console"]["wg"] }}/128