Article 5RWCV fail2ban DROP and REJECT

fail2ban DROP and REJECT

by
RickPoleshuck
from LinuxQuestions.org on (#5RWCV)
I am using ufw and fail2ban. When I get 5 bad login attempts in a short time, my fail2ban configuration blocks the ip address temporarily. However, when a hacker looks for a wordpress url that doesn't exist on my server, I block the ip address permanently. In that case, I want to enter a drop into iptables rather than a reject.

The fail2ban/action.d/ufw.conf seems to have a place to set either reject or deny, effectively REJECT or DROP, but that would effect all blocks. Is there a way to configure DROP for some filters and REJECT for others?latest?d=yIl2AUoC8zA latest?i=oZHFfD17n-0:vxzNFc-AuW4:F7zBnMy latest?i=oZHFfD17n-0:vxzNFc-AuW4:V_sGLiP latest?d=qj6IDK7rITs latest?i=oZHFfD17n-0:vxzNFc-AuW4:gIN9vFw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments