I am new to firewallD and have been going through the documentation but I thought maybe I can discuss some things here with everyone. So I see that firewalld has now replaced the iptables service as default firewall from fedora 18 and its based on services and zones rather than dealing with ports directly.
I am particularly interested in configuring the firewall to prevent some common attacks e.g Port scanning, Ping Flood etc and previously have been using iptables to define rules.My idea is to do same with this new firewall.
I have seen this direct command which will allow to pass rules directly to firewall and we can give it iptables argument but at the same time wiki says any rules set using **direct ** are temporary and are flashed when firewall is reloaded/system restarts. Can someone help me how to go about it ? Because I will need this protection from common attacks to be a part of permanent rules.
Edit: More specifically I want to know, Is using direct command the right way to add rules to prevent common attacks?
Thanks in advance