fixed: 修复清除iptables规则时,遇到关闭所有进入端口,无法连接节点

pull/465/head
PowerDos 2019-02-09 11:50:18 +08:00 committed by jmgao
parent c54f2293e6
commit 4898ae072d
1 changed files with 2 additions and 1 deletions

View File

@ -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"