Skip to content

Commit

Permalink
fixed: 修复清除iptables规则时,遇到关闭所有进入端口,无法连接节点
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerDos authored and gjmzj committed Feb 12, 2019
1 parent c54f229 commit 4898ae0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4898ae0

Please sign in to comment.