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 status verbose shows the defaults and the logging level

Ufw
~/tips/tip-ufw-status-verbose-defaults

sudo ufw status verbose

Prints active state, default policies and log level with the rule list.

The plain status list shows rules only. The verbose version also tells me how the firewall behaves for everything else.

sudo ufw status verbose

The header lines show whether ufw is active, the log level, and the default policies for incoming, outgoing and routed traffic, for example deny (incoming), allow (outgoing), disabled (routed). Rules follow below with their direction and, for interface rules, the interface name. That is the first thing I check on an unfamiliar server, since it explains a lot in one screen.

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