F5 BIG-IP load balancer persistence cookies

BIGipServerexample.com_80_pool=<encoded_ip>.<encoded_port>.<flags>
  • <encoded_ip>: encoded backend IP address (IP address in little-endian format)

  • <encoded_port>: encoded backend port (<port_number> * 256)

  • <flags>:flags (usually unused)

Decode example

175667978.20480.000

IP Address

  • Convert to hex:

    175667978 = 0x0A78B50A
  • Split into bytes (little-endian → reverse):

    0A 78 B5 0A    reverse    0A B5 78 0A
  • Convert to decimal:

    0A = 10
    B5 = 181
    78 = 120
    0A = 10
  • Backend IP = 10.181.120.10

Port

  • Decode the port

  • Write th following script BigIP_cookie_decoder.py:

  • Run the script

Last updated