(ISC)2
301B · Question #51
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"…
The correct answer is B. The iRule compares a client IP to a list. If the client IP is NOT on the list, discard and log the discard. See the full explanation below for the reasoning.
Question
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
}
}
Options
- AThe iRule compares a client IP to a list. If the client IP is on the list, discard and log the discard.
- BThe iRule compares a client IP to a list. If the client IP is NOT on the list, discard and log the discard.
- CThe 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.
- DThe 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.
How the community answered
(26 responses)- A4% (1)
- B73% (19)
- C15% (4)
- D8% (2)
Community Discussion
No community discussion yet for this question.