From 08bed28857142ab60eb3bb44eb831b24a99d1607 Mon Sep 17 00:00:00 2001 From: binary Date: Sat, 15 Aug 2020 11:20:55 +0200 Subject: Added ipv4 and ipv6 forwarding --- roles/setup_wireguard/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/setup_wireguard/tasks/main.yml b/roles/setup_wireguard/tasks/main.yml index 2231ce4..d626767 100644 --- a/roles/setup_wireguard/tasks/main.yml +++ b/roles/setup_wireguard/tasks/main.yml @@ -16,3 +16,8 @@ state: present when: "'-DC-' in inventory_hostname" +- name: Activate ipv4 forwarding for wg0 server + shell: sysctl net.inet.ip.forwarding=1 + +- name: Activate ipv6 forwarding for wg0 server + shell: sysctl net.inet6.ip6.forwarding=1 -- cgit v1.2.3