Forum Discussion
local traffic policy http-header insert action
Hi zup, the policy you have written looks good. BTW, the value in CPM rule written (Central Policy Matching Engine) is supposed to be a string. I have tested in 11.4, and a rule like the following one, and the result is that IP::client_addr is not interpreted differently than a string (and not as a variable). I will check but i think this was supposed to be done differently, using tcl type of actions instead of http header insert action. Can't you use in the HTTP Profile the "Header Insert" feature instead ? Here you can use variables if you require them, no ?
ltm policy /Common/TEST { requires { http } rules { MyTestRule { actions { 0 { http-header insert name IP_ADD value [IP::client_addr] } } conditions { 0 { http-host host contains values { . } missing } } ordinal 1 }
- Philippe_CLOUP_Nov 04, 2013Historic F5 Accountsomething like this (for the HTTP Profile): ltm profile http /Common/HTTP_Insert_ClientIP { app-service none defaults-from /Common/http header-insert "HeaderInsert: [IP::client_addr]" }
- Vsevolod_PetrovNov 07, 2013CirrostratusHi Philou! Common syntax is incorrect but idea works.
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