Portál AbcLinuxu, 14. května 2025 04:30
# Fail2Ban configuration file # # # $Revision: 716 $ # [Definition] # Option: failregex # Notes.: regex to match failures to find a home directory on a server, which # became popular last days. Most often attacker just uses IP instead of # domain name -- so expect to see them in generic error.log if you have # per-domain log files. # Values: TEXT # failregex = [[]client <HOST>[]] File does not exist: /var/www/hosts/user/domena.cz/foruma do jail.conf jsem přidal
[apache-noforum] enabled = true port = http,https filter = apache-noforum logpath = /var/www/hosts/user/domena.cz/logs/error_log maxretry = 1 findtime = 1 #ban for 25 hours bantime = 600 action = iptables[name=HTTP, port=http, protocol=tcp]Přesto mi to do firewallu ip adresy, které se v tom logu objevujou nepřidává. A v tom logu je:
[Thu Oct 11 11:05:08 2012] [error] [client 91.237.249.83] File does not exist: /var/www/hosts/user/domena.cz/forum, referer: http://forum.domena.cz/Dělám něco špatně? Předem děkuji za odpovědi.
Řešení dotazu:
failregex = \[client <HOST>\] File does not exist: /var/www/hosts/user/domena.cz/forum
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.