homeserver-iac/roles/wireguard/templates/client.conf.j2

15 lines
397 B
Plaintext
Raw Permalink Normal View History

2024-06-16 15:05:12 -04:00
[Interface]
# device's address in the VPN
Address = {{ item.addr }}
# device privkey
PrivateKey = {{ item.priv_key }}
DNS = {{ hostvars[groups["bastion"][0]].vpn_ip }}
2024-06-16 15:05:12 -04:00
[Peer]
# server stuff
PublicKey = {{ wireguard_secret.servers[groups["bastion"][0]].pub }}
2024-06-16 15:05:12 -04:00
Endpoint = {{ wireguard.ip.server_public }}:{{ wireguard.ip.port }}
# allow traffic for all subnets into the VPN
AllowedIPs = 0.0.0.0/0