Syslog from external machine

Andy Farkas andyf at speednet.com.au
Wed May 21 15:41:25 PDT 2003


On Wed, 21 May 2003, Mark wrote:

> Using FreeBSD 4.7R, I was experimenting a bit with my router's syslog
> facility (on port 514). I set up syslogd like this:
>
> /usr/sbin/syslogd -a 192.168.1.1:514
>
> Assuming this would allow incoming UPD on port 514 for the 192.168.1.1
> router address. Alas, nothing is logged in /var/log/messages.

Go into /etc/syslog.conf and uncomment the `*.* /var/log/all.log` line.
touch /var/log/all.log and restart syslogd.

Now you can monitor all messages sent to syslogd.

BTW, if you only want 192.168.1.1 talking to your syslogd, you should use
"-a 192.168.1.1/32:514" otherwise the default netmask is /24.

--

 :{ andyf at speednet.com.au

        Andy Farkas
    System Administrator
   Speednet Communications
 http://www.speednet.com.au/





More information about the freebsd-questions mailing list