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

Domai's avatar
Domai
Icon for Altostratus rankAltostratus
Jun 28, 2016

Multiple HTTP::header inserts

Hello guys, I have a simple requirement insert 2 header values for application folks. they need to see the end client ip in 2 diff headers. I assumed the below iRule would accomplish that but I can see the end client ip being inserted only on SAP1-Forwarded-Client-IP, the other header SAP2-Forwarded-Client-I is empty.

 

When I expected was if the end client IP is 1.1.1.1 the in the header I expected to see

 

SAP1-Forwarded-Client-IP: 1.1.1.1

 

SAP2-Forwarded-Client-IP: 1.1.1.1

 

What I see now is

 

SAP1-Forwarded-Client-IP: 1.1.1.1

 

SAP2-Forwarded-Client-IP:

 

when HTTP_REQUEST { HTTP::header insert SAP1-Forwarded-Client-IP [IP::client_addr] and { HTTP::header insert SAP2-Forwarded-Client-IP [IP::client_addr] } }

 

1 Reply

  • Use the 2 insert command in 2 different lines without the "and" statement.