Cisco-Talos / clamav

ClamAV - Documentation is here: https://docs.clamav.net
https://www.clamav.net/
GNU General Public License v2.0
4.43k stars 706 forks source link

log TCPSocket 3310 startup / or corresponding problems #1298

Open ralfhauser opened 4 months ago

ralfhauser commented 4 months ago

When /etc/clamav/clamd.conf contains

TCPSocket 3310 TCPAddr 127.0.0.1

please report it in /var/log/clamav/clamav.log that the corresponding listener is ready (or any problems if they occur)

Background: just switched to debian 12 (stable). On some machines, 3310 works nicely, on others, it is not visible for "nestat -a | grep 3310"

micahsnyder commented 4 months ago

As far as I can tell, clamd should always log an error message to your log file if it fails to open the TCP socket, assuming the clamd.conf config is set up correctly.

The code in question is here https://github.com/Cisco-Talos/clamav/blob/main/clamd/tcpserver.c#L52-L196

You neglected to attach the clamconf -n output so I cannot confirm based on your settings.

micahsnyder commented 4 months ago

@ralfhauser Can you please clarify the issue?