<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; fail2ban]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=40504&amp;type=atom" />
	<updated>2020-10-06T09:38:25Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=40504</id>
		<entry>
			<title type="html"><![CDATA[fail2ban]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=467909#p467909" />
			<content type="html"><![CDATA[<p>Подскажите пожалуйста как в fal2ban заблокировать данный ip по таким логам:</p><p>2020-10-05 18:27:01 auth_login authenticator failed for (User) [212.70.149.5] I=[35.70.211.228]:25: 535 Incorrect authentication data (set_id=dostavka@giri.ru)</p><p>2020-10-05 18:27:12 auth_login authenticator failed for (User) [212.70.149.5] I=[95.119.1.3]:25: 535 Incorrect authentication data (set_id=copia@giri.ru)</p><p>ломится на резерв и на основной канал с перебором ящиков.</p><p>Есть такое правило но оно не отрабатывает:</p><p>failregex = \[&lt;HOST&gt;\] .*(?:rejected by local_scan|Unrouteable address)</p><p>\[&lt;HOST&gt;\] I=[[0-9.]+]:25: 535 Incorrect authentication data</p><p>при проверке выдает вот это:</p><p>[root@gateway exim]# fail2ban-regex /var/log/exim/main.log /etc/fail2ban/filter.d/eximnew.conf</p><p>Running tests<br />Use regex file : /etc/fail2ban/filter.d/eximnew.conf Use log file : /var/log/exim/main.log</p><p>Traceback (most recent call last): File «/usr/bin/fail2ban-regex», line 372, in ? fail2banRegex.testRegex(line) File «/usr/bin/fail2ban-regex», line 225, in testRegex ret = self.__filter.processLine(line) File «/usr/share/fail2ban/server/filter.py», line 243, in processLine timeMatch = self.dateDetector.matchTime(l) File «/usr/share/fail2ban/server/datedetector.py», line 114, in matchTime match = template.matchDate(line) File «/usr/share/fail2ban/server/datetemplate.py», line 58, in matchDate dateMatch = self.__cRegex.search(line) KeyboardInterrupt</p>]]></content>
			<author>
				<name><![CDATA[supp0rt2019]]></name>
				<uri>https://linuxforum.ru/profile.php?id=41618</uri>
			</author>
			<updated>2020-10-06T09:38:25Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=467909#p467909</id>
		</entry>
</feed>
