When switching to Fedora I was disappointed to find that there was no support for using Uncomplicated Firewall, something I enjoyed on Arch Linux. Although it is not in the Fedora repos, it can still be installed and used.
- Download the UFW source code from Launchpad
- Unpack and install the source code. Do this with the traditional 'Untar, Configure, Make'. If you are unfamiliar with compiling software from scratch, the README in the download explains, and a quick google will explain further.
- Once installed, run
systemctl stop iptablesto stop the regular iptables firewall process. Do the same for any Fedora Firewall tools like FirewallD
systemctl stop firewall.
- Enable UFW!
sudo ufw enable
- Add your rules as usual! e.g
ufw allow 22/tcp, ufw limit 22/tcp