Forum Discussion

Dmitriy_B__2644's avatar
Dmitriy_B__2644
Icon for Nimbostratus rankNimbostratus
May 18, 2016

iRule for SideBand connection

Hi all,

 

I need some help with iRule. Requirements:

 

  1. Catch user session ID (cookie, http headers) transform into JSON request.
  2. Send JSON request to sideband server.
  3. 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

  • 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.

     

  • 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's avatar
      nullmodem_27781
      Icon for Nimbostratus rankNimbostratus

      Hi Dmitriy, I was wondering if you got this working? I am having a requirement to implement something very similar.

       

    • Dmitriy_B__2644's avatar
      Dmitriy_B__2644
      Icon for Nimbostratus rankNimbostratus
      Yes, I tried it, but actually I didn't find any examples how to convert user session credentials into JSON message.
    • Dmitriy_B__2644's avatar
      Dmitriy_B__2644
      Icon for Nimbostratus rankNimbostratus
      Yes, I tried it, but actually I didn't find any examples how to convert user session credentials into JSON message.