QuestionQ134

Log Management

Which of the following commands is used to view iptables logs on Ubuntu and Debian distributions?

  • A

    tailf/var/log/sys/messages

  • B

    tailf/var/log/messages

  • C $ tailf/var/log/kern.log
  • D $ tailf/var/log/sys/kern.log
Explanation

iptables LOG-target output is written to the kernel log; /var/log/kern.log is the relevant log file. Following that file displays new firewall log entries as they are written. Ubuntu’s firewall documentation specifically lists /var/log/kern.log as a location where iptables log output appears.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!