Forum Discussion
Anis_Bhambhani
Jun 04, 2020Nimbostratus
Reverse Proxy iRule to restrict the access on IP
Hi, I have a Virtual Server setup with SSL (client and Server) Profile. Virtual Server : https://abc.com There is an extension to this URL for a specific application https://abc.com/iaut...
Mayur_Sutare
Jun 04, 2020MVP
Hello,
First create one DataGroup list of IP addresses to be allowed and map it under Below iRule.
when HTTP_REQUEST {
if {[HTTP::uri] eq "/iauthtoken"}
{
if {not ([class match [IP::client_addr] equals Allow-List])} {
HTTP::respond 403 content "<html><body>Access not permitted</body></html>" Connection Close
TCP::close
}
}
}
Above iRule will allow access to mentioned URI from addresses which are part of Allow-List data group. Rest traffic should work w/o any issue.
Hope it works!
Mayur
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