Mailing List Archive

clamdscan streaming over TCP
Hey all,

I'm trying to scan a files (email, so not huge load) over my_internal_ LAN.

I have a dockerized clamd running on hostA, and on hostB, I can run
clamdtop hostA, and get the expected output.

However, from within the same container that I just started clamdtop, I
can't do the same with clamdscan. There is no argument to specify the
host, or it is not in the `--help`. Also it is all hidden i n the
documentation, even though it suggests that this SHOULD be possible.

I'll look into the clamav-milter next, but still curious if this is
possible at all, while testing this.

Thanks,
Olliver

_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat
Re: clamdscan streaming over TCP [ In reply to ]
>
> I'm trying to scan a files (email, so not huge load) over my_internal_
> LAN.
>
> I have a dockerized clamd running on hostA, and on hostB, I can run
> clamdtop hostA, and get the expected output.
>
> However, from within the same container that I just started clamdtop, I
> can't do the same with clamdscan. There is no argument to specify the
> host, or it is not in the `--help`. Also it is all hidden i n the
> documentation, even though it suggests that this SHOULD be possible.
>
> I'll look into the clamav-milter next, but still curious if this is
> possible at all, while testing this.

Maybe this is helpfull, I have this in some old docs for client side testing.

cat <<EOF > /tmp/clam-remote.conf
TCPSocket 3310
TCPAddr clamav.local
EOF

clamdscan -c /tmp/clam-remote.conf --fdpass --stream '/tmp/clam-remote.conf'
_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat
Re: clamdscan streaming over TCP [ In reply to ]
On 10-06-2023 10:03, Marc wrote:
> cat <<EOF > /tmp/clam-remote.conf
> TCPSocket 3310
> TCPAddr clamav.local
> EOF
>
> clamdscan -c /tmp/clam-remote.conf --fdpass --stream '/tmp/clam-remote.conf'

Perfect, thanks!


I suppose I'll create a ticket for the missing feature (this is a bit
cumbersome in the end of course). I briefly looked at how clamdtop does
it; and there's quite a lot of (possible shareable) code there!!


Olliver

_______________________________________________

Manage your clamav-users mailing list subscription / unsubscribe:
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/Cisco-Talos/clamav-documentation

https://docs.clamav.net/#mailing-lists-and-chat