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

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

    <bug>
          <bug_id>33011</bug_id>
          
          <creation_ts>2017-01-17 23:25:09 +0300</creation_ts>
          <short_desc>efw restart и stop неправильно работают с ipset</short_desc>
          <delta_ts>2017-06-26 14:48:21 +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>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="Sergey Y. Afonin">asy</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>ldv</cc>
    
    <cc>mike</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>161361</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2017-01-17 23:25:09 +0300</bug_when>
    <thetext># efw restart
Interface is &quot;default&quot;
Table is &quot;filter&quot;
Chain is &quot;&quot;
Action is &quot;restart&quot;

Firewall type is &quot;ipset&quot;
Stopping ipset for default
        Destroying the &quot;ahttpd&quot; set of the &quot;nethash&quot; type
ipset v6.29: Set cannot be destroyed: it is in use by a kernel component
ERROR: /sbin/efw: /sbin/ipset -X ahttpd

то есть, надо, сначала, &quot;Stopping iptables for default&quot;, потом перезапустить ipset, потом &quot;Starting iptables for default&quot;

Если ничего не править, вот так работает:

efw stop ; efw stop ; efw start</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161370</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2017-01-18 09:55:32 +0300</bug_when>
    <thetext>В качестве времянки можно в .bashrc добавить

alias efwrestart=&apos;efw stop ; efw stop ; efw start&apos;
alias efwstop=&apos;efw stop ; efw stop&apos;

Топорно, но работать будет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161375</commentid>
    <comment_count>2</comment_count>
    <who name="Sergey Bolshakov">sbolshakov</who>
    <bug_when>2017-01-18 18:26:11 +0300</bug_when>
    <thetext>попробуйте efw отсюда:
&apos;http://git.altlinux.org/people/sbolshakov/packages/etcnet.git?p=etcnet.git;a=blob_plain;f=etc/net/scripts/contrib/efw;h=e0fced3e4d50db57c6b276ade9ff7102782e0d3f;hb=47a246051c942057efa488541d00166dc0fdab2d&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>161383</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2017-01-19 14:39:36 +0300</bug_when>
    <thetext>(In reply to comment #2)

&gt; попробуйте efw отсюда:

делает вид, что работает.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164425</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2017-06-26 14:48:21 +0300</bug_when>
    <thetext>etcnet-0.9.12-alt1 -&gt; sisyphus:

Mon Jun 26 2017 Anton Farygin &lt;rider@altlinux.ru&gt; 0.9.12-alt1
- added network@.service for manage interfaces via systemctl
  (for example - systemctl enable network@eth0) (closes: #33588)
- bonding: avoid autocreated bond0 iface by dshadrinov (closes: #33273)
- efw: walk fw type list backward on stop by sbolshakov (closes: #33011)
- weakening checks to enable empty bridge interfaces creation by naf (closes: #33295)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>