From 4898ae072d792c78536e537c5287378457c4f7fd Mon Sep 17 00:00:00 2001 From: PowerDos Date: Sat, 9 Feb 2019 11:50:18 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E4=BF=AE=E5=A4=8D=E6=B8=85=E9=99=A4ip?= =?UTF-8?q?tables=E8=A7=84=E5=88=99=E6=97=B6=EF=BC=8C=E9=81=87=E5=88=B0?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=89=80=E6=9C=89=E8=BF=9B=E5=85=A5=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=EF=BC=8C=E6=97=A0=E6=B3=95=E8=BF=9E=E6=8E=A5=E8=8A=82?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/docker/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index ff2aef6..272e0d0 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -25,7 +25,8 @@ template: src=daemon.json.j2 dest=/etc/docker/daemon.json - name: flush-iptables - shell: "iptables -F && iptables -X \ + shell: "iptables -P INPUT ACCEPT \ + && iptables -F && iptables -X \ && iptables -F -t nat && iptables -X -t nat \ && iptables -F -t raw && iptables -X -t raw \ && iptables -F -t mangle && iptables -X -t mangle"