• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Fail2Ban hangs and turns off

daanse

Regular Pleskian
Hi,
can i "tune" Fail2Ban for a bigger Server?
i have at about 280 Sites on one Server and already turned this Piped Logs and Prefork to on.
Any Ideas would be awesome?
if i want to whitelist or aktivate an Ip i have to wait at about 1 Minute till something happens in Panel...
 
Hi,
thank you.
i just ran:

# ps aux | grep fail2ban|awk '{print $2}'
7795
28421

What does these Numbers mean? I'm at Step 1 from the Solution below 300 Domains.
 
Also also noticed something.
i went to Fail2Ban > Logs > opend the First File /var/log/fail2ban.log <-
and the first Lines of this File are always doubled for each Domain

Code:
2016-06-19 06:54:30,117 fail2ban.filter [15182]: INFO Log rotation detected for /var/www/vhosts/system/somedomain.de/logs/access_log
2016-06-19 06:54:30,361 fail2ban.filter [15182]: INFO Log rotation detected for /var/www/vhosts/system/somedomain.de/logs/access_log
2016-06-19 06:54:41,695 fail2ban.filter [15182]: INFO Log rotation detected for /var/www/vhosts/system/somedomain2.de/logs/access_log
2016-06-19 06:54:41,946 fail2ban.filter [15182]: INFO Log rotation detected for /var/www/vhosts/system/somedomain2.de/logs/access_log

does this means something?
 
Hi,
your first post looks like you have a stuck process as you have 2, on my test server i get...
root@plesk:~# ps aux | grep fail2ban|awk '{print $2}'
9471


The second post, that's fail2ban logging when Plesk runs logrotate.
I hope that answers your questions.
Regards

Lloyd
 
@Daka Media KG,

I suggest that I will create a new (private) conversation with you and invite @Lloyd_mcse loyd_mcse, so we can have a look together and discuss

- the (multiple) root causes of the problem and the priority of each of them,
- alternative solutions, in order to fine-tune your system.

Would that be a good suggestion, acceptable for both of you? (both @Daka Media KG and @Lloyd_mcse)

Regards........
 
Okay,
how can i kill the 28421 ? Seems for me, it doesnt belong there?
am i supposed to run the full command with the "|xargs kill -9" ?
 
Okay,
how can i kill the 28421 ? Seems for me, it doesnt belong there?
am i supposed to run the full command with the "|xargs kill -9" ?

Yeah that's right...
Code:
# ps aux | grep fail2ban|awk '{print $2}'|xargs kill -9

Run that and it will kill the processes for you.
Regards

Lloyd
 
@Lloyd_mcse and @Daka Media KG

The conversation has been created.

Take your time.

PS..........Note that running the command

ps aux | grep fail2ban|awk '{print $2}'

will yield the process IDs for

1) the fail2ban process itself: this process should not be killed in anyway
2) the grep process: this process is irrelevant,

and, in short, adding the "xargs kill -9" to the end is essentially the same as executing the command: service fail2ban stop (and that is a bit more safe, kill -9 is rather forceful).
 
Back
Top