Forum Discussion
aboulleill_3013
Nimbostratus
Jan 23, 2018limit access from source 192.168.1.1 to single URL and permit all others
Dears,
I'm trying to write an irule that limit access from source 192.168.1.1 to single url :
else permit to all.When applying the below on VS its not working anymore.
it should be when http_re...
Lee_Sutcliffe
Nacreous
Jan 23, 2018Updated to compensate for route domains
The event will have to be HTTP_REQUEST as you are reading the URI. You were almost there with your attempt, please try the following:
when HTTP_REQUEST {
if {[IP::client_addr] contains "192.168.100.201"}{
if {[string tolower [HTTP::uri]] ne "/cvs/chn.website.cvs.account_1.0?wsdl"} {
reject
}
}
}
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
