Forum Discussion
Brian_Gibson_30
Nimbostratus
Feb 19, 2015Transforming an IP address via IRule
I am trying to take a client IP and convert it to a new IP using a generic IP address mask but using the last 2 octets of the client's IP.
My RegEx skills are not the greatest but this really doe...
JRahm
Admin
Feb 19, 2015better to use scan in this case:
when CLIENT_ACCEPTED {
scan [IP::client_addr] %d.%d.%d.%d 0 0 o3 o4
log local0.info "value on transformed IP is 10.99.$o3.$o4"
}
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