ansible/host_vars/hindley/vpn.yml

52 lines
2 KiB
YAML
Raw Normal View History

2021-04-22 21:44:40 +02:00
---
vpn_interfaces:
wg0:
ip: "{{ interfaces.wg0.ipv4 }}"
2021-04-22 21:44:40 +02:00
private_key: "{{ vpn_vault_hindley_key }}"
2021-04-22 22:12:57 +02:00
public_key: "Ce48/ZdvpI2S82bIivhiWHQsyidzTAtxCnEYojY3xEA="
2021-04-22 21:44:40 +02:00
keepalive: false
peers:
- endpoint: ""
2021-04-27 20:57:23 +02:00
public_key: "{{ hostvars['azerty'].vpn_interfaces.wg0.public_key }}"
allowed_ips:
- "{{ hostvars['azerty'].vpn_interfaces.wg0.ip }}/32"
2021-04-23 00:40:31 +02:00
comment: "azerty"
2021-04-22 21:44:40 +02:00
- endpoint: ""
2021-04-27 20:57:23 +02:00
public_key: "{{ hostvars['hellman'].vpn_interfaces.wg0.public_key }}"
allowed_ips:
- "{{ hostvars['hellman'].vpn_interfaces.wg0.ip }}/32"
- "{{ intranet.subnets.guest_hellman.ipv4 }}/{{ intranet.subnets.guest_hellman.netmaskv4 }}"
2021-04-23 00:40:31 +02:00
comment: "hellman"
- endpoint: ""
public_key: "{{ vpn_guest_keys.knuth }}"
allowed_ips:
- "{{ intranet.subnets.guest.subnets.knuth.ipv4 }}/{{ intranet.subnets.guest.subnets.knuth.netmaskv4 }}"
2021-04-23 09:16:33 +02:00
comment: "Client laptop: knuth"
2021-04-25 18:49:28 +02:00
- endpoint: ""
public_key: "{{ hostvars['rossum'].vpn_interfaces.wg0.public_key }}"
allowed_ips:
- "{{ hostvars['rossum'].vpn_interfaces.wg0.ip }}/32"
2021-04-25 18:49:28 +02:00
comment: "Raspi at paris, Rossum"
2021-04-27 20:57:23 +02:00
- endpoint: ""
public_key: "{{ hostvars['vm1'].vpn_interfaces.wg0.public_key }}"
allowed_ips:
- "{{ hostvars['vm1'].vpn_interfaces.wg0.ip }}/32"
2021-04-27 20:57:23 +02:00
comment: "Test VM 1, hosted by knuth"
- endpoint: ""
public_key: "{{ hostvars['vm2'].vpn_interfaces.wg0.public_key }}"
allowed_ips:
- "{{ hostvars['vm2'].vpn_interfaces.wg0.ip }}/32"
2021-04-27 20:57:23 +02:00
comment: "Test VM 2, hosted by knuth"
- endpoint: ""
public_key: "{{ hostvars['vm3'].vpn_interfaces.wg0.public_key }}"
allowed_ips:
- "{{ hostvars['vm3'].vpn_interfaces.wg0.ip }}/32"
2021-04-27 20:57:23 +02:00
comment: "Test VM 3, hosted by knuth"
- endpoint: ""
public_key: "{{ hostvars['vm4'].vpn_interfaces.wg0.public_key }}"
allowed_ips:
- "{{ hostvars['vm4'].vpn_interfaces.wg0.ip }}/32"
2021-04-27 20:57:23 +02:00
comment: "Test VM 4, hosted by knuth"