All of lore.kernel.org
 help / color / mirror / Atom feed
From: Taylor Grant <gtaylor@riverviewtech.net>
To: Igor Popov <igorpopov@newmail.ru>
Cc: netfilter <netfilter@lists.netfilter.org>
Subject: Re: module matches a set of source or destination ip addresses
Date: Tue, 12 Apr 2005 02:30:59 -0500	[thread overview]
Message-ID: <425B7933.2040906@riverviewtech.net> (raw)
In-Reply-To: <200504120928.01319.igorpopov@newmail.ru>

Igor Popov wrote:
> 	Hi all,
> It there iptables module(something like mport), but that matches a set of 
> source or destination ip addresses:
> iptables -A ... -p ... -m megamatcher -s ip1,ip2,...-d ip1,ip2,... -j ...
> 

If the IPs in question are in a subnet you can always specify the subnet it's self.  I.e.

iptables -A ... -p ... -s 192.168.0.0/24 -d 172.30.16.0/128 ... -j ...

You might want to take a look at the set match.  Set uses an external program (ipset?) to create and maintain the sets that are matched against.  I think set will allow you to have multiple IPs in it that are not necessarily in the same subnet or contiguous.  So that may do it for you.  I have not messed with ipset so I'm not much help for you.  Though a read of the man for it should help.



Grant. . . .


      reply	other threads:[~2005-04-12  7:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-12  6:27 module matches a set of source or destination ip addresses Igor Popov
2005-04-12  7:30 ` Taylor Grant [this message]

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=425B7933.2040906@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=igorpopov@newmail.ru \
    --cc=netfilter@lists.netfilter.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.