Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2007 10:45:02 -0400
From:      "David Robillard" <david.robillard@gmail.com>
To:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Cc:        Guido Demmenie <rottweilertje@rottnic.nl>
Subject:   Re: remote logging with syslogd
Message-ID:  <226ae0c60703220745x6764d58du4798c3e25d65d5cd@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
> Hello,
>
> I'm trying to put up a remote logging server. I want to let my
> Airport Express send its logs to my FreeBSD server.
>
> So I said to my Airport to send its logs to the internal ip of my
> server, I suppose it works because that's what Apple hardware does.
> Now I did the following things on my bsdbox:
>
>
> I appended to syslog.conf:
>
> # Log remote Airport Express
> +airport
> *.*             /var/log/airport.log
> !*
>
> I touched /var/log/airport.log and it has rw-r----- root:wheel rights
>
> And to rc.conf I added:
>
> syslogd_enable="YES"
> syslogd_flags="-b myhostname.intranet -a *.intranet"
>
> I restarted syslogd via:
> # /etc/rc.d/syslogd restart
>
> I suppose it should work, but nothing appears in /var/log/airport and
> there should be something that it listens for input or not?
>
> Also I checked netstat -a | grep syslog
> udp4       0      0  myhostname.intranet..syslo *.*
>
> So it looks like it is not listening.
>
> Anyone any ideas what I'm doing wrong?

The Apple AirPort products, both Extreme and Express, do not use the
standard syslog UDP port 514. They send it at a higher port. Just like
most Cisco devices do.

So to enable logging on a FreeBSD host, you must change your
rc.conf(5) syslog_flags line to enable other non-standard syslog
ports. Try something like this:

syslogd_flags="-b myhostname.intranet -a *.intranet:*"

Since you're using names instead of IP addresses in your
configuration, make sure your DNS resolves both A and PTR records for
the AirPort.

Have fun,

David
-- 
David Robillard
UNIX systems administrator & Oracle DBA
CISSP, RHCE & Sun Certified Security Administrator
Montreal: +1 514 966 0122



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?226ae0c60703220745x6764d58du4798c3e25d65d5cd>