57 lines
2.2 KiB
YAML
57 lines
2.2 KiB
YAML
---
|
|
vpn_interfaces:
|
|
wg0:
|
|
ip: "{{ interfaces.wg0.ipv4 }}"
|
|
private_key: "{{ vpn_vault_hindley_key }}"
|
|
public_key: "Ce48/ZdvpI2S82bIivhiWHQsyidzTAtxCnEYojY3xEA="
|
|
keepalive: false
|
|
peers:
|
|
- endpoint: ""
|
|
public_key: "{{ hostvars['azerty'].vpn_interfaces.wg0.public_key }}"
|
|
allowed_ips:
|
|
- "{{ hostvars['azerty'].vpn_interfaces.wg0.ip }}/32"
|
|
comment: "azerty"
|
|
- endpoint: ""
|
|
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 }}"
|
|
comment: "hellman"
|
|
- endpoint: ""
|
|
public_key: "{{ vpn_guest_keys.knuth }}"
|
|
allowed_ips:
|
|
- "{{ intranet.subnets.guest.subnets.knuth.ipv4 }}/{{ intranet.subnets.guest.subnets.knuth.netmaskv4 }}"
|
|
comment: "Client laptop: knuth"
|
|
- endpoint: ""
|
|
public_key: "{{ hostvars['rossum'].vpn_interfaces.wg0.public_key }}"
|
|
allowed_ips:
|
|
- "{{ hostvars['rossum'].vpn_interfaces.wg0.ip }}/32"
|
|
comment: "Raspi at paris, Rossum"
|
|
- endpoint: ""
|
|
public_key: "{{ hostvars['vm1'].vpn_interfaces.wg0.public_key }}"
|
|
allowed_ips:
|
|
- "{{ hostvars['vm1'].vpn_interfaces.wg0.ip }}/32"
|
|
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"
|
|
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"
|
|
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"
|
|
comment: "Test VM 4, hosted by knuth"
|
|
- endpoint: ""
|
|
public_key: "{{ hostvars['matrix_server'].vpn_interfaces.wg0.public_key }}"
|
|
allowed_ips:
|
|
- "{{ hostvars['matrix_server'].vpn_interfaces.wg0.ip }}/32"
|
|
comment: "matrix VM, hosted on g33kex's server"
|
|
|
|
|
|
|