From f944dae2fe14a5bf9319c8c1e822f380716d8bb4 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Tue, 25 Jul 2023 00:01:49 +0200 Subject: [PATCH] Enable IPv6 forwarding --- vpn/base/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vpn/base/tasks/main.yml b/vpn/base/tasks/main.yml index 84c6f19..56ef25c 100644 --- a/vpn/base/tasks/main.yml +++ b/vpn/base/tasks/main.yml @@ -6,6 +6,13 @@ sysctl_file: "/etc/sysctl.d/local.conf" reload: true +- name: "enable ipv6 forwarding" + ansible.posix.sysctl: + name: "net.ipv6.conf.all.forwarding" + value: "1" + sysctl_file: "/etc/sysctl.d/local.conf" + reload: true + - name: "script for creating virtual interfaces" ansible.builtin.copy: src: "./ip-link-add.sh"