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

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

    <bug>
          <bug_id>50549</bug_id>
          
          <creation_ts>2024-06-05 15:47:24 +0300</creation_ts>
          <short_desc>Служба iptables или ip6tables не запускается при включении</short_desc>
          <delta_ts>2026-09-15 14:46:37 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p10</product>
          <component>iptables</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Корытов Иван">boot.efi</reporter>
          <assigned_to name="Dmitry V. Levin">ldv</assigned_to>
          <cc>fomchenkovsv</cc>
    
    <cc>ldv</cc>
          
          <qa_contact name="qa-p10@altlinux.org">qa-p10</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>247266</commentid>
    <comment_count>0</comment_count>
    <who name="Корытов Иван">boot.efi</who>
    <bug_when>2024-06-05 15:47:24 +0300</bug_when>
    <thetext>Версия: 1.8.7-alt1

Из-за того, что iptables и ip6tables используют общий файл/метод блокировки, то при запуске системы один из них может не применить правила.
Перезапуск одной из служб вручную применяет правила, т.е. проблем с ними нет.

Пример логов службы iptables:
&gt; июн 05 12:11:59 alt-repo-test iptables[2263]: Applying iptables firewall rules:
&gt; июн 05 12:11:59 alt-repo-test iptables[2301]: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
&gt; июн 05 12:11:59 alt-repo-test iptables[2263]: [FAILED]
&gt; июн 05 12:11:59 alt-repo-test systemd[1]: iptables.service: Main process exited, code=exited, status=4/NOPERMISSION
&gt; июн 05 12:11:59 alt-repo-test systemd[1]: iptables.service: Failed with result &apos;exit-code&apos;.
&gt; июн 05 12:11:59 alt-repo-test systemd[1]: Failed to start IPv4 firewall with iptables.

Пример логов службы ip6tables:
&gt; июн 05 12:20:50 alt-repo-test ip6tables[2266]: Applying ip6tables firewall rules:
&gt; июн 05 12:20:50 alt-repo-test ip6tables[2299]: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
&gt; июн 05 12:20:50 alt-repo-test ip6tables[2314]: Applying ip6tables firewall rules: failed
&gt; июн 05 12:20:50 alt-repo-test ip6tables[2266]: [FAILED]
&gt; июн 05 12:20:50 alt-repo-test systemd[1]: ip6tables.service: Main process exited, code=exited, status=4/NOPERMISSION
&gt; июн 05 12:20:50 alt-repo-test systemd[1]: ip6tables.service: Failed with result &apos;exit-code&apos;.
&gt; июн 05 12:20:50 alt-repo-test systemd[1]: Failed to start IPv6 firewall with ip6tables.

В другом дистрибутиве проблема решается задержкой при запуске: https://access.redhat.com/solutions/3138851

Проблема воспроизводится на двух серверах под управлением ALT Linux p10.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247405</commentid>
    <comment_count>1</comment_count>
    <who name="Фомченков Семен">fomchenkovsv</who>
    <bug_when>2024-06-08 15:22:58 +0300</bug_when>
    <thetext>Ошибка воспроизвелась на ALT Server 10.2 с обновлением до актуального на 08.06.2024 состояния P10.
Проверялось на Sisyphus, ошибка не воспроизвелась</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298897</commentid>
    <comment_count>2</comment_count>
    <who name="Vera Blagoveschenskaya">vercha</who>
    <bug_when>2026-09-15 14:46:37 +0300</bug_when>
    <thetext>Результат проверки актуальности

Состояние:
В p10 iptables-1.8.7 гонка общего lock при старте iptables и ip6tables. На Sisyphus ошибка не воспроизводилась; сейчас iptables-1.8.13.

Рекомендация:
в Сизифе бага нет. Оставить открытым в Branch p10.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>