diff --git a/Config_Wireguard.yml b/Config_Wireguard.yml
index 3cbe7d697373ca52d8c97bbbb104796c52fc1de4..7809c83cb798173b4e90be92268b117e282d9f79 100644
--- a/Config_Wireguard.yml
+++ b/Config_Wireguard.yml
@@ -139,8 +139,10 @@
 - name: Test connectivity from H1 to H2
   hosts: H1
   tasks:
+
     - name: Ping form H1 to H2
-      ansible.builtin.shell: "ping 10.0.0.1 -c 1"
+      ansible.netcommon.net_ping:
+        dest: 10.0.0.1
       register: result
       
     - name: Print result
diff --git a/templates/wireguard_config_template_H1.j2 b/templates/wireguard_config_template_H1.j2
index b17be71529baafa29eb292d172eeef9c30f18d6a..faba16cc6d1fcc37dc6e1b9a68be6e4173f93d74 100644
--- a/templates/wireguard_config_template_H1.j2
+++ b/templates/wireguard_config_template_H1.j2
@@ -6,4 +6,4 @@ PrivateKey = {{ keys["H1PRIV"]  }}
 [Peer]
 PublicKey = {{ keys["H2PUB"] }}
 Endpoint = 3.0.0.2:51820
-AllowedIPs = 0.0.0.0/0, ::/0
+AllowedIPs = 10.0.0.0/24