Skip to main content

Where are the logs for ufw located on Ubuntu Server? [Resolved]

I have an Ubuntu server where I am blocking some IPs with ufw. I enabled logging, but I don't know where to find the logs. Where might the logs be or why might ufw not be logging?

Question Credit: blockhead
Question Reference
Asked October 6, 2019
Posted Under: Network
2 Answers

You can also find UFW's logs in the kernel buffer.

sudo dmesg | grep '\[UFW'

credit: Mahmoud Khaled
Answered October 6, 2019
Your Answer