Forum Discussion
Angelo
Nimbostratus
Dec 04, 2012Logging on VS
Hi
I need to write a irule that will tell me which backend node the traffic is being sent to. i have a irule that tells me which pool the traffic is going to and which URL it's calling.
...
Brian_Deitch_11
Dec 04, 2012Historic F5 Account
If you are using cookie persistence you could always decode the cookie hash..
Google around for decode bigip cookie or read below Actual python script:!/usr/bin/env python
example string: 110536896.20480.0000
import struct
import sys
if len(sys.argv) != 2:
print "Usage: %s encoded_string" % sys.argv[0]
exit(1)
encoded_string = sys.argv[1]
print "\n[*] String to decode: %s\n" % encoded_string
(host, port, end) = encoded_string.split('.')
(a, b, c, d) = [ord(i) for i in struct.pack("
Running the script:
root@bt:~/bigip python bigip.py 110536896.20480.0000
[*] String to decode: 110536896.20480.0000
[*]Decoded IP: 192.168.150.6.
root@bt:~/bigip
I've passed this script down to developers and they love it.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects