Forum Discussion
Richard_Grigsb1
Oct 06, 2022Altostratus
iRule that checks client IP and send to a pool.
I have a case where a Mulesoft private IP address cannot use the FQDN and must use the IP address of the F5 LTM VIP as the host name. I need to limit this access to only IP addresses for the Mulesof...
Kevin_Stewart
Oct 06, 2022Employee
Try this:
when HTTP_REQUEST {
switch [HTTP::host] {
"testwebsiteadminservice.tcbna.net" -
"10.144.112.71" {
if { [class match [IP::client_addr] equals Mulesoft_Non-Prod_VPC] } {
pool DA7POLBACORE-TEST-Pool-1135-OLB-CONE_8444
}
}
default {
reject
}
}
}
Also, if the source addresses are in a single contiguous subnet, you could actually just define this subnet in the Source Address field of the VIP.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects