Forum Discussion

BaltoStar_12467's avatar
Aug 05, 2015

BIG-IP : HTTP Profile Insert X-Forwarded-For Enabled but not found in request headers collection

F5 BIG-IP Virtual Edition v11.4.1 (Build 635.0) LTM on ESXi

For a

Virtual-Server
assigned an
HTTP Profile
configured with :

Insert X-Forwarded-For Enabled

under what circumstances would the header not be inserted ?

My iRule logs :

when HTTP_REQUEST {
    log local0. "X-Forwarded-For header = [HTTP::header X-Forwarded-For]"
`


indicate header is not present -- here is log output : 

`X-Forwarded-For header = 

Could disabling

HTTP_REQUEST
event at end of iRule affect
HTTP Profile
ability to add the header ?

2 Replies

  • giltjr's avatar
    giltjr
    Icon for Nimbostratus rankNimbostratus

    I'm not 100% sure, but since the F5 is inserting the header to send to the server I would not expect it to be there when HTTP_REQUEST is being processed. HTTP_REQUEST should have what is being sent by the client and unless the client is sending that header it should not be there.

     

  • It is present in 11.6. What version are you running? Try this:

    when HTTP_REQUEST {
        foreach x [HTTP::header names] {
            log local0. "$x = [HTTP::header $x]"
        }
    }
    

    Do you see the XFF header in the log?