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

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

    <bug>
          <bug_id>25921</bug_id>
          
          <creation_ts>2011-07-18 13:03:41 +0400</creation_ts>
          <short_desc>Проблема взаимодействия fail2ban и iptables</short_desc>
          <delta_ts>2011-08-02 07:39:50 +0400</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="Gulay Boris">boris</reporter>
          <assigned_to name="root@altlinux.org">root</assigned_to>
          <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>123265</commentid>
    <comment_count>0</comment_count>
    <who name="Gulay Boris">boris</who>
    <bug_when>2011-07-18 13:03:41 +0400</bug_when>
    <thetext>У меня не добавляются (или не удаляются) некоторые правила в iptables. В логе fail2ban при этом такие записи:

2011-07-18 11:54:59,966 fail2ban.actions.action: ERROR  iptables -N fail2ban-dovecot-imap
iptables -A fail2ban-dovecot-imap -j RETURN
iptables -I INPUT -p tcp --dport imap -j fail2ban-dovecot-imap returned 200
2011-07-18 11:54:59,976 fail2ban.actions.action: ERROR  iptables -N fail2ban-postfix-spam
iptables -A fail2ban-postfix-spam -j RETURN
iptables -I INPUT -p tcp --dport smtp -j fail2ban-postfix-spam returned 200
2011-07-18 12:47:56,355 fail2ban.jail   : INFO   Jail &apos;nginx&apos; stopped
2011-07-18 12:47:57,425 fail2ban.jail   : INFO   Jail &apos;rcguard&apos; stopped
2011-07-18 12:47:58,348 fail2ban.actions.action: ERROR  iptables -D INPUT -p tcp --dport imap -j fai
iptables -F fail2ban-dovecot-imap
iptables -X fail2ban-dovecot-imap returned 100

Очевидно, пощдобная проблема присутствует и в сизифе.
Мне помогло решение отсюда:
http://oschgan.com/drupal/index.php?q=node/52
Описанное изменение заметно замедляет запуск сервиса, но ошибки исчезают и правила добавляются/удаляются корректно. Предлагаю добавить соответствующий код в файл в нашем пакете.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123293</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2011-07-18 18:02:08 +0400</bug_when>
    <thetext>Переношу на Sisyphus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123556</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2011-08-02 07:39:50 +0400</bug_when>
    <thetext>fail2ban-0.8.4-alt4.1 -&gt; sisyphus:

* Tue Aug 02 2011 Eugeny A. Rostovtsev (REAL) &lt;real at altlinux&gt; 0.8.4-alt4.1
- Fixed interaction with fail2ban and iptables (ALT #25921)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>