Forum Discussion

Otto_Schmedlap_'s avatar
Otto_Schmedlap_
Icon for Nimbostratus rankNimbostratus
Jun 14, 2006

F5 sending RESET on redirect

I am trying to get a redirect to work per the following config:

 

 

virtualA = 1.1.1.1:80

 

poolA = 1.1.2.1.81, 1.1.2.2:81

 

iruleA =

 

when HTTP_REQUEST {

 

if { [HTTP::uri] equals "/" } {

 

HTTP::redirect "http:///logon/logon.html"

 

}

 

 

I've done a network trace and find the F5 sends a RESET packet after the client initiates an HTTP requet for /logon/logon.html. The client tries twice and quits.

 

 

Send me(ottos07@hotmail.com) your email addr and I'll send you the network trace.

5 Replies

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    So you get the redirect, but the subsequent request is reset?

    I'd guess there are no live members in the default pool.

    You can add a condition to test that & send an HTTP redirect:
    when HTTP_REQUEST {
      if { [active_nodes poolA] < 1 }{
        log local0. "No nodes available for poolA. Redirecting..."
        HTTP::redirect http://fallbackhost/sorry.html
      } elseif { [HTTP::uri] equals "/" } {
        HTTP::redirect "http:///logon/logon.html"
      }
    }
    You could add an explicit else at the end calling the default pool for all other requests, but it should be falling through with the logic you have.

    Adding an additional log line to expose the URI requested might reveal something as well.

    HTH

    /deb
  • What I've found is if I refresh the browser without closing it, the page is displayed like it should be. The network trace on that shows normal traffic flow without the resets. Any ideas?
  • Hi,

     

     

    The rule looks very straightforward. It might be helpful to look at your full configuration and a tcpdump of the failure.

     

     

    Could you open a case with support and include a tech.out from the unit and a tcpdump of the failure?

     

     

    Thanks,

     

    Aaron
  • I face the same problem. it looks like browser receive all content but it doesn't show 'til I click reload button.
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    That's a strange symptom, for sure. If you're using as simple an iRule as was posted above, though, I highly doubt it's a problem with the rule itself. I'd recommend looking into the general config of the VIP/pool/member, and perhaps opening a case with support if needed, as hoolio suggested.

     

     

    Colin