Forum Discussion
Ravager
Altostratus
Apr 10, 2021restrict access to a vs by a datagroup but temp allow exceptions and log
So i basically have the concept of the what i want to do programatically but need some assistance turning it into a irule. I have virtual server that has open access and I want to change it to ...
spalande
Nacreous
Apr 10, 2021value is optional to add description. you can keep it blank. Reject can be commented out until IP address list is confirmed to allow all traffic
when CLIENT_ACCEPTED {
if { ![class match [IP::client_addr] eq "datagroup_allowed_ip" ] }{
log local0. "Dropped connection: client IP [IP::client_addr] is not in datagroup."
#reject
}
}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
