Forum Discussion
dedi_21505
Nimbostratus
Nov 30, 2008How to limin conection by MSISDN
Hi
Thank you In advance for your help.
Today I have This IRule
when HTTP_REQUEST {
if { [HTTP::header exists "MSISDN"] } {
persist uie [HTTP::header "MSISDN"]
}
}
This Rule figure as Time Out after 300 Sec since the last connection.
This Command “persist uie [HTTP::header "MSISDN"]” add the MSISDN as string to persist
My need is that I want to limit the max for MSISDN connection with IRule.
I wild like to know how to check if the MSISDN is already in the persistent table ?
Or to limit the connection In a different way.
- Colin_Walker_12Historic F5 AccountWith the different permutations of the persist command you should be able to perform a lookup as you're describing. The command you'd want to use is persist lookup.
- dedi_21505
Nimbostratus
Hi - Colin_Walker_12Historic F5 AccountSure. If you just want to perform a check to see if the info is in the persistence table already, you'd do:
persist lookup uie [HTTP::header "MSISDN"]
set pEntry [persist lookup uie [HTTP::header "MSISDN"] ] if { [string length $pEntry] <= 0 ] ...
- dedi_21505
Nimbostratus
Hi Colin - dedi_21505
Nimbostratus
Is there away tho know How much recorded I have in the persistent Table ? - hoolio
Cirrostratus
Hi Dedi, - hoolio
Cirrostratus
Actually Dedi, you'll run into the same issue with your iRule which abeny did in his iRule (Click here). You're incrementing the connection count for every HTTP request and only decrementing the count once when the client to VIP TCP connection is closed. If the client makes multiple HTTP requests on the same TCP connection, your count won't be accurate. - Colin_Walker_12Historic F5 AccountThere is a relatively simple fix for that though, detailed in the link that Aaron posted.
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