1

I have seen countless iptables tutorials where you can configure your iptables to prevent the most common attacks. But the only tutorials I have been able to find on firewalld is how to enable and disable traffic for ssh, http, https, smtp and so on. Is it so that firewalld has built in defence against most common attacks?

For example statements like these are used as a basic protection against bots, and null packets, syn flood attack.

iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP
iptables -A INPUT -p tcp ! --syn -m state --state NEW -j DROP
iptables -A INPUT -p tcp --tcp-flags ALL ALL -j DROP

But I have not been able to find these kinds of things for firewalld. Is it prebuilt in firewalld?

4
  • 1
    Don't believe everything you read on the Internet. None of this is necessary for Red Hat-based systems using either firewalld or the previous system-config-firewall utilities, as all such traffic is already blocked. May 10, 2015 at 5:38
  • Oh ok. So I should not worry about anything else than just allowing things like http, https, ssh, smtp on firewalld then?
    – Alex
    May 10, 2015 at 5:40
  • 1
    Right. Firewalld is default-deny, like any good firewall (and UNlike the tutorials you've been reading). May 10, 2015 at 5:45
  • What about such rules in iptables to prevent DDoS? -> IPtables DDoS Protection
    – aairey
    Apr 22, 2016 at 8:01

0

You must log in to answer this question.

Browse other questions tagged .