|
|
#1 |
|
All Star
Join Date: Feb 2003
Location: Chico, CA
Posts: 675
|
ipfw.log file
Trying my hand at configuring ipfw for the first time. Very cool. But the logging is...umm...odd.
Have a whole truckload of empty archived ipfw.log files in /var/log/, but ipfw wants to write to system.log. After rummaging through the MOSXH forums on the subject, I've pretty much decided there's no way in hell to get ipfw to write to ipfw.log without writing other kernel messages to the file as well. Seems to need something around kernel.alert level in syslog.conf. So what's the story with this? Why is the system making ipfw.log files if nothing is ever written to them? Has anyone figured out how to actually use this file as an ipfw log? Brad |
|
|
|
|
|
#2 |
|
All Star
Join Date: Feb 2003
Location: Chico, CA
Posts: 675
|
Curiouser and curiouser. Found a method for routing ipfw messages to the ipfw.log file on a FreeBSD site from the *last* page of a Google search. Odd thing is, this method doesn't seem to be documented in the syslog.conf manpage, so I have no idea what it's doing or why it works.
Code:
# Add these two lines to the end of your syslog.conf file !ipfw *.* /var/log/ipfw.log Does anyone know what the syntax of these lines means or how I can eliminate the entries from system.log in the process of writing the ipfw.log? |
|
|
|
|
|
#3 | |||||||||||||||||||
|
All Star
Join Date: Feb 2003
Location: Chico, CA
Posts: 675
|
From the FreeBSD syslog.conf manpage:
I'd guess that OS X supports this, but somehow it was dropped from the manpage. Off to check it out... |
|||||||||||||||||||
|
|
|
|
|
#4 |
|
All Star
Join Date: Feb 2003
Location: Chico, CA
Posts: 675
|
Yessirree, Bob, another candidate for that Missing Manpages book.
To re-route ipfw messages excusively to ipfw.log: Code:
#Add at beginning of sysconf.log file #Excludes ipfw entries from other logs !-ipfw #Add at end of sysconf.log file #Directs ipfw entries to ipfw.log !ipfw *.* /var/log/ipfw.log Brad |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|