Hopefully someone can assist. Running BIG-IP LTM v10.2, and I’m trying to create an iRule that will redirect to another site when the virtual server is down. I’ve tried several examples from the forums, but nothing seems to work. I set a packet capture, and what I see is:
SYN
SYN, ACK
ACK
RST, ACK
However, the counter on the iRule increments…The virtual server is down by virtue of the pool being down which is doing an HTTP check.
You’d definitely want to include the protocol with the hostname in a redirect as Bhattman noted.
If TMM is sending a RST immediately after the TCP connection is established it might be due to an iRule runtime error. You could check /var/log/ltm for errors when testing.
I’ve seen that reset behavior when a second redirect statment is encountered in the processing of a single request. If there’s more to the irule than what you’ve posted or there are other irules applied to the VIP that will execute after this snippet of code, that’s a very likely culprit. I second hoolio’s suggestion about checking the logs.