update firewall script to handle ipv6