Using Multiple iRule s for Client Selection
i have a domain i.e out.abc.com, there are multiple subdomains also hosted on that vip. I am using an Irule for subdomain based switching.
IRule being used for switching is :
switch [HTTP::host] {
out.abc.com { pool out_abc_com }
out2.abc.com { pool out2_abc_com }
out3.abc.com { pool out3_abc_com }
internal.abc.com { pool internal_abc_com }
default { pool default_i2cinc_com}
}
}
The Issue is i have to limit access of subdomain "internal.abc.com" to some internal ips mentioned in data class.
I tried to use Irule for the access but when i apply that access irule it starts rejecting all traffic of that VIP.
Please advice .
Irule Used for access implementation is:
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals $::allowedAddresses] }{
forward
} else {
discard
}
}