From 78f452587ae623033283bda1cb14155c2e49309e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 21 May 2020 14:00:47 +0200 Subject: Make the net ansible section `never` run and add appropriate warnings --- ansible/roles/network/files/rules.v6 | 6 ++++++ ansible/roles/network/templates/rules.v4.j2 | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'ansible/roles/network') diff --git a/ansible/roles/network/files/rules.v6 b/ansible/roles/network/files/rules.v6 index 0f402bd..17ff71c 100644 --- a/ansible/roles/network/files/rules.v6 +++ b/ansible/roles/network/files/rules.v6 @@ -1,3 +1,9 @@ +# WARNING!! When rules.{v4,v6} are changed, the whole iptables configuration is reloaded. +# This creates issues with Docker, which injects its own configuration in iptables when it starts. +# In practice, most (all?) containers will break if rules.{v4,v6} are changed, +# and docker will have to be restared. + + *filter :INPUT DROP [0:0] :FORWARD DROP [0:0] diff --git a/ansible/roles/network/templates/rules.v4.j2 b/ansible/roles/network/templates/rules.v4.j2 index a77852f..b60d1ee 100644 --- a/ansible/roles/network/templates/rules.v4.j2 +++ b/ansible/roles/network/templates/rules.v4.j2 @@ -1,3 +1,8 @@ +# WARNING!! When rules.{v4,v6} are changed, the whole iptables configuration is reloaded. +# This creates issues with Docker, which injects its own configuration in iptables when it starts. +# In practice, most (all?) containers will break if rules.{v4,v6} are changed, +# and docker will have to be restared. + *filter :INPUT DROP [0:0] -- cgit v1.2.3