mirror of https://github.com/easzlab/kubeasz.git
fixed: 修复清除iptables规则时,遇到关闭所有进入端口,无法连接节点
parent
c54f2293e6
commit
4898ae072d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue