netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Funny iptables -L output with 0.0.0.3 netmask
@ 2015-01-22 11:14 Patrick Schaaf
  2015-01-22 12:31 ` Jan Engelhardt
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Schaaf @ 2015-01-22 11:14 UTC (permalink / raw)
  To: netfilter-devel

Hi,

just noticed something funny with "iptables -L" - was always fine in the past, 
e.g. with iptables 1.4.10, but now on a box with iptables 1.4.19 (opensuse 
13.1) I see a funny thing.

Rule:
iptables -A somewhere -s 0.0.0.1/0.0.0.3 -j ACCEPT

Previous / normal list output:
ACCEPT     all  --  0.0.0.1/0.0.0.3      anywhere

Funny output I see now:
ACCEPT     all  --  0.0.0.1/-1           anywhere

The "-1" shows for variations of the nifty mask, too, e.g. /0.0.0.1 or 
/0.0.0.5 or even /127.255.255.255 - apparently anything with a leading 0-bit.

iptables-save output is fine.

Sorry if this is known + maybe already fixed in newer iptables versions...

best regards
 Patrick

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-01-22 13:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-22 11:14 Funny iptables -L output with 0.0.0.3 netmask Patrick Schaaf
2015-01-22 12:31 ` Jan Engelhardt
2015-01-22 13:21   ` Patrick Schaaf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).