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

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

    <bug>
          <bug_id>38505</bug_id>
          
          <creation_ts>2020-05-19 22:55:20 +0300</creation_ts>
          <short_desc>Невозможно для всех интерфейсов открыть или закрыть порт</short_desc>
          <delta_ts>2020-05-22 00:50:22 +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>alterator-net-iptables</component>
          <version>unstable</version>
          <rep_platform>x86_64</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>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Georgy A Bystrenin">gkot</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>ekorneechev</cc>
    
    <cc>gkot</cc>
    
    <cc>sem</cc>
    
    <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>190117</commentid>
    <comment_count>0</comment_count>
    <who name="Georgy A Bystrenin">gkot</who>
    <bug_when>2020-05-19 22:55:20 +0300</bug_when>
    <thetext>В acc или alterator-cmdline (компонент net-iptables) невозможно для всех интерфейсов (без явного указания/выбора нужных external интерфейсов) открыть или закрыть порт</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190161</commentid>
    <comment_count>1</comment_count>
    <who name="Georgy A Bystrenin">gkot</who>
    <bug_when>2020-05-21 00:57:58 +0300</bug_when>
    <thetext>Предлагаю такой вариант решения проблемы:

В фротенд добавляем новый режим Хост (mode = host).

В этом режиме внешними ($external_ifaces) автоматически выбираются все интерфейсы, кроме lo и специальных исключений (virbr *, docker *).
Код http://git.altlinux.org/people/gkot/packages/alterator-net-iptables.git?p=alterator-net-iptables.git;a=commitdiff;h=84b11c28044c16e654aa2519add8cb77d2660e13

Также добавляем в фротенд acc и web режим Хост для ipv4 и ipv6.
Код http://git.altlinux.org/people/gkot/packages/alterator-net-iptables.git?p=alterator-net-iptables.git;a=commitdiff;h=91519cc94712cb674b4dc7b7c6d4d416b3209f57

И меняем alterator-l10n для локализации названий (заодно несколько правок под текущий код модуля alterator-net-iptables) http://git.altlinux.org/people/gkot/packages/?p=alterator-l10n.git;a=commitdiff;h=21ee74aeb4489774435f15d43e9953be4473451e

Таска (карман) 251975</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190221</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2020-05-22 00:50:22 +0300</bug_when>
    <thetext>alterator-net-iptables-4.19.8-alt1 -&gt; sisyphus:

 Wed May 20 2020 Georgy A Bystrenin &lt;gkot@altlinux&gt; 4.19.8-alt1
 - net-iptables: Add host mode support (Closes: #38505)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>