Forum Discussion
avnishvyas_1974
Nimbostratus
May 28, 2015Datalist Group I rule function
when CLIENT_ACCEPTED {
if { not [matchclass [IP::client_addr] equals $::Pool_Test_Allowed_List] } {
Comment the line below to turn off logging.
log local0. "...
Michael_Jenkins
Cirrostratus
May 28, 2015I think your code looks good. Depending on what version you're running, you could use class instead of matchclass.
when CLIENT_ACCEPTED {
if {[class match [IP::client_addr] equals Pool_Test_Allowed_List]} {
Uncomment the line below to turn on logging.
log local0. "Valid client IP: [IP::client_addr] - forwarding traffic"
} else {
Comment the line below to turn off logging.
log local0. "Invalid client IP: [IP::client_addr] - discarding traffic"
discard
}
}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