Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2003 10:31:59 -0500
From:      Richard Coleman <richardcoleman@mindspring.com>
To:        Antti Louko <alo@iki.fi.invalid>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: ipfw/ipf IP filtering thoughts
Message-ID:  <3FCA0D6F.9000709@mindspring.com>
In-Reply-To: <20031130065310.29349.qmail@alo.louko.com>
References:  <20031130065310.29349.qmail@alo.louko.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Antti Louko wrote:

> Generally, I like the (Free)BSD way of doing things.  But the IP
> filtering modules available for FreeBSD lack one feature when compared
> to Linux way (ipchains and iptables).
> 
> In ipchains and iptables you have a sequential list of rules, very
> much like in ipfw and ipf, but you can have several different lists
> which have symbolic names and you can make calls from lists to other
> lists based on normal packet criteria.  If the list is exchausted, the
> scan returns to the previous list.  This makes it possible to make
> filtering decisions much more efficient in complex situation.  You can
> for example scan a certain list only for eg. packets going to for
> example port 25 and so on.  In FreeBSD, you don't have this
> "subroutine call" feature at all and you are limited to only one
> sequential list with a "goto".

In ipf, you can use head/group tags to create a tree-like structure for 
the rules processing.  This works roughly like a subroutine call.  But 
admittedly this starts to look very confusing if you have many levels of 
these.

Pf handles this much cleaner in that the tree structure is derived 
automatically, as long as the rules are ordered correctly.  There is a 
port for pf in the ports tree.  But I haven't tried it, since ipf is 
working fine for me.

Richard Coleman
richardcoleman@mindspring.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FCA0D6F.9000709>