From 82bd1cfb32bfbea5e682a8f8a5f604e9b4ca25a8 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Mon, 5 Jul 2021 03:57:04 +0200 Subject: [PATCH] ubuntu server use netplan, F again --- host_vars/hindley/networking.yml | 6 +++++- host_vars/hindley/vpn.yml | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/host_vars/hindley/networking.yml b/host_vars/hindley/networking.yml index 0f62177..d8b6318 100644 --- a/host_vars/hindley/networking.yml +++ b/host_vars/hindley/networking.yml @@ -1,11 +1,15 @@ --- interfaces: enp2s0: - ipv4: "45.66.110.3" + ipv4: 45.66.110.3 netmaskv4: 24 + type: static + routes: + - {subnet: 0.0.0.0, netmask: 0, gateway: 45.66.110.254} wg0: ipv4: "{{ intranet.subnets.physical.subnets.hindley.ipv4 }}" netmaskv4: "{{ intranet.netmaskv4 }}" + type: wireguard ipv4_forwarding: true ipv6_forwarding: false diff --git a/host_vars/hindley/vpn.yml b/host_vars/hindley/vpn.yml index e4472e7..ba6a557 100644 --- a/host_vars/hindley/vpn.yml +++ b/host_vars/hindley/vpn.yml @@ -1,7 +1,6 @@ --- vpn_interfaces: wg0: - ip: "{{ interfaces.wg0.ipv4 }}" private_key: "{{ vpn_vault_hindley_key }}" public_key: "Ce48/ZdvpI2S82bIivhiWHQsyidzTAtxCnEYojY3xEA=" keepalive: false