Forum Discussion
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 }