Forum Discussion
Header injection rule
- Aug 16, 2024
I believe the following should work for you and you shouldn't need X-Forwarded-For.
when HTTP_REQUEST priority 500 { if { [class match -- [IP::client_addr] equals "datagroup_name" ] } { HTTP::header insert proxy_action "trusted" } if { [HTTP::host] eq "myhost.mydomain.com" } { pool MYPOOL } }
sorry I think this should be
when HTTP_REQUEST {
if { [HTTP::host] eq "myhost.mydomain.com" } {
pool MYPOOL
}
if { [class match [IP::client_addr] equals "datagroup_name" ] } {
HTTP::header insert "valuename" "trusted"
}
Is it worked after applying irules. Please let me know the working status
Br
Aswin
- jzitnikAug 19, 2024Nimbostratus
The irule worked. We had a check on the proxy that allowed or denied based on the value and it worked. We had a different issue that caused a different problem, although it did help us figure out another issue we were not aware of. Thanks everyone for your help.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com