Configure UFW on Arch Linux
Install and set defaults
pacman -S --noconfirm ufw
ufw default deny incoming
ufw default allow outgoing
Allow services
ufw allow ssh
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
Status
ufw status verbose
Allow from specific IP
ufw allow from 192.168.1.100 to any port 3306
Rate-limit SSH
ufw limit ssh
Delete a rule
ufw delete allow 8080/tcp