Linux Netfilter discussions
 help / color / mirror / Atom feed
* iptables 1.4.21, 'recent' bug?
@ 2016-05-08  3:26 Neal P. Murphy
  0 siblings, 0 replies; only message in thread
From: Neal P. Murphy @ 2016-05-08  3:26 UTC (permalink / raw)
  To: netfilter@vger.kernel.org

  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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-08  3:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-08  3:26 iptables 1.4.21, 'recent' bug? Neal P. Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox