Ned_66277
Aug 04, 2011Nimbostratus
IPv6 GTM iRules
We use GTMs to route traffic between our datacenters and we have a number of iRules that route based on source IP or network. We currently are not using IPv6 (with a few minor exceptions including our BigIPs), but for a time I thought we had an issue with a server that had IPv6 enabled on it (which turned out to be something else). I tried a few different ways to format an iRule to recognize an IPv6 source, but I couldn't get it quite right. I haven't done much in the IPv6 world so I was hoping someone can assist.
Sample IPv4
when DNS_REQUEST {
if {[IP::addr [IP::client_addr]/32 equals 10.1.1.1]}{
pool A member 10.2.2.2
}
}
Was hoping to translate it to something similar for IPv6:
[IP::addr [IP::client_addr]/128 equals feff::1234]
[IP::addr [IP::client_addr] mask ::ffff:ffff equals feff::1234]