F5负载均衡获取客户端真实ip

具体步骤
1:Local Traffic-Profiles-Http-改“Insert XForwarded For”为Enable
2:Local Traffic-Virtual servers-点击需要改动的VS-将Type选项更改为Standard-将HTTP Profile 选项更改为Http

 

 

F5在部分情况下基于http中某种信息进行会话保持的方法会失效

1:选择 Local Traffic à Profile à Others à Oneconnect à Create 创建一个新的 oneconnect_eachip profile

2:再在 Virtual Server  oneconnect 属性上由 none 改为选取新创建的oneconnect_eachip profile 即可

F5 应用中插入http头值

when HTTP_RESPONSE {

    HTTP::header insert id "2013"

}