We use fiddler in our various environments to assign traffic to a particular server with fiddler’s custom rules. We have a rule that says insert this cookie to see traffic on this server. This works (for the most part) in production but not in our QA or team environments. We are running a virtual edition 11.5 LTM with a handful of iRules that are very similar to the rules in production. Nearly everything in our team environments are setup to look like production. Has anyone used fiddler with the LTM like this before?
Are you able to see the requests on the BIG-IP (e.g. write to the log, examine tcpdump) or even in the web server logs?
That’s a great question. I’ll try that now.
The F5 doesn’t seem to acknowledge the custom rules. It shows a different ip address than the one requested by the fiddler rules.
Are you seeing the cookie on the BIG-IP?
How would I know? What should I be looking for?
Couple of options (there are more):
- Write to the log
- tcpdump
- Return a value to the client if the cookie exists.
Sample code for option 1:
when HTTP_REQUEST {
if { [HTTP::cookie exists "your-cookie-name"] } {
log local0.debug "Cookie found: [HTTP::cookie "your-cookie-name"]"
}
}
Sample code for option 3:
when HTTP_REQUEST {
if { [HTTP::cookie exists "your-cookie-name"] } {
set cookieValue
}
}
when HTTP_RESPONSE {
HTTP::header insert "X-Cookie" $cookieValue
}