All of lore.kernel.org
 help / color / mirror / Atom feed
* Multiple Address specification or match
@ 2004-09-30  5:09 Temp02
  2004-09-30  6:42 ` Swapnil Nagle
  0 siblings, 1 reply; 14+ messages in thread
From: Temp02 @ 2004-09-30  5:09 UTC (permalink / raw)
  To: netfilter-devel

Hello,

How difficult would it be to extend netfilter/iptables to allow multiple
source/destination address pairs (with negation) 'anded' together, as in -s
192.168.0.0/24 -s 10.0.0.0/8 -s ! 230.22.22.0/24. Or a match to do this same
thing?

regards,
Andrew.

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: Multiple Address specification or match
@ 2004-09-30  9:01 Temp02
  2004-09-30  9:54 ` Eric Leblond
  2004-09-30 11:38 ` Henrik Nordstrom
  0 siblings, 2 replies; 14+ messages in thread
From: Temp02 @ 2004-09-30  9:01 UTC (permalink / raw)
  To: Henrik Nordstrom; +Cc: netfilter-devel, Swapnil Nagle

thanks for your feedback but neither of these solutions are particularly
elegant.

The first (using more than one rule), requires the use of a lot more rules
than are really necessary, as an example, lets say that I wanted to prevent
access a range of subnets but allow everything else. Ideally I should be
able to:

iptables -A PREROUTING -d ! 10.0.0.0/8 -d ! 192.168.1.0/24 -d !
172.16.0.0/16 -m whatever -j ACCEPT

instead I would need three explicit drop rules and then an allow everything
else rule. (assuming a default drop policy).

The problem with the IPset/pool options are that they match only on a range
of addresses, not specifically by source or destination, also they seem to
require the use of another userspace program to actually build the sets
which in itself complicates the process.

Is it hard to extend the source and destination match functions to accept
multiple arguments?


> ----- Original Message -----
> From: "Henrik Nordstrom" <hno@marasystems.com>
> To: "Temp02" <temp02@bluereef.com.au>
> Cc: <netfilter-devel@lists.netfilter.org>; "Swapnil Nagle"
> <swapsn@rediffmail.com>
> Sent: Thursday, September 30, 2004 6:34 PM
> Subject: Re: Multiple Address specification or match
>
>
> > On Thu, 30 Sep 2004, Temp02 wrote:
> >
> > > No obviously a single source can't be both addresses, but the intent
is
> to
> > > allow a single rule to be used to match sources from both source
ranges.
> >
> > There is two ways for doing this
> >
> > a) Using two rules, one per IP address.
> >
> > b) Using an ippool/ipset storing the IP addresses.
> >
> > Regards
> > Henrik
> >
>

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

end of thread, other threads:[~2004-10-01 10:39 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-30  5:09 Multiple Address specification or match Temp02
2004-09-30  6:42 ` Swapnil Nagle
2004-09-30  6:47   ` Temp02
2004-09-30  8:34     ` Henrik Nordstrom
2004-09-30  8:59       ` Temp02
2004-09-30 17:05         ` Simon Lodal
2004-09-30  8:46   ` Andrew Hall
  -- strict thread matches above, loose matches on Subject: below --
2004-09-30  9:01 Temp02
2004-09-30  9:54 ` Eric Leblond
2004-09-30 11:42   ` Henrik Nordstrom
2004-09-30 11:38 ` Henrik Nordstrom
2004-10-01  8:41   ` Temp02
2004-10-01  8:47     ` Jozsef Kadlecsik
2004-10-01 10:39     ` Henrik Nordstrom

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.