added checks for IPv6 to ensure kernel and ip6tables version support NAT redirection