Forum Discussion
Volker_95568
Nimbostratus
May 05, 2008iRule http cookie, persist command, storing/reading connection information
Hi,
I'm back again.
I don't understand the information management behind the persist command.
There is the 'bigpipe' command (b), which shows the information, which is stored.
Then you got the persist command (like DB insert/select/update) which will most probably store information about a connection. If the persist command stores information it will do that by using a key (cookie) putting a timestamp on the record.
I. What I want to understand, are the circumstances under which the BigIP stores information.
Persist ... (plus configuration settings, which guard the persist command)
II. Again I want to understand, how I can use the information.
Scenario:
I. Connection gets opened on BigIP Resource
Resource uses iRule command persist ... to store Cookie related connection information.
II. Connection gets opened on another BigIP Resource
Resource uses iRule command lookup ? to read Cookie related connection information and
to obey these connection information, redirect to the given server.
Logging (But I really don't know what I can do with persist/lookup/config ...)
[230 is the physical address of BigIP]
Good Case
Apr 30 18:33:31 tmm tmm[1584]: Rule connection_logging : Connection von 80.187.40.11 auf 192.168.1.232 : 8000
I. BigIP should write, where to go with key1: 192.168.1.150
Apr 30 18:33:32 tmm tmm[1584]: Rule jsession : Connection 192.168.1.231:8080 <- 192.168.1.150:8928, Cookie:key1
Apr 30 18:33:33 tmm tmm[1584]: Rule jsession : Connection 192.168.1.230:8928 -> 192.168.1.150:8080, Cookie:
II. BigIP should read, where to go with this cookie key1: 192.168.1.150
Apr 30 18:34:03 tmm tmm[1584]: Rule jsession : Connection 192.168.1.231:8010 <- 192.168.1.150:3160, Cookie:key1
Good case, connection gets back to 192.168.1.150
Apr 30 18:34:03 tmm tmm[1584]: Rule jsession : Connection 192.168.1.230:3160 -> 192.168.1.150:8050, Cookie:
Bad Case
Apr 30 18:36:33 tmm tmm[1584]: Rule connection_logging : Connection von 80.187.40.210 auf 192.168.1.232 : 8000
I. BigIP should write, where to go with key1: 192.168.1.4
Apr 30 18:36:34 tmm tmm[1584]: Rule jsession : Connection 192.168.1.231:8080 <- 192.168.1.4:54209, Cookie:key1
Apr 30 18:36:34 tmm tmm[1584]: Rule jsession : Connection 192.168.1.230:54209 -> 192.168.1.150:8080, Cookie:
II. BigIP should read, where to go with this cookie key1: 192.168.1.4
Apr 30 18:36:59 tmm tmm[1584]: Rule jsession : Connection 192.168.1.231:8010 <- 192.168.1.150:2622, Cookie:key1
Connection goes out of sight ...
Apr 30 18:36:59 tmm tmm[1584]: Rule jsession : Connection 192.168.1.230:2622 -> 192.168.1.150:8050, Cookie:
- hoolio
Cirrostratus
Hi, - Volker_95568
Nimbostratus
Hi, - Volker_95568
Nimbostratus
This problem is solved with another approach. - hoolio
Cirrostratus
Hi Volker, sorry I missed your last post here. I'm not sure what you meant in the last post by saying you had to have two iRules: one for the HTTP_REQUEST and one for HTTP_RESPONSE. You could combine both events in a single rule. Either way, as long as they're associated with the same VIP, they could access the same session data. I'm not sure what you mean by 'is it not possible to share information between the virtual hosts on a BIG-IP'. - Volker_95568
Nimbostratus
Hi Aaron, - hoolio
Cirrostratus
You can share data between VIPs using the session table. If you use the 'any virtual' option when adding the session table entry (Click here), that entry is accessible from an iRule on any virtual server.
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