Date: Fri, 6 Feb 2004 12:38:33 +0200 From: Peter Pentchev <roam@ringlet.net> To: Alex <tmp@tern.ru> Cc: freebsd-security@freebsd.org Subject: Re: ipfw question Message-ID: <20040206103833.GD4848@straylight.m.ringlet.net> In-Reply-To: <614479869.20040206131706@tern.ru> References: <614479869.20040206131706@tern.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Fri, Feb 06, 2004 at 01:17:06PM +0300, freebsd@tern.ru wrote:
> Dear All.
>
> I want to use 'not' for 2 addresses (for both) in ipfw2 rule.
> The only way that looks like what I need is
>
> # ipfw add count from IP1 to not IP2,IP3
>
> But does this rule indeed makes what I want? Does it count all
> packets destined to addresses other then IP2 AND IP3?!
>
> No other syntax works.
> For example more logically correct
> not IP2 AND not IP3
> or even
> not { IP2 or IP3 }
> are understood by ipfw2
Could you try
ipfw add count from IP1 to not { IP2,IP3 }
G'luck,
Peter
--
Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org
PGP key: http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553
If I had finished this sentence,
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFAI26p7Ri2jRYZRVMRAl34AJ40qLbrb7KzFPa/z9MUFYLMy6/6xQCfbCwe
EnmffqdUJ+EAD5dt4r8/WRY=
=9pEN
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040206103833.GD4848>
