Control: tags -1 confirmed upstream

On 2025-11-14, at 16:11:19 +0100, John Hughes wrote:
Package: iptables
Version: 1.8.11-2
Severity: normal

Dear Maintainer,

   * What led up to the situation?

I have a homebrewed "fail2ban" type script that keeps a table of hosts to
ban and regularly cleans it out with a command like:

        /sbin/iptables -w -n -v -L -Z bad-guys

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I tried running the command and got the error:

iptables v1.8.11 (nf_tables): Illegal option `--numeric' with this command
Try `iptables -h' or 'iptables --help' for more information.

   * What was the outcome of this action?

The counters were not zeroed and no output was produced.

   * What outcome did you expect instead?

That the counters be zeroed and the listing of the table (with the counters
before zeroing) be printed without adresss resolution.

This is a regression from 1.8.9-2 where the command does what I want:

# /sbin/iptables -w -n -v -L -Z bad-guys
Chain bad-guys (1 references)
 pkts bytes target     prot opt in     out     source               destination
    6   360 DROP       0    --  *      *       193.221.16.92        0.0.0.0/0
    0     0 DROP       0    --  *      *       185.180.141.47       0.0.0.0/0
Zeroing chain `bad-guys'

Confirmed.  I will report this upstream & get it fixed.

J.

Attachment: signature.asc
Description: PGP signature

Reply via email to