Forum Discussion
Al_Faller_1969
Nimbostratus
Aug 23, 2006Persist on last octet of IP address
Hi All -
I am trying to create an irule to persist a user based on the last octet of their IP address. I'll be the first to admit, I'm not good with TCL and was hoping for a little assistance. Does anyone have something similar to a rule like this? Should this be done with regex, or is there another, better way?
Thanks in advance,
Al
1 Reply
- Al_Faller_1969
Nimbostratus
For those who are curious, I got this working:
when HTTP_REQUEST {
persist uie [getfield [IP::remote_addr] "." 4]
}
Works great.
Al
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
