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 app list shows the ready-made profiles for installed services

Ufw
~/tips/tip-ufw-app-profiles-list-info

sudo ufw app list

Uses named service profiles to open the right ports with one word.

Packages like nginx and openssh ship a ufw profile, so I do not have to remember which ports they use.

sudo ufw app list
sudo ufw app info 'Nginx Full'
sudo ufw allow 'Nginx Full'

Profiles live as small files in /etc/ufw/applications.d. app info shows the ports and protocols behind a name, so you know what you open. Names with spaces need quotes. Rules made from a profile show the profile name in ufw status. If you change a profile file, run sudo ufw app update PROFILE to refresh the rules that were built from it.

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