Benches macOS

4

Snow Leopard & IPFW logging

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hello,

Just wondering if IPFW logging is broken in 10.6. I'm using my own IPFW firewall since 10.5 and I noticed that after the 10.6 upgrade, IPFW is still working but doesn't log anything anymore. I noticed that the /etc/syslog seems to have changed at some point. Here's an extract from the backed up one that was working on 10.5:

install.* /var/log/install.log

install.* @127.0.0.1:32376

local0.* /var/log/ipfw.log

Now in 10.6 this looks like this:

install.* /var/log/install.log

install.* @127.0.0.1:32376

local0.* /var/log/appfirewall.log

local1.* /var/log/ipfw.log

And I haven't changed that because then I would have backed it up. So for instance my SSH rule looks like this:

# Allow SSH inbound

add 00700 set 3 count log tcp from any to any dst-port 22 in setup

add 00701 set 3 allow tcp from any to any dst-port 22 in setup keep-state

But my ipfw.log is exactly 0 bytes long and empty... and I definitely get hits on the rules. Here an extract form 'ipfw show':

00700 2 104 count log logamount 100 tcp from any to any dst-port 22 in setup

00701 1888 250506 allow tcp from any to any dst-port 22 in setup keep-state

And yes, the appfirewall.log is also empty which seems to have now taken over the local0 log facility... (the App firewall is not enabled)

Any help is appreciated.

Thanks!

Frank

4 replies

Sign in or join Beachball Help to reply.

  1. 0

    piknyc

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I had the same problem and can't remember exactly what I did to fix it but I think this was it.

    I added the below to /etc/syslog.conf and restarted:

    put this at the top

    !ipfw

    this at the bottom

    . /var/log/ipfw.log

    Message was edited by: piknyc

    Message was edited by: piknyc

  2. 0

    hiro-reason

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Anyone verified whether this works or not? Kinda hate to try stuff on a hunch.

  3. 0

    hiro-reason

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Actually did some checking. Snow leopard logs the firewall behavior in /var/log/appfirewall.log using the local9.* rule in sysconfig. local1 points to the ipfw log, which is truly empty. Checked the log in console, looks like it works.

  4. 0

    cockytrumpet

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    piknyc wrote:

    I had the same problem and can't remember exactly what I did to fix it but I think this was it.

    I added the below to /etc/syslog.conf and restarted:

    put this at the top

    !ipfw

    this at the bottom


    . /var/log/ipfw.log

    This had strange effects in snow leopard. It had no effect on the output of appfirewall.log, but now ipfw.log fills up with
    everything.

    All i want is a clean logfile with my ipfw logs not spammed by the appfirewall. I've tried changing /usr/libexec/ApplicationFirewall/com.apple.alf.plist loggingenabled key to 0 and restarting but it had no effect.