Forum Discussion
Thornid
Nimbostratus
Jul 01, 2019Restrict Source IPs iRule
Hi all Forgive what may be such an easy iRule question but unfortunately my experience with them is rather limited and time is of the essence. We have an iRule which looks to be doing something w...
iaine
Nacreous
Jul 01, 2019Hi
To stop processing the iRule further, you can either use Event disable command or you can use a variable to stop specific events or part of code from running depending on requirements. Such as...
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.0/24] } {
SSL::profile new_clientssl
set sourceip 1
}
}
when CLIENTSSL_CLIENTCERT {
if {[info exists sourceip]}{
return}
}this uses return to stop this particular event
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
