I am trying to better understand measures that can be used to protect a web-application. I'm trying to determine which would be more effective, implementing a UFW or using IpTables.
From my perspective, they are both as effective as each other but the effectiveness of them is not based on the tools themselves but rather the rules implemented using them. That being said, I think the Iptables operate at the Transport layer and the UFW at the network layer.
For a web-app, which one would be more effective/appropriate to use? I think it would the UFW since it operates at the network layer where malicious packets can be dropped before reaching the transport layer but I remain quite unsure.
Would appreciate any insight into using a UFW or Iptables for web-apps.
iptablesto block an IP, then that's the network layer. I have never heard of a firewall that only works at the transport layer.