itskenny0 / fail2ban-endlessh

Combining the powers of endlessh and fail2ban.
The Unlicense
190 stars 9 forks source link

How to make it work with firewalld #1

Closed flyhard closed 2 years ago

flyhard commented 3 years ago

I have a system I'd like to use this on that uses firewalld instead of iptables. Is there a way to make this work there as well?

itskenny0 commented 2 years ago

You should probably only need to change the action config to invoke firewalld instead, have a look here: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide/sec-port_forwarding

Feel free to submit a patch, I can't currently implement this lacking any firewalld systems.

itskenny0 commented 2 years ago

Thanks to work by @eetommyj, there is now an action file that can be used with firewalld.