Forum Discussion

atoth's avatar
atoth
Icon for Cirrus rankCirrus
May 11, 2013

Doing redirects from VIPs on one loadbalancer to VIPs on another.

I might not need the solution to this problem anymore, but this has been driving me crazy for the past week.

 

I've got a VIP on load balancer which has and irule. With a certain URI, it redirects to a VIP on another F5, which also has irules. After implementing the irules, I get the following when trying to open the browser with the redirect. "The connection has been reset."

 

 

when HTTP_REQUEST {

 

if {[HTTP::uri] contains "/foo/BAR" }

 

pool my-vip-redirect

 

} else {

 

pool my-vip

 

}

 

}

 

 

The pool, my-vip-redirect is a pool with a single server in it, the IP for the VIP on the other F5 listening on port 8443

 

 

Now on the second loadbalancer, where the second VIP resides

 

when HTTP_REQUEST {

 

if

 

!some elseif statement to other uris snipped!

 

elseif { ([HTTP::uri] contains "/foo/BAR") } { pool othervip-US-BAR-8443 }

 

!more elseif statements to other uris snipped!

 

}

 

 

As I said, this has been puzzling me all week, but it looks like they were planning to move the second VIP onto the same lb where the first LB resides, which should make things much easier. Would've been nice if they'd mentioned that beforehand, but I'd still like to know what was happening here to prevent it from working.

 

 

19 Replies