iptables -F  only works when iptables service up, so it better to changed command to : iptables -F; service iptables stop; true;
@xutian