http_header persistence

Hi All,

I would like to use the persistence http_header feature from the 4.5x on the 9.0.4, this should be done somehow via universal persistence and a special iRule, does someone knows how to do this?

Some more details :

We have a header that looks like “X-FORWARDED-FOR = 172.16.16.16” where 172.16.16.16 can be any ip address.

On the 4.5.x there was a persistence called http_header, where we could load balance on the value of the header. So that we load balance on the ip address specified in the header. So

X-FORWARDED-FOR=172.16.16.16 would go to the first server of the pool

X-FORWARDED-FOR=172.16.16.17 would go to the second server of the pool

X-FORWARDED-FOR=172.16.16.18 would go to the third server of the pool

X-FORWARDED-FOR=172.16.16.17 again should need to go again to the second server of the pool

Can someone help me with creating an iRule like this?

Regards,

Jeroen

hi,

I managed to find the solution myself :

The iRule to use is :

rule httpheader_persist {

when HTTP_REQUEST {

persist uie [HTTP::header “X-FORWARDED-FOR”]

}

}

Regards,

Jeroen