From 095c8c45627c25f6b8dced533ca2b1c868d8323f Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 9 May 2020 20:07:19 +0100 Subject: [PATCH] Use sysctl to enable p2p comms --- ansible/roles/gateway/tasks/wireguard.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible/roles/gateway/tasks/wireguard.yml b/ansible/roles/gateway/tasks/wireguard.yml index fb167f2..2f40fe4 100644 --- a/ansible/roles/gateway/tasks/wireguard.yml +++ b/ansible/roles/gateway/tasks/wireguard.yml @@ -35,3 +35,12 @@ loop: "{{ wireguard.clients|dict2items }}" loop_control: label: "{{ item.key }}" + +- name: Enable p2p communication + sysctl: + name: net.ipv4.ip_forward + value: '1' + sysctl_set: yes + state: present + reload: yes + become: true