312-39 · Question #105
312-39 Question #105: Real Exam Question with Answer & Explanation
The correct answer is C. $ iptables -A INPUT -j LOG. The command to enable logging in iptables for incoming packets is $ iptables -A INPUT -j LOG. This command appends a rule to the INPUT chain that logs the packet information. The -A flag is used to append the rule to the end of the specified chain, which in this case is INPUT, in
Question
Exhibit
Options
- A$ iptables -B INPUT -j LOG
- B$ iptables -A OUTPUT -j LOG
- C$ iptables -A INPUT -j LOG
- D$ iptables -B OUTPUT -j LOG
Explanation
The command to enable logging in iptables for incoming packets is $ iptables -A INPUT -j LOG. This command appends a rule to the INPUT chain that logs the packet information. The -A flag is used to append the rule to the end of the specified chain, which in this case is INPUT, indicating that the rule applies to incoming packets. The -j LOG part of the command specifies the target of the rule, which is LOG, meaning that the packet will be logged. EC-Council’s Certified SOC Analyst (CSA) training materials and certification guidelines1 InfraExam 2024, Certified SOC Analyst Part 01, which includes details on iptables commands2
Community Discussion
No community discussion yet for this question.
