aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-08-15 11:20:55 +0200
committerbinary <me@rgoncalves.se>2020-08-15 11:20:55 +0200
commit08bed28857142ab60eb3bb44eb831b24a99d1607 (patch)
tree84450132039e6f4cf5d4be98bc5cf57a1a3e2da9 /roles
parent182326c24f63e9ac8c16fad055f0a65a0be323ea (diff)
downloadinfrastructure-08bed28857142ab60eb3bb44eb831b24a99d1607.tar.gz
Added ipv4 and ipv6 forwarding
Diffstat (limited to 'roles')
-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.