Forum Discussion
teknet7_237497
Nimbostratus
Dec 14, 2015iRule: persist uie "$var1:$var2"
Hello Team,
I have just found i can create persistence entry using two variables example:
persist uie "$var1:$var2"
But not sure how can later use it.
Is it possible to hit it if matching...
teknet7_237497
Nimbostratus
Dec 16, 2015Great, for me it's aaa client sending framed-ip, so i would need to add session entry inside CLIENT_DATA, like this:
when CLIENT_DATA {
log local0. "session table lookup result: [session lookup uie "persist:[RADIUS::avp 31]"]"
if {[session lookup uie "persist:[IP::client_addr]"] ne ""} {
log local0. "lookup match: [session lookup uie "persist:[RADIUS::avp 31]"]"
node [session lookup uie "persist:[RADIUS::avp 31]"]
session add uie "persist:[RADIUS::avp 8]" [IP::remote_addr]
}
}
Can it work ? I have tried to do the same using persistence only (no sessions) and found out that it can not work together (thread: https://devcentral.f5.com/questions/irule-two-persist-commands)
Thanks, Michal
- StephanMantheyDec 16, 2015
Nacreous
Hi Michal, the session table is independent from the persistence table and starting with v10.x(?) you can use it for key/value pairs to build your own "persistence" method. Please just watch the logs to verify the RADIUS::avp returns the expected data to be used in combination with i.e. "persist:" as key. Thanks, Stephan
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