Forum Discussion
Brad_Parker
Oct 01, 2015Cirrus
Well you can do it with the http profile option with the policy I mentioned above(will perform better as they are built in features) or you can do it with a single iRule that will insert both.
when HTTP_REQUEST {
HTTP::header insert "X-Forwarded-For" [IP::client_addr]
if {[PROFILE::exists clientssl] == 1}{
HTTP::header insert "X-Forwarded-Proto" "https"
}
}