validating IP before adding iptables line