Forum Discussion
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 ou...
hooleylist
Aug 04, 2011Cirrostratus
To do a host check, you shouldn't need to specify a subnet mask (whether it's v6 or v4):
if {[IP::addr [IP::client_addr] equals 10.1.1.1]}
if {[IP::addr [IP::client_addr] equals feff::1234]}
For reference, you can use this example to detect an IPv6 address:
if { [IP::addr [IP::client_addr] equals ::ffff:0000:0000/96] } { log local0. "Yep, that's an IPv4 address" }
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects