Forum Discussion
jzitnik
Nimbostratus
Aug 15, 2024Header injection rule
Hello everyone. I need to make a rule that injects a header value based on the presence of specific client side IP addresses 192.168.0.1, 192.168.0.2, 192.168.0.3 Etc.. What I think it would be ...
- 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 } }
Aswin_mk
MVP
Aug 17, 2024Is it worked after applying irules. Please let me know the working status
Br
Aswin
jzitnik
Nimbostratus
Aug 19, 2024The 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects