Forum Discussion
Sachin_M_258695
Nimbostratus
Apr 20, 2017Need an Irule
My Requirement is
When URI stats_with /api/superman and /api/xmen for it shud only allow to 1.1.1.1 and 2.2.2.2 and 3.3.3.3
thanks
Sachin M
janholtz
Altostratus
Apr 20, 2017So, to add to Maneesh's excellent irule
if { [HTTP::host] equals "www.xyz.com" } {
switch -glob [string tolower [HTTP::uri]] {
"/api/admin/" -
"/api/account/" {
if { ([class match [IP::client_addr] equals YOUR_DATA_GROUP_WHICH_HAS_3_IP's] )} {
YOUR_API_POOL }
else {
reject }
}
}
}
}
BR
Jan
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