
Javier Aliaga (Customer) asked a question.
Persistency lost with imperva WAF
Hello, good afternoon.
I had a load-balanced service using a Kemp load balancer with active cookie persistence.
It was working correctly until we implemented an IMPERVA WAF filter.
Users experienced service degradation, as if they were switching from one load balanced server to another and lost persistence.
We verified that the cookie was present in the requests, but the load balancer seems to be ignoring it and randomly reforwarding the request, as if persistence. had been lost.
Any idea? Some similar scenario?
Hi Javier,
Does the Imperva WAF filter sit in front of, or behind the loadmaster?
With active cookie persistence, when a connection comes into a LoadMaster Virtual Service configured with Active Cookie, the LoadMaster looks for a specific cookie. If that cookie is not there, the LoadMaster inserts it into the HTTP stream with a Set-Cookie directive. Existing cookies are not affected. It then will use this cookie value to determine what server to send the request to.
Its possible the Imperva waf is stripping or modifying the cookie that the loadmaster generates for session stickiness.
Best Regards,
Hi Andrew.
It's imperva cloud. The WAF is front of the load master. We have seen the active cookie in the logs of chrome. It seems the cookie doesn't change. It looks like the load master is ignoring the cookie and creating a new persistence.
We opened a case with Imperva but, they said that the don't change the cookie, but it's possible that the source ip of traffic changes. But, i think this is not relevant in the balancing process.
Do you know any similar scenario to that: balancing with imperva and load master?
Thanks in advance