It looks like a penetration test is running against a web-application deployed on my centOS7 server. How can I block incoming requests on port 80 and 443, coming from the source IP address 11.21.32.44I would block it using the OS firewall, centOS7 use firewalldReading from fedora documentation the rule should be something similar to this: firewall-cmd --add-rich-rule=  rule family='ipv4'  source address='11.21.32.44'  port protocol='tcp' port='443' rejectOk, now thinking better, I would like to find a way to automatically block specific IP address after N requests with 404 httpd response
Firewalld - blocking robots and penetration tests on web application (80 / 443)
centos;networking;security;firewall;firewalld