F5 BIG-IP LTM Specialist: Maintain and Troubleshoot — Question 94

What does the following iRule do?
when CLIENT_ACCEPTED {
if { [matchclass [IP::client_addr] equals WebClient1-Whitelist1] }{
#log local0. "Valid client IP: [IP::client_addr] - forwarding traffic"
#Pool WebClient1
} else {
log local0. "Invalid client IP: [IP::client_addr] - discarding" discard
}
}

Answer options

Correct answer: B

Explanation

The correct answer is B because the iRule is designed to discard traffic from clients whose IPs are not present in the specified whitelist. Options A, C, and D incorrectly describe the behavior of the iRule, particularly in how valid and invalid client IPs are handled.