Skip to contentSkip to conversation

iptables 1.4.21, 'recent' bug?

DISCUSSION Neal P. Murphy 1 participant 1 message May 8, 2016

lore
Share & tools
lore
#0 lore 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