![]() |
|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hello,
It is not possible for me to send system messages to a remote syslog server from my old OpenBSD 5.7. I know the system is old and outdated, but there are certain reasons not to update it. Apart from that, the system is in an isolated environment. The same configuration works without any problems on a newer system 6.8 and higher. Syslogd starts without any problems. Local logging works fine. Nothing is blocked by pf. It affects multiple 5.7 systems. Are there any additional steps on the older systems other than configuring in /etc/syslog.conf + pf.conf to make it work? Code:
uname -an OpenBSD bln-int-fw2.bfv.local 5.7 GENERIC.MP#881 amd64 /etc/syslog.conf: *.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none /var/log/messages kern.debug;syslog,user.info /var/log/messages auth.info /var/log/authlog authpriv.debug /var/log/secure cron.info /var/cron/log daemon.info /var/log/daemon ftp.info /var/log/xferlog lpr.debug /var/log/lpd-errs mail.info /var/log/maillog *.emerg * *.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none @192.168.233.1 auth,daemon,syslog,user.info;authpriv,kern.debug @192.168.233.1 regards Tim Last edited by J65nko; 16th January 2024 at 12:58 AM. Reason: [code] and [/code] tags added |
|
|||
![]() Quote:
I've already tried tcpdump, there's absolutely nothing to see on the 514. neither on the loopback nor on the LAN interface. It seems as if the syslogd is not sending anything out. It's not a new feature, it's been around for a long time. I also disabled pf, unfortunately without success. |
|
|||
![]() Quote:
![]() |
|
||||
![]()
You could pull down the 5.7 source from CVS and scatter printf(3) calls to debug the problem, or perhaps traverse the various /usr/src/usr.sbin/syslogd commits that have been logged since May 2015.
Unfortunately, the Project doesn't support anything older than the most recent two releases. I had to reach a server in Oslo just find a copy of 5.7 to replicate the problem. |
|
|||
![]() Code:
*.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none @192.168.233.1 Code:
$ doas arp -an Host Ethernet Address Netif Expire Flags 192.168.222.33 00:0d:b9:2a:bf:e1 bge0 12m38s 192.168.222.241 a0:1d:48:97:5b:74 bge0 permanent l Code:
$ doas tcpdump -vv -eni bge0 'port 53' Code:
# *.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none @192.168.233.1 *.notice;auth,authpriv,cron,ftp,kern,lpr,mail,user.none /var/log/external1 # auth,daemon,syslog,user.info;authpriv,kern.debug @192.168.233.1 auth,daemon,syslog,user.info;authpriv,kern.debug /var/log/external2 Code:
$ doas touch /var/log/external1 $ doas touch /var/log/external2 ![]() The reason is that I had some problems with syslog.conf too, See https://daemonforums.org/showthread.php?t=11762 BTW a long standing bug in crontab files caused the last line not be parsed when it was not terminated with a newline. Yes, I see that you have two lines in syslog.conf, but in weird situations like this, I always add an extra line ......
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
![]()
I've got it - the logserver entry must be separated by one or more tabs.
|
|
|||
![]()
Sorry, I forgot to mention that in some config files tabs are required. Glad you managed to figure it out.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Secure Remote Access to an Internal Web Server | Oko | General software and network | 7 | 1st April 2015 06:35 PM |
pxeboot install from remote server to my LAN | chessmaster | OpenBSD Installation and Upgrading | 16 | 6th March 2014 02:52 AM |
unable to send external mail | Zyos | OpenBSD General | 11 | 17th November 2011 02:39 PM |
Remote FreeBSD server upgrade - Guide! | carpman | Guides | 8 | 5th April 2009 05:37 PM |
Remote Access to File Server | Oko | OpenBSD Security | 7 | 23rd June 2008 05:17 PM |