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

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

    <bug>
          <bug_id>33262</bug_id>
          
          <creation_ts>2017-03-22 12:20:52 +0300</creation_ts>
          <short_desc>efw не смотрит в /etc/net/options.d</short_desc>
          <delta_ts>2019-03-12 18:04:38 +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>etcnet</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</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="Sergey Y. Afonin">asy</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>mrdrew</cc>
    
    <cc>rider</cc>
    
    <cc>sem</cc>
    
    <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>162658</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2017-03-22 12:20:52 +0300</bug_when>
    <thetext># efw restart
Firewall is disabled

Это несмотря на наличие /etc/net/options.d/99-local с
CONFIG_FW=yes

Реагирует только на /etc/net/ifaces/default/options</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162663</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Kornilov">hiddenman</who>
    <bug_when>2017-03-22 16:20:20 +0300</bug_when>
    <thetext>Странно.
В efw есть вызов:

. ${SCRIPTDIR:=/etc/net/scripts}/functions
pickup_defaults

А эта функция же делает:
pickup_defaults()
{
        local of
        for of in /etc/net/options /etc/net/options.d/*; do
                [ &quot;${of%.rpm*}&quot; = &quot;$of&quot; -a &quot;${of%\~}&quot; = &quot;$of&quot; ] || continue
                SourceIfNotEmpty $of
        done
        if [ -z &quot;$SCRIPTDIR&quot; ]; then
                print_error &quot;could not read /etc/net options from usual place&quot;
                exit 2
        fi
}


Что-то переопределяет переменную что ли? Я когда делал, содрал из какого-то скрипта Дениса первоначальную инициализацию, вроде корректно было.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162664</commentid>
    <comment_count>2</comment_count>
    <who name="Anton Farygin">rider</who>
    <bug_when>2017-03-22 16:21:34 +0300</bug_when>
    <thetext>Андрей, да мы сейчас разберёмся, не заморачивайся.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162665</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2017-03-22 16:22:37 +0300</bug_when>
    <thetext>АААА hiddenman в багзилле! Все в машину!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162666</commentid>
    <comment_count>4</comment_count>
    <who name="Andrew Kornilov">hiddenman</who>
    <bug_when>2017-03-22 16:23:26 +0300</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; Андрей, да мы сейчас разберёмся, не заморачивайся.
Эх, а я только решил окунуться в прошлое и написать какой-нибудь скрипт :-)
Вообще, это, конечно, один большой костыль, надо портировать ipfw в Linux.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162667</commentid>
    <comment_count>5</comment_count>
    <who name="Andrew Kornilov">hiddenman</who>
    <bug_when>2017-03-22 16:25:07 +0300</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; АААА hiddenman в багзилле! Все в машину!
И тебе привет :)
На самом деле я просматриваю все баги, а потом вечерами грущу, потому что забыл, как их исправлять и как, куда и что собирать.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>162717</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2017-03-23 23:52:00 +0300</bug_when>
    <thetext>(В ответ на комментарий №5)
&gt; На самом деле я просматриваю все баги, а потом вечерами грущу,
&gt; потому что забыл, как их исправлять
Эт проблема.

&gt; и как, куда и что собирать.
А эт как раз поправимо...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>179392</commentid>
    <comment_count>7</comment_count>
    <who name="mrdrew@altlinux.org">mrdrew</who>
    <bug_when>2019-03-12 18:04:38 +0300</bug_when>
    <thetext>CONFIG_FW заданный в options.d отрабатывает корректно, но так-же его можно переопределить в default/options.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>