QuestionQ134Verified/Log ManagementCopy linkReport a problemAsk AstroTutorSave questionWhich of the following commands is used to view iptables logs on Ubuntu and Debian distributions?Atailf/var/log/sys/messagesBtailf/var/log/messagesC$ tailf/var/log/kern.logD$ tailf/var/log/sys/kern.logShow AnswerAnswerExplanationiptables 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 moreUbuntu Server documentation: FirewallShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion