Forum Discussion
bbensten_8485
Jul 07, 2014Nimbostratus
logging only when statment is true.
Hi,
I am using the following irule that works perfectly but I would like to insert a log local statement that only logs if an attempt is made that does not meet the IP list (a log on the blockin...
nitass
Jul 07, 2014Employee
e.g.
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] contains "/blah" } {
if { ! [class match [IP::client_addr] equals allowed_IPs]} {
log local0. "[IP::client_addr]:[TCP::client_port] does not match the allowed IP list"
discard
}
}
}
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