summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--files/osbs/fix-docker-iptables.production2
-rw-r--r--files/osbs/fix-docker-iptables.staging2
2 files changed, 4 insertions, 0 deletions
diff --git a/files/osbs/fix-docker-iptables.production b/files/osbs/fix-docker-iptables.production
index a30f41427..7d5fc56bd 100644
--- a/files/osbs/fix-docker-iptables.production
+++ b/files/osbs/fix-docker-iptables.production
@@ -17,6 +17,8 @@ fi
if [ "`iptables -nL | grep 'FILTER_FORWARD all'`" == "" ];
then
iptables -I FORWARD 1 -j FILTER_FORWARD
+ iptables -I FORWARD 2 -j REJECT
+ iptables -I DOCKER-ISOLATION 1 -j FILTER_FORWARD
fi
# Delete all old rules
diff --git a/files/osbs/fix-docker-iptables.staging b/files/osbs/fix-docker-iptables.staging
index 7b4b6aee2..75675631e 100644
--- a/files/osbs/fix-docker-iptables.staging
+++ b/files/osbs/fix-docker-iptables.staging
@@ -17,6 +17,8 @@ fi
if [ "`iptables -nL | grep 'FILTER_FORWARD all'`" == "" ];
then
iptables -I FORWARD 1 -j FILTER_FORWARD
+ iptables -I FORWARD 2 -j REJECT
+ iptables -I DOCKER-ISOLATION 1 -j FILTER_FORWARD
fi
# Delete all old rules