Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Neal P. Murphy" <neal.p.murphy@alum.wpi.edu>
To: "netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: iptables 1.4.21, 'recent' bug?
Date: Sat, 7 May 2016 23:26:52 -0400	[thread overview]
Message-ID: <20160507232652.6110bc9d@playground> (raw)

  iptables -A INPUT -p tcp -m tcp --dport 22 -m state --state NEW -m recent --mask 255.255.255.0

results in 

  iptables v1.4.21: unknown option "--mask"
  Try `iptables -h' or 'iptables --help' for more information.

Yet iptables -m recent --help includes:

    --mask netmask              Netmask that will be applied to this recent list.

Looking at the source, the only oddity I see is that struct xt_recent_mtinfo does not contain mask, while struct xt_recent_mtinfo_v1 does contain mask. Is this telling me that --mask used to be, but is no longer, supported? Or is it a bug where a simple patch can fix it?

FWIW, v1.6.0's libxt_recent.c is unchanged.

Thanks,
Neal

                 reply	other threads:[~2016-05-08  3:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160507232652.6110bc9d@playground \
    --to=neal.p.murphy@alum.wpi.edu \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox