Help! Header Insert Not Working~
I tried as many ways as I can think of to get the remote ip address of the requesting client inserted into the header and cannot seem to get it working. I wiresharked it and I can get it listed in the cookie but not a field in the header. What am I doing wrong???? Below I created an irule using many methods to see which one worked can someone look and give your thoughts? NOTE: this rule has multiple methods I was trying everything
when CLIENT_ACCEPTED {
set client_src_ip_v0 [ IP::remote_addr ]
}
when HTTP_REQUEST {
HTTP::header insert CLT_SRC_IP_v0 $client_src_ip_v0
HTTP::header insert CLT_SRC_IP_v1 [IP::remote_addr]
HTTP::header insert lws CLT_SRC_IP_v2 [IP::remote_addr]
HTTP::header insert X-Forwarded-For [IP::remote_addr]
HTTP::header insert_modssl_fields addr addr addr
log local0. "X-Forward IP: [HTTP::header values "X-Forwarded-For"]"
log local0. "Client IP: [IP::remote_addr]"
}
Thanks