Forum Discussion
Dianna_129659
Nimbostratus
Oct 14, 2013Simple iRule is not working as expected
Hello. I am very, very new to iRules. This is the rule that we are trying to use to block an IP address. The Events Request Log indicates that we are not actually blocking this IP address, so perhaps...
Kevin_Stewart
Employee
Oct 14, 2013Reformatted:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 70.39.176.44/24] } {
log local0. "Blocking [IP::client_addr]"
reject
}
}
This should certainly block any request from client IP 70.39.176.44. By "Events Request Log", are you referring to the LTM log that this iRule would be logging to? As in you're not seeing this log statement?
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