Forum Discussion

MriMo's avatar
MriMo
Icon for Altostratus rankAltostratus
Oct 24, 2020

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

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

 

  • 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
    	}
    }
    • MriMo's avatar
      MriMo
      Icon for Altostratus rankAltostratus

      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
        	}
        }
  • 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.