I am wondering if someone has any idea of what I am seeing in our logs after adding a new iRule to remove the X-Forwarded-For header and re-insert it.
The error, which is generated at random:
Aug 30 00:00:39 tmm5 err tmm5[11045]: 01220001:3: TCL error: /Common/shared/x_forwarded_for - Out of bounds (line 1) invoked from within “HTTP::header remove “X-Forwarded-For””
Aug 30 00:00:40 tmm err tmm[11040]: 01220001:3: TCL error: /Common/shared/x_forwarded_for - Out of bounds (line 1) invoked from within “HTTP::header remove “X-Forwarded-For””
Aug 30 00:00:48 tmm3 err tmm3[11043]: 01220001:3: TCL error: /Common/shared/x_forwarded_for - Out of bounds (line 1) invoked from within “HTTP::header remove “X-Forwarded-For””
The ‘x_forwarded_for’ iRule is the only iRule associated to the HTTP (80) virtual-server, and on the HTTPS (443) virtual-server there are two iRules in this order 1. ‘https_proto_header’, and 2. ‘x_forwarded_for’. I have a feeling the error is getting generated by the HTTPS (443) virtual-servers but I am unsure.
I don’t think there should be any conflict between the HTTP profile and iRule doing header insert/removals. I did some quick searching but didn’t see any related info internally.
Could you open a case with F5 Support on this? If you do, can you reply back with what you find out?