F5
303 · Question #223
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. 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
- CThe iRule compares a client IP to a list. If the client IP is on the list, the client is sent to Pool
- DThe iRule compares a client IP to a list. If the client IP is NOT on the list, the client is sent to Pool
How the community answered
(65 responses)- A5% (3)
- B85% (55)
- C8% (5)
- D3% (2)
Community Discussion
No community discussion yet for this question.