[How To] Enable iptables log file in Ubuntu 11.04

, , Leave a comment

  • Edit syslog configuration file
    vim /etc/rsyslog.d/50-default.conf
  • Restart rsyslog service
    service rsyslog restart
  • Change owner of the firewall.log file
    chown syslog:adm /var/log/firewall.log
  • After “kern.* -/var/log/kern.log” line add
    #iptables Log
    kern.debug    /var/log/firewall.log

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.