Basic firewall setup in Arch Linux based distributions using ufw

sudo pacman -S ufw (installs the ufw package)

sudo systemctl start ufw (starts ufw service)

sudo systemctl enabe ufw (starts ufw service by default at boot)

ufw default deny (denies all by default)

ufw allow from 192.168.0.0/24 (allows access from a local LAN network)

https://wiki.archlinux.org/title/Uncomplicated_Firewall


Leave a comment

Discover more from /root

Subscribe now to keep reading and get access to the full archive.

Continue reading