I know of iptables. I know of ufw. I've been using ufw in the past just because it's easier to setup and use.

However, which one should I be using? Is iptables more secure? Is ufw more stable?

I have no idea, hence why I'm asking here.

1 Answer 1


Ufw ( uncomplicated firewall) is an easy to use front end for iptables. Stick with ufw for the configuration as you're already using iptables.

  • 2
    Note that iptables comes preinstalled in any Linux distribution so it is good to know how it works. It also has the advantage to be able to create temporary firewall rules by default that will be reset after computer restart. I used ufw and switched to iptables because ufw was uninstalled automatically after an Ubuntu upgrade where I had to remove broken python dependencies, which also removed ufw and made me lost all the firewall rules even after reinstalling ufw...
    – baptx
    Dec 3, 2018 at 17:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .