For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Max_175689's avatar
Max_175689
Icon for Nimbostratus rankNimbostratus
Aug 26, 2015

Insert Header in Response

hi all,

i want to add a header with lb server selected. moreover i want to hide the real ips, so i created data group with all ips.

my irule looks like this:

when HTTP_RESPONSE {
HTTP::header insert SERVER_NAME [class match -value [LB::server addr] equals "server_odb"]
`


}

now, the irule is working and it does insert the header according to data group, but i constantly receiving tcl error in ltm log:

`01220001:3: TCL error: /Common/IP-Header-Response  - Operation not supported (line 1)     invoked from within "HTTP::header insert SERVER_NAME [class match -value [LB::server addr] equals "server_odb"]"

anyone can help with understanding the issue?

thanks Max

4 Replies

  • yes, i have two more irules.

     

    i've changed the order of the irules and it solved the problem.

     

    Thank you Kevin!! you lead me to the right direction.

     

    now i need to figure out the logic and maybe combine some of the irules together.