<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; fail2ban]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=40504</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=40504&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «fail2ban».]]></description>
		<lastBuildDate>Tue, 06 Oct 2020 09:38:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=467909#p467909</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (supp0rt2019)]]></author>
			<pubDate>Tue, 06 Oct 2020 09:38:25 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=467909#p467909</guid>
		</item>
	</channel>
</rss>
