netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ed W <lists@wildgooses.com>
To: netfilter-devel@vger.kernel.org
Subject: ipset "contains" question
Date: Mon, 25 Jul 2011 23:25:29 +0100	[thread overview]
Message-ID: <4E2DED59.1030902@wildgooses.com> (raw)

Hi Jozsef,

Many thanks for ipset.  Quick question please: I'm implementing a
captive portal and I have an ipset (CP) containing bitmap:ip,mac.  How
should I best implement rules to:

- Drop packets from same IP, different MAC

I might be missing the obvious, but how do I query to match on IP, then
drop IP with a mismatching MAC (in the bitmap ipset)? Can this be done
without a second ipset tracking only IP?

Thanks for any tips?

Ed W

             reply	other threads:[~2011-07-25 22:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-25 22:25 Ed W [this message]
2011-07-26  9:55 ` ipset "contains" question Jozsef Kadlecsik
2011-07-26 10:24   ` Ed W
2011-07-27  7:17     ` Jozsef Kadlecsik

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=4E2DED59.1030902@wildgooses.com \
    --to=lists@wildgooses.com \
    --cc=netfilter-devel@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;
as well as URLs for NNTP newsgroup(s).