Forum Discussion

ErikM's avatar
ErikM
Icon for Altocumulus rankAltocumulus
Jun 02, 2017

SNAT source ip address in http header

Hi,

 

Is it possible with an irule to let the BigIP put the SNAT source ip address in a http header? We have an application that would like to know where packets are coming from, as to identify which VIP is being used. The SNAT source ip can ofcourse be found in IIS but the application can't fetch it there. It can however read http headers.

 

Thanks,

 

Erik

 

1 Reply

  • Hi, You can try into the HTTP_REQUEST_RELEASE event.

    when HTTP_REQUEST_RELEASE {
        HTTP::header insert X-SNAT-ADDRESS [IP::local_addr]
    }
    

    Regards.