I am implementing an OpenBSD/IPF border firewall that will protect a large
number of subnets. I am planning to nest my rules fairly deeply for
efficiency.

>From a quick look at the source code, it appeared that the head/group
number was stored in an unsigned 32-bit integer. From this, I assumed I
could use that entire range and developed a numbering methodology that
would allow me to make sense of a relatively large rule set.

Unfortunately, upon attempted implementation it turned out that ipf failed
to load any rule whose group number exceeded 2^16-1 (Under openbsd 3.1, the
error message was "no such process"). Oddly, that same number given as the
argument to head in a previous rule was loaded correctly and ipfstat listed
it.

is this a bug? I haven't had the time yet to investigate the relevant
source code, but intuitively if the number is stored as an unsigned 32, and
there is no error loading the head rule, I don't see why the group rule
should fail to load.

I am currently using 3.4.27 with the FTP proxy and state patch applied.


-- 
Paul B. Henson  |  (909) 869-3781  |  http://www.csupomona.edu/~henson/
Operating Systems and Network Analyst  |  [EMAIL PROTECTED]
California State Polytechnic University  |  Pomona CA 91768

Reply via email to