diff options
author | binary <me@rgoncalves.se> | 2020-08-15 11:20:55 +0200 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-08-15 11:20:55 +0200 |
commit | 08bed28857142ab60eb3bb44eb831b24a99d1607 (patch) | |
tree | 84450132039e6f4cf5d4be98bc5cf57a1a3e2da9 /roles/setup_wireguard/tasks | |
parent | 182326c24f63e9ac8c16fad055f0a65a0be323ea (diff) | |
download | infrastructure-08bed28857142ab60eb3bb44eb831b24a99d1607.tar.gz |
Added ipv4 and ipv6 forwarding
Diffstat (limited to 'roles/setup_wireguard/tasks')
-rw-r--r-- | roles/setup_wireguard/tasks/main.yml | 5 |
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 |