Re: pf security - is pf failsafe if config file invalid?

2005-12-08 Thread Travis H.
Catching up on very old email. On 11/15/05, Lars Hansson <[EMAIL PROTECTED]> wrote: > > And if, for any reason whatsoever, pfctl fails to run? The system > > remains wide open. > > Becasue that happens a lot > Oh come on now, this is a fringe case if there ever was one. > What if your default

Re: pf security - is pf failsafe if config file invalid?

2005-11-16 Thread Daniel Hartmeier
On Wed, Nov 16, 2005 at 10:21:47AM +0800, Lars Hansson wrote: > > And if, for any reason whatsoever, pfctl fails to run? The system > > remains wide open. > > Becasue that happens a lot > Oh come on now, this is a fringe case if there ever was one. The far more common case where exactly thi

Re: pf security - is pf failsafe if config file invalid?

2005-11-15 Thread Ryan McBride
On Tue, Nov 15, 2005 at 07:22:56PM -, mike scott wrote: > Not currently an issue, as ipf is statically linked into my kernel, and > set to block by default. I believe that's pretty well bomb-proof. I'm > not even sure, come to think of it, that /pf/ can be statically linked > into the freeb

Re: pf security - is pf failsafe if config file invalid?

2005-11-15 Thread Lars Hansson
On Tue, 15 Nov 2005 15:32:11 - "mike scott" <[EMAIL PROTECTED]> wrote: > And if, for any reason whatsoever, pfctl fails to run? The system > remains wide open. Becasue that happens a lot Oh come on now, this is a fringe case if there ever was one. What if your default block kernel has a

Re: pf security - is pf failsafe if config file invalid?

2005-11-15 Thread mike scott
On 15 Nov 2005 at 18:40, Daniel Hartmeier wrote: .. > It's worse than you suspect. If the pfctl binary is corrupt or missing > and fails to run, pf won't ever get enabled at all. Forget about the > fact that an empty ruleset means a default-pass policy. That's I didn't say an /empty/ ruleset. I sa

Re: pf security - is pf failsafe if config file invalid?

2005-11-15 Thread Daniel Hartmeier
On Tue, Nov 15, 2005 at 03:32:11PM -, mike scott wrote: > > if [ "X${pf}" != X"NO" ]; then > > RULES="block all" > > RULES="$RULES\npass on lo0" > > > echo $RULES | pfctl -f - -e > > fi > > > And if, for any reason whatsoever, pfctl fails to run? The system > rema

Re: pf security - is pf failsafe if config file invalid?

2005-11-15 Thread Eric S. Pulley
--On November 15, 2005 10:25:44 AM -0700 "Eric S. Pulley" <[EMAIL PROTECTED]> wrote: > --On November 15, 2005 3:32:11 PM + mike scott > <[EMAIL PROTECTED]> wrote: > >> On 15 Nov 2005 at 8:58, Peter N. M. Hansteen wrote: >> .. >>> The OpenBSD /etc/rc has this code to initialize PF before any

Re: pf security - is pf failsafe if config file invalid?

2005-11-15 Thread Eric S. Pulley
--On November 15, 2005 3:32:11 PM + mike scott <[EMAIL PROTECTED]> wrote: > On 15 Nov 2005 at 8:58, Peter N. M. Hansteen wrote: > .. >> The OpenBSD /etc/rc has this code to initialize PF before any > interfaces >> are up: >> >> if [ "X${pf}" != X"NO" ]; then >> RULES="block all" >>

Re: pf security - is pf failsafe if config file invalid?

2005-11-15 Thread mike scott
On 15 Nov 2005 at 8:58, Peter N. M. Hansteen wrote: .. > The OpenBSD /etc/rc has this code to initialize PF before any interfaces > are up: > > if [ "X${pf}" != X"NO" ]; then > RULES="block all" > RULES="$RULES\npass on lo0" > echo $RULES | pfctl -f - -e > fi > And if

Re: pf security - is pf failsafe if config file invalid?

2005-11-15 Thread Peter N. M. Hansteen
"Travis H." <[EMAIL PROTECTED]> writes: > Lots of things in the startup scripts will fail to work or hang > indefinitely if you block outbound stuff. I find it necessary to > allow at least outbound DNS in order for the machine to boot in > reasonable time. The OpenBSD /etc/rc has this code to

Re: pf security - is pf failsafe if config file invalid?

2005-11-14 Thread Daniel Hartmeier
On Mon, Nov 14, 2005 at 11:49:40PM -0600, Travis H. wrote: > 1) On UDP keep state rules, do they allow replies from other IPs? The > DNS spec says that servers can respond from a different IP than the > one they received the query on. No, only replies coming from the expected IP address and UDP

Re: pf security - is pf failsafe if config file invalid?

2005-11-14 Thread Travis H.
Lots of things in the startup scripts will fail to work or hang indefinitely if you block outbound stuff. I find it necessary to allow at least outbound DNS in order for the machine to boot in reasonable time. Fortunately pf is pretty good about allowing outbound but not allowing inbound connecti

Re: pf security - is pf failsafe if config file invalid?

2005-11-09 Thread Nick Holland
On Wed, Nov 09, 2005 at 11:41:27AM -, mike scott wrote: > Background: I'm upgrading to FreeBSD 6.0-release and want to move from > ipf to pf to get the extra flexibility pf offers. welcome! :) > However, I have concerns about the security of pf at system startup and > when the config file

pf security - is pf failsafe if config file invalid?

2005-11-09 Thread mike scott
Hi, I've been directed here from a FreeBSD newsgroup about this question. I've checked the archives, but found nothing relevant. Background: I'm upgrading to FreeBSD 6.0-release and want to move from ipf to pf to get the extra flexibility pf offers. However, I have concerns about the security o