Forum Discussion

technoe_159637's avatar
technoe_159637
Icon for Nimbostratus rankNimbostratus
Oct 29, 2014

Using fiddler custom rules with Big IP F5 LTM

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?

 

6 Replies

  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus

    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?

     

  • The F5 doesn't seem to acknowledge the custom rules. It shows a different ip address than the one requested by the fiddler rules.

     

  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus

    Couple of options (there are more):

     

    1. Write to the log
    2. tcpdump
    3. 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
    
    }