Stopping the logging to console from pf ?

2005-10-20 Thread kilim

Hello,

I'd like to stop pf logging to the console.

So I've read syslog.conf(5)  syslogd(8) and then I tried my best with
/etc/syslog.conf. By deleting one service after another:

*.err;kern.warning;auth.notice;mail.crit   /dev/console

where I've just completely commented out any logging to the console,
but pf is so persistent, that it just keeps logging on.

How can I stop pf from logging to the console as I find it distracting
to type when its various messages keep popping up ?

Thank you !
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Stopping the logging to console from pf ?

2005-10-20 Thread Erik Norgaard

On Thu, 20 Oct 2005, kilim wrote:



Hello,

I'd like to stop pf logging to the console.

So I've read syslog.conf(5)  syslogd(8) and then I tried my best with
/etc/syslog.conf. By deleting one service after another:

*.err;kern.warning;auth.notice;mail.crit   /dev/console

where I've just completely commented out any logging to the console,
but pf is so persistent, that it just keeps logging on.

How can I stop pf from logging to the console as I find it distracting
to type when its various messages keep popping up ?


have you tried to set this in rc.conf?

pflog_enable=YES
pflog_logfile=/var/log/pflog


then restart pflog

Cheers, Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Stopping the logging to console from pf ?

2005-10-20 Thread kilim

Hello Erik, 

and thanks for the fast reply !

On Thu, Oct 20, 2005 at 12:53:53PM +0200, Erik Norgaard wrote:
 On Thu, 20 Oct 2005, kilim wrote:
 
 I'd like to stop pf logging to the console.

sniped

 have you tried to set this in rc.conf?
 
 pflog_enable=YES

I've set this in /etc/rc.conf at the very beginning.

 pflog_logfile=/var/log/pflog

That is the default option in /etc/defaults/rc.conf.

But just to be 'crazy' I've now set it in /etc/rc.conf.

 then restart pflog

Did that, no luck. 

BTW I'm running 5.4 stable.

Anything else I can try ?

Thanks !


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Stopping the logging to console from pf ?

2005-10-20 Thread Andrew P.
On 10/20/05, kilim [EMAIL PROTECTED] wrote:

 Hello Erik,

 and thanks for the fast reply !

 On Thu, Oct 20, 2005 at 12:53:53PM +0200, Erik Norgaard wrote:
  On Thu, 20 Oct 2005, kilim wrote:
 
  I'd like to stop pf logging to the console.

 sniped

  have you tried to set this in rc.conf?
 
  pflog_enable=YES

 I've set this in /etc/rc.conf at the very beginning.

  pflog_logfile=/var/log/pflog

 That is the default option in /etc/defaults/rc.conf.

 But just to be 'crazy' I've now set it in /etc/rc.conf.

  then restart pflog

 Did that, no luck.

 BTW I'm running 5.4 stable.

 Anything else I can try ?

 Thanks !


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


Could you try stopping syslogd for a while -
just to see if the messages are coming
through it. /etc/rc.d/syslogd stop
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Stopping the logging to console from pf ?

2005-10-20 Thread Glenn Dawson

At 04:18 AM 10/20/2005, kilim wrote:


Hello Erik,

and thanks for the fast reply !

On Thu, Oct 20, 2005 at 12:53:53PM +0200, Erik Norgaard wrote:
 On Thu, 20 Oct 2005, kilim wrote:

 I'd like to stop pf logging to the console.

sniped

 have you tried to set this in rc.conf?

 pflog_enable=YES

I've set this in /etc/rc.conf at the very beginning.

 pflog_logfile=/var/log/pflog

That is the default option in /etc/defaults/rc.conf.

But just to be 'crazy' I've now set it in /etc/rc.conf.

 then restart pflog

Did that, no luck.

BTW I'm running 5.4 stable.

Anything else I can try ?


You could set kern.consmute=1 using sysctl and see if that does the 
trick.  Keep in mind that will also silence quite a few other things.


-Glenn



Thanks !


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Stopping the logging to console from pf ?

2005-10-20 Thread kilim
On Thu, Oct 20, 2005 at 03:57:14PM +0400, Andrew P. wrote:

 Could you try stopping syslogd for a while - just to see if the
 messages are coming through it. /etc/rc.d/syslogd stop


Thank you very much Andrew P. !

Once I stopped it, the messages kept on pouring to the console. So I
had a look in the pf.conf and sure enought the problem was there:

set debug loud

once I changed it to:

set debug urgent

the noise went away.

Your suggestion helped me find it. Thanks again.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Stopping the logging to console from pf ?

2005-10-20 Thread kilim
On Thu, Oct 20, 2005 at 05:08:22AM -0700, Glenn Dawson wrote:

snip

 You could set kern.consmute=1 using sysctl and see if that does the
 trick.  Keep in mind that will also silence quite a few other
 things.

Although my original problem was solved (see my reply to Andrew P. in
the thread), thanks didn't know about this option. Had a look at
conscontrol(8), very interesting.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]