Forum Discussion
sundogbrew
Altocumulus
Jun 04, 2013IP restriction irule
I found this old thread and am trying to make it work.
https://devcentral.f5.com/community/group/aft/18255/asg/50
here is what I have
when CLIENT_ACCEPTED {
if { not ([clas...
sundogbrew
Altocumulus
Jun 06, 2013I still can't get this to work, can anyone help? Looks like if it doesn't discard it then it doesn't work. Like the default doesn't do anything? Does that make sense?
This is what I have, do I need an "else" or something else?
when CLIENT_ACCEPTED {
if {!( [class match [IP::client_addr] equals ESB]) }{
Log dropped requests
log local0. "Invalid client IP: [IP::client_addr] - discarding"
drop the request
discard
}
}
Thanks
Joe
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