From c8c22a10817f51c2a32a09257a53cbfdb6dc6ed6 Mon Sep 17 00:00:00 2001
From: Antwan <antoine.blancy@etu.hesge.ch>
Date: Mon, 11 Apr 2022 23:42:45 +0200
Subject: [PATCH] a

---
 templates/wg | 2 +-
 wg.yml       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/wg b/templates/wg
index 206254c..1bd503d 100644
--- a/templates/wg
+++ b/templates/wg
@@ -1,5 +1,5 @@
 [Interface]
-Address = {{ myAddr }}/24
+Address = {{ myAddr }}/32
 PostUp = wg set %i private-key /etc/wireguard/privatekey
 ListenPort = 51902
 
diff --git a/wg.yml b/wg.yml
index 4cd4f75..90f3f09 100644
--- a/wg.yml
+++ b/wg.yml
@@ -4,7 +4,7 @@
     - role: wg
       vars:
         publickey: "{{ hostvars['h2'].publickey }}"
-        myAddr: 10.0.0.1
+        myAddr: 10.0.0.10
         dst: 10.0.3.2
 
 - name: h2_key_set
@@ -13,6 +13,6 @@
     - role: wg
       vars:
         publickey: "{{ hostvars['h1'].publickey }}"
-        myAddr: 10.0.0.2
+        myAddr: 10.0.0.20
         dst: 10.0.1.2
 
-- 
GitLab