All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jimmy Thrasibule <thrasibule.jimmy@gmail.com>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: netfilter@vger.kernel.org
Subject: Re: [ipset] Match both on source AND destination
Date: Thu, 11 Apr 2013 18:58:08 +0200	[thread overview]
Message-ID: <1365699488.5674.3.camel@draco> (raw)
In-Reply-To: <alpine.DEB.2.00.1304111726560.32023@blackhole.kfki.hu>

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]


> On Thu, 11 Apr 2013, Jimmy Thrasibule wrote:
> 
> > > Apply two matches:
> > > 
> > > -A FORWARD -m set --match-set mynets src -m set --match-set mynets dst ...
> > 
> > Ah,
> > 
> > That's the first thing I tried but as I didn't load the module twice it
> > wouldn't work.
> 
> Sorry, I don't understand. Why would you need to load the module twice?
> There's no need to load the module at all.

I just mean that I tried something like:

-m set --match-set mynets src --match-set mynets dst

And I got an error saying that --match-set can only be used once. And by
module I was more talking about the match option -m until now I was
thinking that calling it only once would be enough for the whole rule.

--
Jimmy


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2013-04-11 16:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-11 14:52 [ipset] Match both on source AND destination Jimmy Thrasibule
2013-04-11 15:02 ` Jozsef Kadlecsik
2013-04-11 15:23   ` Jimmy Thrasibule
2013-04-11 15:30     ` Jozsef Kadlecsik
2013-04-11 16:58       ` Jimmy Thrasibule [this message]
2013-04-11 18:07         ` 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=1365699488.5674.3.camel@draco \
    --to=thrasibule.jimmy@gmail.com \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=netfilter@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.