Section One BBS

Welcome, Guest.


Subject: Using clamd in stream mode Date: Sat Jul 20 2024 05:51 am
From: Andrew Leary To: Vincent Coen

Hello Vincent!

19 Jul 24 15:19, you wrote to all:

 VC> I have been trying to get this to work since upgrading mga v8 to v9
 VC> last year without success as access to the port is refused.

 VC> Has any one have this work and if so can you provide the clamd.conf
 VC> file so I can compare mine and likewise the settings in /etc/service
 VC> if not showing the defaults :

 VC> dyna-access     3310/tcp                # Dyna Access
 VC> dyna-access     3310/udp                # Dyna Access

I don't have any entries in /etc/services for port 3310.

 VC> tfido           60177/tcp                       # Ifmail
 VC> tfido           60177/udp                       # Ifmail
 VC> fido            60179/tcp                       # Ifmail
 VC> fido            60179/udp                       # Ifmail

 VC> There may well be other setting files that need updating but I have
 VC> forgotten what ones.

 VC> My clamd conf lines that relate are :

 VC> PidFile /var/run/clamav/clamd.pid

 VC> TemporaryDirectory /home/system-jobs/tmp
 VC> LocalSocket /var/lib/clamav/clamd.socket

I have LocalSocket /var/run/clamav/clamd.socket on both of my Linux systems.

 VC> FixStaleSocket yes

 VC> TCPSocket 3310
 VC> TCPAddr 127.0.0.1
 VC> #TCPAddr localhost
 VC> #   here I have tried both settings (one at a time) but should be the
 VC> same as far as I know.

I have TCPAddr localhost here.

 VC> as for the test :

 VC> ssh localhost -p 3310
 VC> ssh: connect to host localhost port 3310: Connection refused

I used telnet to connect to mine.  It connects, and then disconnects with an
UNKNOWN COMMAND message when I hit ENTER.

 VC> ssh 127.0.0.0 -p 3310
 VC> ssh: connect to host 127.0.0.0 port 3310: Connection refused

This should be 127.0.0.1 I'm thinking.

 VC> I do NOT run any Doors but do run apache for a web interface at
 VC> applewoodbbs.linkpc.net
 VC> .

 VC> Log /var/log/clamd.log shows it is running but with these .

 VC> Using systemadm shows that these are running :
 VC> clamav-daemon.service
 VC> clamav-daemon.socket
 VC> clamav-freshclam.service

 VC> Doing a ps aux | grep clam   produces :

 VC> clamav   1770582  0.0  0.0 103752 14976 ?        SLs  Jul07   0:09
 VC> /usr/bin/freshclam -d --foreground=true
 VC> clamav   1770616  0.0  8.3 1576280 1353088 ?     Ssl  Jul07   4:50
 VC> /usr/sbin/clamd --foreground=true

My startup script for clamav does not use the --foreground switch for either
clamd or freshclam.

 VC> vince    3034322  0.0  0.0  14368  2432 pts/4    S+   15:28   0:00
 VC> less /etc/clamd.conf

This was just you viewing your clamd.conf ...

Try removing --foreground=true from your command lines in the startup scripts,
and then see if telnet will connect to port 3310.

Andrew

--- GoldED+/LNX 1.1.5-b20240209
 * Origin: Phoenix BBS * phoenix.bnbbbs.net (1:320/219)

Previous Message       Next Message
In Reply To: Using clamd in stream mode (Vincent Coen)