Thus spake Adam Bozanich ([EMAIL PROTECTED]) [16/10/03 23:57]:
> I didn't want to use state rules because the idle
> timeouts bug me.

What about the security implications of not using it?

> I do have a question about the 'keep frags' command...
> Should I add this only to ssh, or most all of the tcp
> protocols?  Only when using state, or any time?  

I generally use keep frags all the time, with all protocols, across all
ports.  But I also use keep state.  Keeping in mind that it's still early in
the morning, I'm not sure how much of a benefit specifying keep frags would
give you if you left out keep state -- it might protect you against
fragmented attacks, but it still leaves your ports considerably more open
than had you specified keep state.

> Here's what I ended up with:
> 
> pass in quick on dc0 from any to <myhost> port = 22 keep frags
> pass out quick on dc0 proto tcp from <myhost> port = 22 to any keep frags
> 
> pass out quick on dc0 proto tcp from <mohost> to any port = 22 flags S keep state 
> keep frags

So you're okay with keeping state for outbound connections, but not inbound?
I won't probe any further, I just find this curious.

And continuing the broaching of the above topic of security and ipf, I've
often seen an 'options' section in ipf lines.  I know people have
discussed as to why this is a good idea before, but I can't rememember why
-- could anyone enlighten me/us on this please?

Reply via email to