Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ipfw and logging



On Saturday, June 30, 2001, at 02:41 AM, Andrew Nielsen wrote:

At 07:56 -0700 29/06/2001, Creed Erickson wrote:
At 6:07 PM +0800 6/29/01, Andrew Nielsen wrote:
Can anyone tell me how to get ipfw to actually log anything?

I've read that the Mac OS X kernel has been compiled with options IPFIREWALL_VERBOSE to support logging, but I can't get anything at all logged from ipfw.

Clearly I'm missing something obvious...
--

Caveat: I'm guessing here and could be off-base...

Perhaps you haven't configured syslog to tell it where to put the records generated by ipfw? You probably need a /etc/syslog.conf line something like:

ipfw.* /var/log/firewall.log

You'll need to HUP syslogd for such a change to take effect.

Thanks for the suggestion. I tried it, and the log reports "syslogd: unknown facility name 'ipfw'". Hmm.

"man syslog.conf" will clarify this for you; you can't use an arbitrary 'facility' when setting up syslog config entries. You have to use something the system knows about. In addition, the logging entity has to use the same facility that you're referencing in the config setup.

Regards,

Justin


References: 
 >Re: ipfw and logging (From: Andrew Nielsen <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.