Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 19th July 2013, 19:41
jaypabs jaypabs is offline
Join Date: Jun 2013
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Default How to configure fail2ban to block badbot

I am using this tutorial with my web server. Currently I am under attack with so many web crawler. It is eating my bandwidth by downloading so many files (zip file). I thouroughly research on how to prevent this. I already used cloudflare but I need to enable the "I am under attack" setting in order to prevent this badbot. But the "I am under attack" settings is very annoying for my visitors. I also try to block the IP address and it's working fine without enabling the "I am under attack" settings. The problem is if i'm not online and I can't ban/block the IP address manually.

I found this tutorial that enable us to ban the IP address using fail2ban. But I believe that this tutorial is not inline or compatible with ispconfig 3.

The line that I doubt on the tutorial is this "logpath = /var/log/nginx*/*access*.log"

enabled = true
filter = apache-badbots
action = iptables-multiport[name=BadBots, port="http,https"]
logpath = /var/log/nginx*/*access*.log
bantime = 86400 # 1 day
maxretry = 1
In ispconfig 3, the log files is located under /var/log/ispconfig/http/ and not under /var/log/nginx.

So anyone know how to configure fail2ban to comply with ispconfig 3?

I desperately need and answer to prevent badbots.

Thank you
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forwarding SPAM to quarantine. tomrichmond Server Operation 8 20th April 2011 19:50
WebDAV doesn't start - DAVLockDB not created - error 405 Method not allowed maljam Server Operation 2 23rd March 2011 17:06
Ubuntu 10.04 VS ISPConfig 2.2.37 Bicet Installation/Configuration 7 9th March 2011 16:58
Companion Script #2 for The Perfect Server - Fedora 13 x86_64 [ISPConfig 3]" MrCompTech Tips/Tricks/Mods 0 10th July 2010 06:11
fail2ban is doing nothing? rlischer Server Operation 16 29th June 2010 08:29

All times are GMT +2. The time now is 04:43.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.