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
- A. The iRule compares a client IP to a list. If the client IP is on the list, discard and log the discard.
- B. The iRule compares a client IP to a list. If the client IP is NOT on the list, discard and log the discard.
- C. The iRule compares a client IP to a list. If the client IP is on the list, the client is sent to Pool WebClient1. Otherwise, discard and log the discard.
- D. The iRule compares a client IP to a list. If the client IP is NOT on the list, the client is sent to Pool WebClient1. Otherwise, discard and log the discard.
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.