is_ip_list, and is_valid_ip, default to iptype none, checks for ipv6 and ipv4 if no iptype is given