Forum Discussion

david_20653's avatar
david_20653
Icon for Nimbostratus rankNimbostratus
Oct 14, 2009

Redirect Source IP to Pool

Hi

 

 

we have Pool that contains five ssl servers

 

I need to write an IRule to Redirect one source IP client to this pool but only to four of the

 

ssl servers except one

 

 

Thank you

1 Reply

  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    It would probably be easiest to set up a second pool with the four members and then use the IP::addr command (Click here) an iRule to check the client IP address (retrieved using IP::client_addr Click here) and select the second pool. Or if possible, it would probably be easier to create a new virtual server which references the second pool and have that single client access the second virtual server.

    Here is an example of the first option:

     
     when CLIENT_ACCEPTED { 
      
         Check if client IP is 1.1.1.1 
        if {[IP::addr [IP::client_addr] equals 1.1.1.1]}{ 
      
            Select the second pool 
           pool second_pool 
        } 
         Any other client will use the default pool on the VIP 
     } 
     

    Aaron