By default UFW logs everything in the systems log as kernels messages to
/var/log/kern.log. To redirect those messages to a separate log file,
open the log configuration file /etc/rsyslog.d/20-ufw.conf and make sure
the following lines are not commented out: