iRule - Persistent Pool Selection by Source IP
Hi there,
Newbie to F5 and iRules so apologies if my questions seem too simple. Thank you in advance for your time and help. I skipped the traditional "Hello World" first program to try my hand at an iRule that will soon be needed in our environment. I need an iRule that consistently selects a server pool based on the source IP address of the client. I've tried the code below and although my first hit from source 192.168.3.10 gets me to the "CentOS_Cert_Svr" pool as desired, subsequent "Refresh" from the web browser brings me back to the default "CentOS_Pool". From what I read on "CLIENT_ACCEPTED", this iRule trigger only fires when the connection is created in the Big IP's connection table. I presume that the refresh uses that existing connection and thus does not go through the iRule again and gets sent to the default pool for that VS. Is this interpretation correct? I'm sure this could be solved by setting up persistence on the VS but I would not want the servers in the default pool to also be covered by the persistence settings. Is there a way to solve this using iRules only? Thanks.
- Ben