Forum Discussion
oninicus_162976
Feb 01, 2016Nimbostratus
Source:IP filter irule
Hi Guys,
Just new to F5 and currently facing some difficulties on irules. Kindly help me on irule for below requirement.
11.5 version
**URL main page can be accesed by anyone from the inter...
Kai_Wilke
Feb 01, 2016MVP
Hi Oninicus,
you may try this iRule snippet as a starting point...
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] eq "/login" } then {
if { ([IP::addr [IP::client_addr] equals 116.213.0.0/16]) or
([IP::addr [IP::client_addr] equals 141.113.128.0/19]) } then {
Let the request pass...
} else {
HTTP::respond 403 content "Access Denied"
}
} else {
Let the request pass...
}
}
Cheers, Kai
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