Forum Discussion
Richard_Grigsb1
Altostratus
Oct 06, 2022iRule 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
Employee
Oct 06, 2022Try 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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