fix:清理iptables

pull/275/head
jmgao 2017-11-28 23:27:38 +08:00
parent f17a20d079
commit 7bf48d26d7
2 changed files with 8 additions and 2 deletions

View File

@ -28,7 +28,10 @@
- "/etc/systemd/system/docker.service.requires/"
- name: 清理 iptables
shell: iptables -F && iptables -X && iptables -F -t nat && iptables -X -t nat
shell: "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"
- name: 清理网络
shell: "ip link del docker0; ip link del tunl0; systemctl restart networking"

View File

@ -27,7 +27,10 @@
shell: systemctl enable docker
- name: flush-iptables
shell: iptables -F && iptables -X && iptables -F -t nat && iptables -X -t nat
shell: "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"
- name: start-docker
shell: systemctl restart docker