SteveT_240596
Feb 03, 2016Nimbostratus
session persistance using x-forward-for
The traffic coming to our virtual server is being reverse proxied from 2 TMG servers meaning we only see 2 source IP addresses. The header does contain the x-forward-for address of the original client. Our application team wants us to load balance this traffic across 3 web servers with session persistence. We have tried using the iRule below from an example we found but it does not appear to work. We are new to F5 so appreciate any assistance.
when HTTP_REQUEST { if {[HTTP::header exists "X-Forwarded-For"] }{
persist uie [HTTP::header X-Forwarded-For] 1830 log local0. "PATTS X-Forwarded-For: [HTTP::header X-Forwarded-For]"