Forum Discussion

ccie7599_14014's avatar
ccie7599_14014
Icon for Nimbostratus rankNimbostratus
Aug 25, 2009

F5- reading a custom TCP header and creating an HTTP header

Hello all-

 

 

I am investigating the possibility that, for incoming request traffic, the F5 can read from the TCP Option Header, and place the value in an HTTP header.

 

 

The use case for this is to support an application service that adds some needed information to the L4 header, via the TCP Option location. That information needs to find it's way to the HTTP logs, so using the F5 to read from TCP/write to HTTP header seems logical, if it's possible to do.

 

 

Thanks!

 

 

Brian Apley

 

CCIE 7599
  • Hi Brian,

     

    I believe there is a way by using the TCP::payload, collect commands

     

     

    Here is a link that may help you out http://devcentral.f5.com/wiki/default.aspx/iRules/TCP__collect.html

     

     

    CB

     

  • Thanks much- unclear to me that payload and collect will go up into the TCP header to capture the data, seems from the docs that it's for the payload only. Did I miss something?

     

     

    Thanks so much for the reply...

     

  • I suspected the same thing but I have never tested this out.

     

     

    Here is another article that talks a bit about TCP headers

     

     

    http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=49

     

     

    CB
  • Nope, you didn't miss anything. Headers are not collected, only payload.
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    I think Deb previously mentioned a request for enhancement to be able to read the TCP headers from an iRule. You might try opening a case with F5 Support to check the status of the request and add your case to the RFE.

     

     

    Aaron
  • Posted By ccie7599 on 08/25/2009 9:43 AM

     

     

    Hello all-

     

     

    I am investigating the possibility that, for incoming request traffic, the F5 can read from the TCP Option Header, and place the value in an HTTP header.

     

     

    The use case for this is to support an application service that adds some needed information to the L4 header, via the TCP Option location. That information needs to find it's way to the HTTP logs, so using the F5 to read from TCP/write to HTTP header seems logical, if it's possible to do.

     

     

    Thanks!

     

     

    Brian Apley

     

    CCIE 7599