<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ip6tables-restore doesn't restore counters"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1751">1751</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ip6tables-restore doesn't restore counters
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.8.x
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Ubuntu
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>iptables-restore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>netfilter-buglog@lists.netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>anton.khazan@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=742" name="attach_742" title="shell script demonstrating the bug">attachment 742</a> <a href="attachment.cgi?id=742&action=edit" title="shell script demonstrating the bug">[details]</a></span>
shell script demonstrating the bug

To reproduce the issue:

ip6tables -X TEST_CNT 2>/dev/null
cat <<EOF | ip6tables-restore -c -n
*filter
:TEST_CNT - [0:0]
[1024:1024] -A TEST_CNT -m comment --comment test_cnt -j ACCEPT
COMMIT
EOF
# end of script

Expected output:
[1024:1024] -A TEST_CNT -m comment --comment test_cnt -j ACCEPT

Actual output:
[0:0] -A TEST_CNT -m comment --comment test_cnt -j ACCEPT


The issue only affects ip6tables-restore (iptables-restore does restore the
counters).

Tested on Linux Mint with nftables.

'ip6tables -V' output:
ip6tables v1.8.7 (nf_tables)

The issue is not happening with ip6tables-restore v1.6.0 on another Debian
system (no nftables installed).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>