netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ipset/iptables does not check flags related to a set
@ 2012-04-17 14:41 Andreas Herz
  2012-04-17 18:26 ` Jozsef Kadlecsik
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Herz @ 2012-04-17 14:41 UTC (permalink / raw)
  To: netfilter

While i'm adding the functionality i would like for ipset/iptables i
stumbled upon the following issues:

For example you create a bitmap:ip,mac set "foobar" with range
192.168.0.0/24 timeout 3600.
The first issue is, when you want to add a ip like this:

> ipset add foobar 192.168.0.1 timeout 7200

The timeout and the ip is set in the "foobar" set but the timeout stays
on 7200 and won't go down. The correct way would be:

> ipset add foobar 192.168.0.1,12:34:56:78:90:AB timeout 7200

then it's working. So the first suggestion is, that ipset the userspace
program parses the arguments and won't accept just an ip when ip,mac is
needed.

So with this in mind, the issue also occurs in iptables:

> iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j SET
> --add-set foobar src --exist --timeout 600

or

> iptables -A INPUT -m set --match-set foobar src -j LOG --log-prefix
> "foobar set matched: "

Iptables doesn't complain about "src" although "src,src" would be right.

Can anyone confirm this?

I could work on this, if the bug/issue is confirmed. Although the
priority is on the addition and compare-set feature, which is working
quite well here :)

-- 
Andreas Herz

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

end of thread, other threads:[~2012-04-19  8:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17 14:41 ipset/iptables does not check flags related to a set Andreas Herz
2012-04-17 18:26 ` Jozsef Kadlecsik
2012-04-18  7:05   ` Andreas Herz
2012-04-19  7:50     ` Jozsef Kadlecsik
2012-04-19  8:11       ` Andreas Herz

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).