Forwarded HTTP Extension Insertion (RFC 7239)
Problem this snippet solves: Until June 2014, there was no standard HTTP headers to share with web server behind reverse proxy client side request properties like:
Client IP Address requested Ho...
Updated Jun 06, 2023
Version 2.0Stanislas_Piro2
Cumulonimbus
Joined January 04, 2011
René_Geile
Apr 18, 2018Cirrus
Hi,
thanks for this irule. A few notes:
-
If other irules are attached to the same virtual server I suggest to attach a priority to the HTTP_REQUEST event to ensure it runs before any irule changes headers.
priority 100 when HTTP_REQUEST{
-
If you would like to add TCP ports of the client side connection to the header change the following:
-
line 33:
lappend FFOR_HEADER_LIST "for=$CLIENT_ADDR:[TCP::remote_port]"
-
line 78:
set FBY_HEADER "by=$BY_ADDR:[TCP::local_port]"
-
Regards, René