17-Aug-2020 06:53
Hello,
There are cokies to know which backend server we are on with big ip v 14 ?
Best regards,
Solved! Go to Solution.
18-Aug-2020 01:21
Hello Mika.
You can use an iRule to inject a HTTP header with this info.
when SERVER_CONNECTED {
set node [IP::remote_addr]
}
when HTTP_RESPONSE {
HTTP::header insert {LB-SERVER} $node
}
# curl -v http://10.130.4.50 -o /dev/null
...[Omitted]
HTTP/1.1 200 OK
< Date: Tue, 18 Aug 2020 08:18:42 GMT
< Server: Apache/2.2.15 (CentOS)
< X-Powered-By: PHP/5.3.3
< Content-Length: 7677
< Connection: close
< Content-Type: text/html; charset=UTF-8
< LB-SERVER: 172.16.1.2
Regards,
Dario.
17-Aug-2020 08:21
Hello Mika.
If you use cookie persistence, you can force a specific node for being selected in the loadbalancing method.
REF - https://support.f5.com/csp/article/K6917
Regards,
Dario.
18-Aug-2020 01:07
Thanq u for your anser 🙂 but me i want return the ip of node not encrypt, this just for same ip for the devlopper and the project manager for theirs tests the load balancing.
This fonctionnality of the cookie persistence it's the vulnérabily for systeme big ip https://www.nooby.fr/hacking-f5-persistence-cookie/.
Regards,
18-Aug-2020 01:21
Hello Mika.
You can use an iRule to inject a HTTP header with this info.
when SERVER_CONNECTED {
set node [IP::remote_addr]
}
when HTTP_RESPONSE {
HTTP::header insert {LB-SERVER} $node
}
# curl -v http://10.130.4.50 -o /dev/null
...[Omitted]
HTTP/1.1 200 OK
< Date: Tue, 18 Aug 2020 08:18:42 GMT
< Server: Apache/2.2.15 (CentOS)
< X-Powered-By: PHP/5.3.3
< Content-Length: 7677
< Connection: close
< Content-Type: text/html; charset=UTF-8
< LB-SERVER: 172.16.1.2
Regards,
Dario.
18-Aug-2020 01:35
thank you for your help 🙂
18-Aug-2020 01:54
Please, if my answer was helpful, not forget to tag it as 'the best' ;-).
18-Aug-2020 01:56
OK with pleasure 🙂