
Версия пакета : fail2ban.noarch. 0.9.2-1.el6 , CentOS6.7
Модераторы: SLEDopit, Модераторы разделов
| в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Код: Выделить всё
# Fail2Ban configuration file
#
# Author: Cyril Jaquier
#
#
[INCLUDES]
before = iptables-common.conf
[Definition]
# Option: actionstart
# Notes.: command executed once at the start of Fail2Ban.
# Values: CMD
#
actionstart = iptables -N f2b-<name>
iptables -A f2b-<name> -j RETURN
iptables -I <chain> -p <protocol> --dport <port> -j f2b-<name>
# Option: actionstop
# Notes.: command executed once at the end of Fail2Ban
# Values: CMD
#
#actionstop = iptables -D <chain> -p <protocol> --dport <port> -j f2b-<name>
# iptables -F f2b-<name>
# iptables -X f2b-<name>
# Option: actioncheck
# Notes.: command executed once before each actionban command
# Values: CMD
#
actioncheck = iptables -n -L <chain> | grep -q 'f2b-<name>[ \t]'
# Option: actionban
# Notes.: command executed when banning an IP. Take care that the
# command is executed with Fail2Ban user rights.
# Tags: See jail.conf(5) man page
actionunban = iptables -D f2b-<name> -s <ip> -j <blocktype>
[Init]| в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Bizdelnick писал(а): ↑18.08.2015 11:22
Вполне вероятно, причина в этом. Я так понимаю, странная строка всегда в начале лога, то есть во время запуска fail2ban? Только при перезапуске сервиса, или при перезагрузке системы тоже?
Код: Выделить всё
Chain f2b-SSH (3 references)
target prot opt source destination
DROP all -- host114-49-static.11-188-b.business.telecomitalia.it anywhere
DROP all -- 89.248.162.166 anywhere
DROP all -- freelive.arvixevps.com anywhere
DROP all -- static.88-198-92-36.clients.your-server.de anywhere
DROP all -- 46.158.135.112 anywhere
DROP all -- 78.39.148.247 anywhere
DROP all -- pppoe.178-65-118-31.dynamic.avangarddsl.ru anywhere
DROP all -- 208-110-75-253.unassigned.northmo.net anywhere
DROP all -- lasvegas-nv-datacenter.com anywhere
DROP all -- 81.30.120.173 anywhere
DROP all -- 79.97.217.110 anywhere
DROP all -- 91.236.74.6 anywhere
DROP all -- 110.45.132.212 anywhere
DROP all -- 76.74.157.217 anywhere
DROP all -- vm9-11.hosteur.com anywhere
DROP all -- 81.29.253.61 anywhere
DROP all -- 92.60.31.155 anywhere
DROP all -- mail.mcl-turkey.com anywhere
DROP all -- 185.11.66.9 anywhere
DROP all -- 105-17-229-109.pppoe.langate.ua.17.229.109.in-addr.arpa anywhere
DROP all -- tera.fesb.hr anywhere
DROP all -- 104.192.69.45 anywhere
DROP all -- dialin-233241.rol.raiffeisen.net anywhere
DROP all -- 213.174.6.98 anywhere
DROP all -- 90.190.14.62.static.jazztel.es anywhere
DROP all -- 27.254.67.139 anywhere
DROP all -- 89.252.1.11.freenet.com.ua anywhere
RETURN all -- anywhere anywhere
Chain fail2ban-SSH (3 references)
target prot opt source destination
RETURN all -- anywhere anywhereКод: Выделить всё
iptables -L --line-numbers
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 f2b-SSH tcp -- anywhere anywhere tcp dpt:ssh
2 ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
3 ACCEPT icmp -- anywhere anywhere
4 ACCEPT all -- anywhere anywhere
5 ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
6 REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination
Chain f2b-SSH (1 references)
num target prot opt source destination
1 RETURN all -- anywhere anywhere| в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Bizdelnick писал(а): ↑18.08.2015 13:11
Похоже, у Вас мешанина конфигов из пакетов разных версий.
Там ещё какой-то iptablesd есть? Или Вы про firewalld?
| в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Bizdelnick писал(а): ↑18.08.2015 13:21Ищите файлы с суффиксами .rpmold (переименованные старые конфиги, которые благополучно заменены новыми) и .rpmnew (новые конфиги, которые не заменили старые) и разбирайтесь, что там откуда взялось. По крайней мере, надеюсь, что в CentOS это так работает...
Код: Выделить всё
Chain f2b-SSH (3 references)
num target prot opt source destination
1 RETURN all -- anywhere anywhere
Chain fail2ban-SSH (3 references)
num target prot opt source destination
1 RETURN all -- anywhere anywhereКод: Выделить всё
# service fail2ban status
fail2ban: нераспознанная службаКод: Выделить всё
yum install fail2banКод: Выделить всё
:ERROR Failed during configuration: Have not found any log file for apache-auth jail| в консоли вку́пе (с чем-либо) в общем вообще | в течение (часа) новичок нюанс по умолчанию | приемлемо проблема пробовать трафик |
Код: Выделить всё
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
fail2ban-SSH tcp -- anywhere anywhere tcp dpt:ssh
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain fail2ban-SSH (1 references)
target prot opt source destination
RETURN all -- anywhere anywhereBizdelnick писал(а): ↑18.08.2015 14:40Раз нет апача, значит надо отключить соответствующий jail. Непонятно только, почему он оказался включён.
Кроме того при удалении пакета конфиги по идее остаются на месте. Если они не нужны, их надо грохнуть вручную перед повторной усановкой.