20

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.

Piers Karsenbarg
  • 538
  • 3
  • 12
  • 24

1 Answers1

24

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

user9517
  • 114,104
  • 20
  • 206
  • 289
  • 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 03 '18 at 17:41