Will go bit different way to solve issue. It will be easy to add more url in datagroup
class
. Lets try and update if working.
class host_url {
access.testxyz45.com
abc.testxyz45.com
def.testxyz45.com
mail.testxyz45.com
}
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::host]] equals host_url] } {
persist source_addr 255.255.255.255 600
persist source_addr [] [] -- DevCentral Syntax
Link : https://devcentral.f5.com/wiki/iRules.persist.ashx
}
}
I will request user to click iRule which working and solving issue. So that other can be refer.