aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_wireguard/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/setup_wireguard/tasks/main.yml')
-rw-r--r--roles/setup_wireguard/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
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
remember that computers suck.