Forum Discussion
Otto_Schmedlap_
Nimbostratus
Jun 14, 2006F5 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_18Historic F5 AccountSo 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:
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.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" } }
Adding an additional log line to expose the URI requested might reveal something as well.
HTH
/deb - Otto_Schmedlap_
Nimbostratus
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? - hoolio
Cirrostratus
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 - Thanadon_Wattan
Nimbostratus
I face the same problem. it looks like browser receive all content but it doesn't show 'til I click reload button. - Colin_Walker_12Historic F5 AccountThat'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
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
