<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32592</bug_id>
          
          <creation_ts>2016-10-08 09:58:52 +0300</creation_ts>
          <short_desc>fail2ban не работает с бэкендом systemd</short_desc>
          <delta_ts>2016-12-05 11:38:18 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>fail2ban</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Вадим Илларионов">gbIMoBou</reporter>
          <assigned_to name="root@altlinux.org">root</assigned_to>
          <cc>mike</cc>
    
    <cc>root</cc>
    
    <cc>toni</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>159120</commentid>
    <comment_count>0</comment_count>
    <who name="Вадим Илларионов">gbIMoBou</who>
    <bug_when>2016-10-08 09:58:52 +0300</bug_when>
    <thetext>В журнале такое:

окт 08 14:32:53 gw fail2ban.jail[5866]: INFO Creating new jail &apos;recidive&apos;
окт 08 14:32:53 gw fail2ban.jail[5866]: ERROR Backend &apos;systemd&apos; failed to initialize due to No module named systemd
окт 08 14:32:53 gw fail2ban.jail[5866]: ERROR Failed to initialize any backend for Jail &apos;recidive&apos;
окт 08 14:32:53 gw fail2ban.transmitter[5866]: WARNING Command [&apos;add&apos;, &apos;recidive&apos;, &apos;systemd&apos;] has failed. Received RuntimeError(&quot;Failed to initialize any backend for Jail &apos;recidive&apos;&quot;,)
окт 08 14:32:53 gw fail2ban-client[5831]: ERROR  NOK: (&quot;Failed to initialize any backend for Jail &apos;recidive&apos;&quot;,)

[root@gw etc]# python -c &apos;from systemd import journal; print &quot;OK&quot;&apos;
Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
ImportError: No module named systemd

[root@gw etc]# rpm -q systemd fail2ban
systemd-230-alt1.M80P.1
fail2ban-0.9.3-alt3

[root@gw etc]# cat /etc/fail2ban/jail.local 
[DEFAULT]
banaction = iptables-ipset-proto6
backend   = systemd

[sshd]
enabled   = yes

[sshd-ddos]
enabled   = yes

[recidive]
enabled   = yes
banaction = iptables-ipset-proto6-allports

В Сизифе с systemd-231 картина та же.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159121</commentid>
    <comment_count>1</comment_count>
    <who name="Вадим Илларионов">gbIMoBou</who>
    <bug_when>2016-10-08 10:42:17 +0300</bug_when>
    <thetext>Лечится установкой python-module-systemd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>159126</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2016-10-08 13:07:15 +0300</bug_when>
    <thetext>Видимо, это следует учесть в пакете fail2ban (например, сделав метапакет).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160454</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2016-12-05 11:38:18 +0300</bug_when>
    <thetext>fail2ban-0.9.5-alt2 -&gt; sisyphus:

* Mon Dec 05 2016 Anton Farygin &lt;rider@altlinux&gt; 0.9.5-alt2
- removed iptables requires
- added requires to python-module-systemd (closes: #32592)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>