In some email I received from Filippo Solinas, sie wrote:
> 
> Hi there,
> 
> I run IP Filter 3.4.25 on a Solaris 7 stressed webserver.
> 
> With the default values:
> 
> # define      IPSTATE_SIZE    5737
> # define      IPSTATE_MAX     4013
> 
> the question is: what is the max number of buckets
> and the max number of allowed active states that I
> can see in `` ipfstat -s '' ?
> 
> #ipfstat -s
> IP states added:
>         12387125 TCP
>         86411 UDP
>         28 ICMP
>         1013310064 hits
>         12544096 misses
>         4983 maximum
>         0 no memory
>         3203 bkts in use
>         22186 active
>         86436 expired
>         12364946 closed
> 
> I guess "bkts in use" is always <= IPSTATE_SIZE, right?

No, "bkts in use" is always <= IPSTATE_MAX.

> But what about "active" states? isn't this value related
> to IPSTATE_MAX? ipfstat shows me active states > IPSTATE_MAX.
> I am confused.

So am I!

> And another question.
> Is it possible to tune IPSTATE_SIZE and IPSTATE_MAX _at_runtime_
> on Solaris?

No.  If you change them (they get put in variables) at run time,
you will just crash the machine.  If you put lines like:

set ipf:fr_statemax=10001
set ipf:fr_statesize=15001

in /etc/system, that might allow you to change them without a recompile.
Also, if you set these in /etc/system, the settings will get picked up
by new versions of ipfilter (when installed) without having to edit the
source code to change it.

Darren

Reply via email to