QuestionQ126Verified/Log ManagementCopy linkReport a problemAsk AstroTutorSave questionWhich of the following commands is used to enable logging in iptables?A$ iptables -A OUTPUT -j LOGB$ iptables -A INPUT -j LOGC$ iptables -B INPUT -j LOGD$ iptables -B OUTPUT -j LOGShow AnswerAnswerExplanationAppending a rule with the LOG target to the INPUT chain logs packets arriving at the local system. The -A option appends the rule, and -j LOG selects the logging target.Learn morenetfilter/iptables FAQ: Problems at runtimeiptables(8) manual pageShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion