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 > Software - Troubleshooting and Discussion > Mac OS X > Has 10.2.4 changed ipfw logging?

Has 10.2.4 changed ipfw logging?
Thread Tools
Junior Member
Join Date: Mar 2001
Location: Over there
Status: Offline
Reply With Quote
Feb 17, 2003, 04:57 AM
 
I usually use 'sudo sysctl -w net.inet.ip.fw.verbose=1' to enable ipfw logging to /var/log/system.log, and this has always worked fine. However, since I updated to 10.2.4 this command no longer works, despite 'sysctl -a' showing verbose:1 after I issue it. Does anyone know if firewall logging under 10.2.4 has changed/broken, and can anyone offer a solution?

MTIA,
Neil.
     
Senior User
Join Date: Jan 2003
Location: Stuttgart, Germany
Status: Offline
Reply With Quote
Feb 17, 2003, 05:27 AM
 
From what I gathered from the ipfw manpage, this verbose option should only cause output when a rule with a "log" keyword was matched. I don't know what the exact behaviour was, but if it printed out everything by default then it was probably a bug (or at least contradicting the manpage).

If you want to log *all* traffic, add a default route with matches everything and contains a log keyword.

Code:
# Log everything /sbin/ipfw add 10 allow log ip from any to any
But this will cause a lot of output, so you may want to narrow the log-rules down to the things you want to monitor. Alternatively, you can limit the amount it prints by setting `net.inet.ip.fw.verbose_limit' to 1000 or some other value.
     
neely  (op)
Junior Member
Join Date: Mar 2001
Location: Over there
Status: Offline
Reply With Quote
Feb 17, 2003, 06:03 AM
 
Originally posted by entrox:
From what I gathered from the ipfw manpage, this verbose option should only cause output when a rule with a "log" keyword was matched.
Bugger. Yes, you're right. A quick 'sudo ipfw -a list' shows that none of Jaguar's built-in rules are set up to log. I did a clean install for 10.2.4 and that must have screwed up my rules.

Thanks entrox.
     
   
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 07:21 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