Forum Discussion
teknet7_237497
Dec 16, 2015Nimbostratus
Great, 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
- Dec 16, 2015Hi 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