<?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=19621</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=19621&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Не работает fail2ban».]]></description>
		<lastBuildDate>Fri, 27 Jan 2012 09:27:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=246386#p246386</link>
			<description><![CDATA[<p>Как в filter.py вместо md5 вставить hachlib? Я конечно могу в строке 430 заменить md5 на hashlib но даст ли это что-то и существует ли вообще hachlib для Centos6?# </p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>FileContainer class.<br />#<br /># This class manages a file handler and takes care of log rotation detection.<br /># In order to detect log rotation, the hash (MD5) of the first line of the file<br /># is computed and compared to the previous hash of this line.</p><p>import md5</p><p>class FileContainer:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; def __init__(self, filename, tail = False):<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.__filename = filename<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.__tail = tail<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.__handler = None<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Try to open the file. Raises an exception if an error occured.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; handler = open(filename)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; firstLine = handler.readline()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # Computes the MD5 of the first line.</p></div></div>]]></description>
			<author><![CDATA[null@example.com (pavlar)]]></author>
			<pubDate>Fri, 27 Jan 2012 09:27:07 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=246386#p246386</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=246338#p246338</link>
			<description><![CDATA[<div class="quotebox"><cite>pavlar пишет:</cite><blockquote><div class="quotebox"><cite>Wolfenberg пишет:</cite><blockquote><p><strong>pavlar</strong>, скачать md5</p></blockquote></div><p>Вы имеете ввиду <a href="http://rpmfind.net/linux/rpm2html/search.php?query=perl-Digest-MD5">http://rpmfind.net/linux/rpm2html/searc … Digest-MD5</a>&nbsp; ?</p></blockquote></div><p>Потому что когда я попытался установить <a href="http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/cyrus-sasl-md5-2.1.23-13.el6.x86_64.rpm/download/">http://pkgs.org/centos-6-rhel-6/centos- … /download/</a>&nbsp; то получил сообщение что такой пакет уже установлен&nbsp; Да и в менеджере пакетов видно что он установлен. Да и вообще насколько я понял из сообщения вместо md5&nbsp; рекомендовано пользоваться hashlib</p>]]></description>
			<author><![CDATA[null@example.com (pavlar)]]></author>
			<pubDate>Fri, 27 Jan 2012 07:16:00 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=246338#p246338</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=246337#p246337</link>
			<description><![CDATA[<div class="quotebox"><cite>Wolfenberg пишет:</cite><blockquote><p><strong>pavlar</strong>, скачать md5</p></blockquote></div><p>Вы имеете ввиду <a href="http://rpmfind.net/linux/rpm2html/search.php?query=perl-Digest-MD5">http://rpmfind.net/linux/rpm2html/searc … Digest-MD5</a>&nbsp; ?</p>]]></description>
			<author><![CDATA[null@example.com (pavlar)]]></author>
			<pubDate>Fri, 27 Jan 2012 07:08:35 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=246337#p246337</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=246336#p246336</link>
			<description><![CDATA[<p><strong>pavlar</strong>, скачать md5</p>]]></description>
			<author><![CDATA[null@example.com (Wolfenberg)]]></author>
			<pubDate>Fri, 27 Jan 2012 07:04:13 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=246336#p246336</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=246329#p246329</link>
			<description><![CDATA[<p>Я решил поставить fail2ban из репозитория как вы советовали, потому что SL6.1 приказал долго жить -причем уже второй раз такая ситуация-(сначаластал тормозить mc. потом слетели иксы а потом после перезагрузки пояилось сообщение на черном экране : Kernel panic: not syncing:Attempted to kill init и я не мудрствуя лукаво&nbsp; поставил CentOS 6.2 Final <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /><br />Но когда я запустил service fail2ban start&nbsp; получил сообщение</p><div class="codebox"><pre><code>Запускается fail2ban: /usr/share/fail2ban/server/filter.py:430: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5</code></pre></div><p>Хочу узнать что делать дальше?</p>]]></description>
			<author><![CDATA[null@example.com (pavlar)]]></author>
			<pubDate>Fri, 27 Jan 2012 06:51:14 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=246329#p246329</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=245467#p245467</link>
			<description><![CDATA[<div class="quotebox"><cite>Vadimsky пишет:</cite><blockquote><p>[quote=pavlar<br />Попробуйте поставить из репов что то ещё, например мс, или htop. Если проблема конкретно с юмом - то тут одно лекарство, если с какойто репой то лекарство другое, но оно по любому есть.</p></blockquote></div><p>Юмом я поставил все нужные мне приложения безо всяких проблем. А сейчас вроде fail2ban работает и сообщения об забаненых айпишниках складывает в /var/log/fail2ban.log . Но почему он не работал а потом вдруг через 2 дня заработал непонятно. Но мне главное чтобы один пользователь вошёл, и ему&nbsp; fail2ban не сделал отлуп . Я не могу сделать проше : забанить всех в hosts.deny а в hosts.allow прописать его адрес поскольку у его провайдера динамическое распределение адресов</p>]]></description>
			<author><![CDATA[null@example.com (pavlar)]]></author>
			<pubDate>Tue, 24 Jan 2012 06:53:00 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=245467#p245467</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=245466#p245466</link>
			<description><![CDATA[<div class="quotebox"><cite>Hrafn пишет:</cite><blockquote><p>Проблем с репами в данном случае быть не должно, fail2ban в стандартных репах лежит.. если только уже до этого что-то пошло не так</p></blockquote></div><p>Я ставил отсюда <a href="ftp://rpmfind.net/linux/epel/6/x86_64/fail2ban-0.8.4-24.el6.noarch.rpm">ftp://rpmfind.net/linux/epel/6/x86_64/f … noarch.rpm</a></p>]]></description>
			<author><![CDATA[null@example.com (pavlar)]]></author>
			<pubDate>Tue, 24 Jan 2012 06:51:20 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=245466#p245466</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=245401#p245401</link>
			<description><![CDATA[<p>Проблем с репами в данном случае быть не должно, fail2ban в стандартных репах лежит.. если только уже до этого что-то пошло не так</p>]]></description>
			<author><![CDATA[null@example.com (Hrafn)]]></author>
			<pubDate>Mon, 23 Jan 2012 18:02:57 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=245401#p245401</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=245390#p245390</link>
			<description><![CDATA[<div class="quotebox"><cite>pavlar пишет:</cite><blockquote><p>Из репозиторя подвисает&nbsp; 1-я по счету пайтоновская зависимость</p></blockquote></div><p>Это вовсе не повод ставить из исходников и замусовривать систему.<br />Это как раз повод разобраться, а что же ни так? Потому что явно причина в чём то другом, и если сейчас, в конкретной данной ситуации получилось обойти, не факт что получится дальше. А проблемы, они знаете , как снежный ком, стоит только оставить нерешённую, как к ней начинают липнуть другие, мелкие, в итоге сервер падает или ещё чего.<br />Давайте спокойно разберёмся, почему из репов не ставится.<br />Попробуйте поставить из репов что то ещё, например мс, или htop. Если проблема конкретно с юмом - то тут одно лекарство, если с какойто репой то лекарство другое, но оно по любому есть.</p>]]></description>
			<author><![CDATA[null@example.com (Vadimsky)]]></author>
			<pubDate>Mon, 23 Jan 2012 17:13:12 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=245390#p245390</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=245283#p245283</link>
			<description><![CDATA[<div class="quotebox"><cite>Vadimsky пишет:</cite><blockquote><p>Всётаки переустановите по-человечески - из репозитариев.</p></blockquote></div><p>Из репозиторя подвисает&nbsp; 1-я по счету пайтоновская зависимость я пару часов подождал а потом надоело хотя можно было и не ждать и так видно было что висит</p>]]></description>
			<author><![CDATA[null@example.com (pavlar)]]></author>
			<pubDate>Mon, 23 Jan 2012 09:29:55 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=245283#p245283</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=245278#p245278</link>
			<description><![CDATA[<p>Всётаки переустановите по-человечески - из репозитариев.</p>]]></description>
			<author><![CDATA[null@example.com (Vadimsky)]]></author>
			<pubDate>Mon, 23 Jan 2012 09:19:18 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=245278#p245278</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=245271#p245271</link>
			<description><![CDATA[<p>Я остановил сервис и решил посмотреть что изменится Вроде ничего не изменилось в secure: как китайцы ломились так и&nbsp; продолжали ломиться Но&nbsp; потом всё же решил вновь запустить сервис чтобы сравнить статистику....и случилось чудо&nbsp; : fail2ban начал работать хотя до этого я несколько раз давал restart но fail2ban не работал. Теперь непонятно будет ли он дальше работать или исковырнется непонятно когда <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /> Так и работаем <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /></p>]]></description>
			<author><![CDATA[null@example.com (pavlar)]]></author>
			<pubDate>Mon, 23 Jan 2012 09:09:14 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=245271#p245271</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244652#p244652</link>
			<description><![CDATA[<p><strong>pavlar</strong>, Ну это же элементрано, Ватсон!<br />Всё тоже самое только в обратном порядке.<br /><div class="termtitle" style="font-family: sans-serif; position:relative; height:auto; width:auto; background:#3A4061; color:#FFFFFF; padding: 1px;"><b> Консоль:</b></div>
<div class="termcont" style="font-family: Terminus; position:relative; height:auto; width:auto; overflow-x:scroll; white-space: nowrap ; overflow-y:auto;background:#000000; color:#4EF44E; line-height:1.2; padding: 3px; font-size: 1rem; max-height: 60vh">service fail2ban stop<br />chkconfig fail2ban off<br />chkconfig --del fail2ban<br />rm -Rf /etc/init.d/fail2ban</div><br />Ну и отвосюду где он был замечен.</p>]]></description>
			<author><![CDATA[null@example.com (Vadimsky)]]></author>
			<pubDate>Fri, 20 Jan 2012 13:54:48 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244652#p244652</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244573#p244573</link>
			<description><![CDATA[<p><strong>Lupo Alberto</strong>, ну ты и не очень умный человек&nbsp; :lol: <br />Тебе не кажется, что &quot;тенденция&quot; - твоих рук дело?<br />Если у кого-то руки растут откуда-то не оттуда, и <br />этот кто-то что-то делает с мозгами других пользователей, <br />то это - твоя вина? <br />Похоже у тебя с мозгами и руками тоже проблемы&nbsp; <img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" /> <br />Вот что бывает, когда у рычагов управления абсолютно<br />неподходящий человек, откровенный флудер.</p><p>P.S. Сообщение конечно сотрут, но скриншот сделан.</p>]]></description>
			<author><![CDATA[null@example.com (SUSE_user)]]></author>
			<pubDate>Fri, 20 Jan 2012 09:53:55 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244573#p244573</guid>
		</item>
		<item>
			<title><![CDATA[Re: Не работает fail2ban]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=244560#p244560</link>
			<description><![CDATA[<div class="quotebox"><cite>Vadimsky пишет:</cite><blockquote><p>...если ставили из исходников, а-ля make &amp;&amp; make install, то тк же и удаляйте make uninstall.</p></blockquote></div><p>В том то и дело что фактически я только пайтон инсталлировал <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /> Вот что я делал<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>tar -xf fail2ban-0.8.4.tar.bz2</p><p>cd fail2ban-0.8.4</p><p>python setup.py install</p><p>cp files/redhat-initd /etc/init.d/fail2ban</p><p>chkconfig --add fail2ban</p><p>chkconfig fail2ban on</p><p>service fail2ban start</p></div></div>]]></description>
			<author><![CDATA[null@example.com (pavlar)]]></author>
			<pubDate>Fri, 20 Jan 2012 09:13:19 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=244560#p244560</guid>
		</item>
	</channel>
</rss>
