Re: Source/Destination matching question..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 15 Feb 2005, Samuel Jean wrote:

> On Tue, February 15, 2005 11:41 am, Carl Holtje ;021;vcsg6; said:
> > All-
> >
> > Is there a way to define a rule to combine the following lines:
> > -A INPUT -s xxx.xxx.xxx.xxx -d yyy.yyy.yyy.yyy -j DROP
> > -A INPUT -s zzz.zzz.zzz.zzz -d yyy.yyy.yyy.yyy -j DROP
> >
> > ... something like
> > -A INPUT -s xxx.xxx.xxx.xxx -s zzz.zzz.zzz.zzz -d yyy.yyy.yyy.yyy -j DROP
> >   or even
> > -A INPUT -s xxx.xxx.xxx.xxx -s zzz.zzz.zzz.zzz -j DROP
>
> Yes. But that requires an extension match. Quickly, I can think of 3:
>
> o 'recent' match part of mainline kernel since a while.
>   You can add your `pool' of ips via /proc.
>   See http://www.snowman.net/projects/ipt_recent/
>
> o 'pool' match. You need ippool(8) to feed your pool.
>
> And finally, the best of all:
>
> o 'set' match. Which is part of the ultimate ipset 2.0 (the successor
>   to pool match).
>
>   See http://people.netfilter.org/kadlec/ipset/

IPSet is perfect for what I need! Thanks!

Carl

- --

"There are 10 types of people in the world: Those who understand binary
and those that don't."



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux