Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > IPFW logging

 
IPFW logging
Thread Tools
Fresh-Faced Recruit
Join Date: Dec 2002
Status: Offline
Aug 30, 2003, 01:16 AM
 
Maybe this will prove handy for someone in the future. To enable logging with ipfw, you need to do a coupla things.

First, ignore the man page that tells you that ipfw logs to LOG_SECURITY. It doesn't. It logs to LOG_KERN. So adding this

kern.* /var/log/kernel.log

to the end of your /etc/syslogd.conf file will enable logging.

Now

sudo touch /var/log/kernel.log

and

sudo killall -HUP syslogd

Voila. Your 'log' commands in ipfw will work now. :-)

Finally...
Take a look in /etc/periodic/weekly/500.weekly to see where the other logs (ftp.log, system.log, etc) get rotated. Add kernel.log into the mix to prevent the og file from growing with limits.
     
Mac Elite
Join Date: Sep 2001
Location: Chile
Status: Offline
Sep 2, 2003, 10:26 AM
 
great tip, thx !
apple should make a more powerful GUI for IPFW, the one in Jaguar is not good enough
:: frankenstein / lcd-less TiBook / 1GHz / radeon 9000 64MB / 1GB RAM / w/ext. 250GB fw drive / noname usb bluetooth dongle / d-link usb 2.0 pcmcia card / X.5.8
:: unibody macbook pro / 2.4 Ghz C2D / 6GB RAM / dell 2407wfp - X.6.3
     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:07 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2