brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: ufw logging medium decides how much the firewall writes down

Ufw
~/tips/tip-ufw-logging-levels

sudo ufw logging medium

Sets how many firewall events ufw writes to its log file.

The default log level is low, which records blocked packets that match the default policy. Other levels show more or less.

sudo ufw logging medium
sudo tail -f /var/log/ufw.log

The levels are off, low, medium, high and full. Medium adds allowed packets that do not match a rule, invalid packets and new connections. High adds every packet with rate limiting, and full removes the rate limiting, so the file grows quickly. Use them for a short test and then go back. On Ubuntu the messages end up in /var/log/ufw.log and in the kernel log, if rsyslog is set up that way.

Further reading: ufw manual page

More Ufw tips sudo ufw app update all sudo ufw show raw sudo ufw allow to 10.0.0.1 proto esp sudo ufw allow to 224.0.0.0/24 from 10.0.0.1 proto vrrp sudo ufw show listening All Ufw tips (32) All topics

Link