EC-Council Certified SOC Analyst (CSA) Practice Exam

Session length

1 / 20

Which command is used to enable logging in iptables?

$ iptables -B INPUT -j LOG

$ iptables -A OUTPUT -j LOG

$ iptables -A INPUT -j LOG

The command used to enable logging in iptables with the syntax given is one that appends a rule to the INPUT chain, directing incoming packets to the logging target. In this context, the answer correctly uses the append option '-A' followed by 'INPUT', which specifies that you want to log packets arriving at the host that meets certain conditions.

By choosing to append to the INPUT chain, you ensure that any packet arriving on the network interface(s) can be logged, enabling you to capture critical information about traffic entering the system. The '-j LOG' portion indicates the action to take, which in this case is to log traffic.

This command is essential for monitoring inbound traffic, troubleshooting issues, and enhancing security postures by keeping track of all incoming connections, which can be vital for analyzing potential threats or attacks against a system.

Get further explanation with Examzify DeepDiveBeta

$ iptables -B OUTPUT -j LOG

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy