Forum Discussion
Pietro_Femmino_
Nimbostratus
Dec 08, 2005Radius and HTTP Header insertion
Hi,
hard question: I have just to understand if it can be done with BIGIP and iRules.
What I need is to add a specific HTTP header to all the HTTP sessions coming from a specific IP address; the association header<->ip address comes from Radius authentication (i.e. I get a Radius start accounting packet from a specific IP address, and I have to insert that radius data, in an HTTP headers in all the HTTP sessions that that IP address will make).
This would require a central database to store all the associations (radius data <> ip address). What I need to understand is if it's possible for BIGIP/iRules to interpret radius data and write it somewhere, and then when receiving HTTP sessions, read the data and insert an appropriate HTTP header.
Thanks very much,
Pietro
- Pietro_Femmino_
Nimbostratus
Hi Colin, and thank you for helping. - unRuleY_95363Historic F5 AccountYes, you could use either a Tcl array or the session table for this. The session table has the added feature that it times unused entries out after a period of time whereas a Tcl array could grow and grow and grow without bound (well eventually you would exhaust memory).
- unRuleY_95363Historic F5 Accountwhere can I find a doc on iRules API?That's a question we keep asking ourselves. Stay tuned to DevCentral and hopefully you'll get an answer. For now, there's DevCentral and on AskF5 there's a reference manual.
- unRuleY_95363Historic F5 AccountThe best way I can think of would be to forward the request from one BIG-IP to the other BIG-IP. You would need a mechanism to know whether to forward to the next BIG-IP or onto the real server.
- unRuleY_95363Historic F5 AccountI'll add that in the event the standby is down, you'll likely get an LB_FAILED event. So, in that event you can then check to see if the request was going to the other BIGIP and if so, retry directly to the real 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