Forum Discussion
iRule for SideBand connection
Hi all,
I need some help with iRule. Requirements:
- Catch user session ID (cookie, http headers) transform into JSON request.
- Send JSON request to sideband server.
- Catch sideband server response (200, 302, etc), then do something based on sideband server response.
Is it possible to realize or I am on wrong way?
7 Replies
- IanB
Employee
You can do it that way, but it might be cleaner and more supportable to use an opensource ICAP server, which BigIP already has built-in support for through request-adapt and response-adapt profiles.
With ICAP, the bigip takes the http request, wraps it up inside an ICAP header, sends that off to the ICAP server, which can modify or block the request. If allowed/modified, the request is sent off to the pool, the reply comes back, again passes through the ICAP server, and then finally back to client.
ICAP is intended for content filtering, for example blocking certain websites, but it might suit your needs here also.
- Dmitriy_B__2644
Nimbostratus
Thank you Ian, can you provide an example how to convert user credentials into JSON and sent to sideband server. Unfortunately I didn't find any examples how to do it and can't use ICAP. I will be grateful.
- nullmodem_27781
Nimbostratus
Hi Dmitriy, I was wondering if you got this working? I am having a requirement to implement something very similar.
- Nikolay_Matveev
Nimbostratus
Did you look at sideband examples like this one? They all seem to be quite straightforward.
- Dmitriy_B__2644
Nimbostratus
Yes, I tried it, but actually I didn't find any examples how to convert user session credentials into JSON message.
- Nikolay_67300
Nimbostratus
Did you look at sideband examples like this one? They all seem to be quite straightforward.
- Dmitriy_B__2644
Nimbostratus
Yes, I tried it, but actually I didn't find any examples how to convert user session credentials into JSON message.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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