Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

FreeBSD Syslog is not accepting messesage

I am trying to setup Syslog demon on FreeBsd 5.1. I have created the following entries in syslog.conf:

local6.* /var/log.cisco

kill -HUP syslog.pid

Restarted as syslogd -d -a 192.168.7.3

llowaddr: rule 0: numeric, addr = 192.168.7.0, mask = 255.255.255.0; port = 514

syslogd: bind: Address already in use

logmsg: pri 53, flags 4, from , msg syslogd: bind: Address already in use

Logging to CONSOLE /dev/console

syslogd: bind: Address already in use

logmsg: pri 53, flags 4, from , msg syslogd: bind: Address already in use

Logging to CONSOLE /dev/console

can't open /dev/klog (16)

off & running....

init

cfline("*.err;kern.debug;auth.notice;mail.crit /dev/console", f, "*", "*")

cfline("*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages", f, "*", "*")

cfline("security.* /var/log/security", f, "*", "*")

cfline("auth.info;authpriv.info /var/log/auth.log", f, "*", "*")

cfline("mail.info /var/log/maillog", f, "*", "*")

cfline("lpr.info /var/log/lpd-errs", f, "*", "*")

cfline("ftp.info /var/log/xferlog", f, "*", "*")

cfline("local6.* /var/log/cisco", f, "*", "*")

cfline("cron.* /var/log/cron", f, "*", "*")

cfline("*.=debug /var/log/debug.log", f, "*", "*")

cfline("*.emerg *", f, "*", "*")

cfline("*.* /var/log/slip.log", f, "startslip", "*")

cfline("*.* /var/log/ppp.log", f, "ppp", "*")

7 3 2 3 5 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 X CONSOLE: /dev/console

7 5 2 5 5 5 6 3 5 5 X 5 5 5 5 5 5 5 5 5 5 5 5 5 X FILE: /var/log/messages

X X X X X X X X X X X X X 8 X X X X X X X X X X X FILE: /var/log/security

X X X X 6 X X X X X 6 X X X X X X X X X X X X X X FILE: /var/log/auth.log

X X 6 X X X X X X X X X X X X X X X X X X X X X X FILE: /var/log/maillog

X X X X X X 6 X X X X X X X X X X X X X X X X X X FILE: /var/log/lpd-errs

X X X X X X X X X X X 6 X X X X X X X X X X X X X FILE: /var/log/xferlog

X X X X X X X X X X X X X X X X X X X X X X 8 X X FILE: /var/log/cisco

X X X X X X X X X 8 X X X X X X X X X X X X X X X FILE: /var/log/cron

7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 X FILE: /var/log/debug.log

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X WALL:

8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 X FILE: /var/log/slip.log (startslip)

8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 X FILE: /var/log/ppp.log (ppp)

logmsg: pri 56, flags 4, from fb, msg syslogd: restart

syslogd: restarted

logmsg: pri 6, flags 4, from fb, msg syslogd: kernel boot file is /boot/kernel/kernel

Logging to CONSOLE /dev/console

Logging to FILE /var/log/messages

syslogd: kernel boot file is /boot/kernel/kernel

logmsg: pri 116, flags 0, from fb, msg Oct 25 14:33:00 /usr/sbin/cron[582]: (operator) CMD (/usr/libexec/save-entropy)

Logging to FILE /var/log/cron

logmsg: pri 116, flags 0, from fb, msg Oct 25 14:35:00 /usr/sbin/cron[608]: (root) CMD (/usr/libexec/atrun)

Logging to FILE /var/log/cron

logmsg: pri 116, flags 0, from fb, msg Oct 25 14:40:00 /usr/sbin/cron[627]: (root) CMD (/usr/libexec/atrun)

Logging to FILE /var/log/cron

^Csyslogd: exiting on signal 2

syslogd: exiting on signal 2

logmsg: pri 53, flags 4, from fb, msg syslogd: exiting on signal 2

Logging to CONSOLE /dev/console

Logging to FILE /var/log/messages

above message appears...

confgured a router to send message to the server. after sniffing i see that the router is generating the packets for syslog.. but syslog is not accepting the packets... I have confiremd the setting by runing logger on the local freebsd box...it work

thanks

2 REPLIES
Bronze

Re: FreeBSD Syslog is not accepting messesage

Syslog daemons tend to only listen for messages from localhost these days for security reasons. There's generally a special flag (e.g., -u in OpenBSD) to tell syslogd to accept messages from remote devices.

Re: FreeBSD Syslog is not accepting messesage

I have looked at the -u option. It does not state that it will allow remote packets. The only one that i have found is -a which allows remote machine's log to be input. I am using FreeBsd 5.1

thanks

554
Views
0
Helpful
2
Replies
CreatePlease login to create content