Set up a firewall in 2 minutes on Arch Linux

Install the ufw iptables-nft wrapper with:

# pacman -Sy ufw

Enable and start it with:

# systemctl enable ufw
# systemctl start ufw

Configure it. By default, block all incoming connections and allow all outgoing. This is what you typically want:

# ufw default allow outgoing
# ufw default deny incoming
# ufw reload

Done!


~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert