From 09f3913a49a38c25983ad12b6c7627ba644f1e5d Mon Sep 17 00:00:00 2001 From: Greg Harvey Date: Wed, 11 Jun 2025 16:00:09 +0200 Subject: [PATCH] Disabling ipv6. --- roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 b/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 index 4b90a41cc..9b1ef912c 100644 --- a/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 +++ b/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 @@ -1,5 +1,8 @@ #!/bin/bash +# Disable ipv6 +sysctl -w net.ipv6.conf.all.disable_ipv6=1 + # Update Linux /usr/bin/apt-get -y update /usr/bin/apt-get dist-upgrade -y -o Dpkg::Options::="--force-confnew"