iRule for conditional page redirection
I am new to iRule and i need help in writing the iRule for pagre redirection with condition.
1.When user hits the big-ip first it should check the source IP and based on that it should redirect it to different url.
2. After checking the IP it should read the external which will be placed in big-ip unit itself I have the captured the user names.If user name is not there in the file then it shpould redirect. If the user name is not present it should not redirect.
Need the iRule where it will read the source ip first then read the external file. If source IP is matching and user name is not present in the external file then redirect else dont redirect.
F5 OS is BIG-IP 9.6.1
Any help will be appreciated.