Forum Discussion
cymru81
Altocumulus
Aug 26, 2015irule logging?
Hi, we have the following irule that drops blacklisted IPs in place. Is there any way to log when this is triggered and how would we access this log if possible?
when CLIENT_ACCEPTED { if { [class match [IP::client_addr] equals ip-blacklist] } { reject } }
Cheers!
15 Replies
- tatmotiv
Cirrostratus
when HTTP_REQUEST { if { [class match [IP::client_addr] equals ip-blacklist] } { log local0. "[IP::client_addr] blocked due to blacklisting on virtual [virtual name]. Desired FQDN: [HTTP::Host]" reject } } - cymru81
Altocumulus
wow thank you! ill give it a try :)
- cymru81
Altocumulus
getting this when I try to save irule:
error: [undefined procedure: HTTP::Host][HTTP::Host]
- tatmotiv
Cirrostratus
Sorry, it has to read HTTP::host. (lower case)
- cymru81
Altocumulus
Thank you yet again, I owe you a beer :D
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