Which one to use, iptables or firewalld?

Hi,

I want to know which one is better to use for the security, iptables or firewalld ?
Is there any major difference between both of them?

Hi @shubhamsingh240,

Both are valuable and can be us for security purposes. Iptables is a little more complicate to use, but UFW simplifies it.
Firewalld is easy to use for basic rules but can be complicated if we need to manage some advanced rules.

The major difference between then is the notion of zone, firewalld work with zone. By default, All rules are applied in the default zone.

To conclude, none of them is better or bad, but he depends on the use, for personal computers, both can be used, if you need to use, your Linux OS like a router firewalld with zoning can be helpful

Regard

Thanks @mmkmou