Configuring fail2ban on AL2023 (2023.6.20241212) with firewallD? #869
-
I see that fail2ban is now available on AL2023 per: https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes-2023.6.20241010.html I installed it with: sudo dnf install fail2ban Noticed the firewalld service was created during install: Two immediate issues presented themselves:
I just want to use fail2ban with a simple jail and configuring it with FirewallD seems like a hassle -- what are my options? Any help + guidance is appreciated! Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I did some more reading on firewalld and was able to add the http + https service to open those ports/services, then I realized fail2ban defaults to using iptables (if you have copied the default jail.conf to jail.local to make configuration changes, or whitelist your IP) so firewalld wasn't even necessary in my case. I disabled firewalld with: |
Beta Was this translation helpful? Give feedback.
I did some more reading on firewalld and was able to add the http + https service to open those ports/services, then I realized fail2ban defaults to using iptables (if you have copied the default jail.conf to jail.local to make configuration changes, or whitelist your IP) so firewalld wasn't even necessary in my case. I disabled firewalld with:
systemctl disable firewalld
.