cancel
Showing results for 
Search instead for 
Did you mean: 

Need to redirect from one VIP to another VIP in remote LB

MriMo
Altostratus
Altostratus

Would like to know the irule to redirect one VIP to another VIP hosted in the remote LB, when its pool members are down.

 

1 ACCEPTED SOLUTION

when HTTP_REQUEST { if { [active_members [LB::server pool]] == 0 } { node remote-vs-ip port } }

Example:

when HTTP_REQUEST { if { [active_members [LB::server pool]] == 0 } { node 10.11.12.13 443 } }

 

View solution in original post

5 REPLIES 5

Hi MriMo,

when HTTP_REQUEST { if { [active_members [LB::server pool]] == 0 } { virtual vsname } }

https://clouddocs.f5.com/api/irules/active_members.html

https://clouddocs.f5.com/api/irules/LB__server.html

But the VS which needs to be redirected is not configured in the same LB. It is configured in the remote peer

when HTTP_REQUEST { if { [active_members [LB::server pool]] == 0 } { node remote-vs-ip port } }

Example:

when HTTP_REQUEST { if { [active_members [LB::server pool]] == 0 } { node 10.11.12.13 443 } }

 

let me try this out & know the status

MriMo
Altostratus
Altostratus

Thanks  redirection happened but got into another issue.

 

We have SAML / SSO auth enabled. When the traffic hit the VIP, it got redirected to the other VIP, from the backend server it went to the auth & again got loaded back to the 1st VIP itself, kinda creating a loop.

 

Any suggestions for this.