diff --git a/host_vars/azerty/networking.yml b/host_vars/azerty/networking.yml index 06bd946..d184921 100644 --- a/host_vars/azerty/networking.yml +++ b/host_vars/azerty/networking.yml @@ -1,11 +1,15 @@ --- interfaces: enp0s25: - ipv4: "10.50.1.221" + ipv4: 10.50.1.221 netmaskv4: 16 + type: static + routes: + - {subnet: 0.0.0.0, netmask: 0, gateway: 10.50.0.254} wg0: ipv4: "{{ intranet.subnets.physical.subnets.azerty.ipv4 }}" netmaskv4: "{{ intranet.netmaskv4 }}" + type: wireguard ipv4_forwarding: false ipv6_forwarding: false diff --git a/host_vars/azerty/vpn.yml b/host_vars/azerty/vpn.yml index 4ddc172..aa53cf4 100644 --- a/host_vars/azerty/vpn.yml +++ b/host_vars/azerty/vpn.yml @@ -1,7 +1,6 @@ --- vpn_interfaces: wg0: - ip: "{{ interfaces.wg0.ipv4 }}" private_key: "{{ vpn_vault_azerty_key }}" public_key: "o9rdoSdnp4twbNbZAMl0wY4sFQh647qqRv6V8HJwMQY=" keepalive: true diff --git a/roles/networking/templates/interfaces.j2 b/roles/networking/templates/interfaces.j2 index aa536d0..5aa1e36 100644 --- a/roles/networking/templates/interfaces.j2 +++ b/roles/networking/templates/interfaces.j2 @@ -1,3 +1,7 @@ {{ ansible_managed | comment }} source /etc/network/interfaces.d/* + +# The loopback network interface +auto lo +iface lo inet loopback