Setting Up ClamAV on a Linux Server for Windows remote file scanning
Overview This week I set up ClamAV on an Ubuntu ec2 instance, with the intention of scanning files remotely from our software. This guide will walk through the setup of ClamAV to run the clamd service on port 3310, and then having a Windows host run a small .py file to scan a file using the clamd service.
Prerequisites You will need a Linux machine, with SSH access to it, as well as allowing inbound 3310 from the servers you are going to connect from A Windows machine with python installed Configuring ClamAV SSH into your Linux machine and verify it is up to date sudo apt update sudo apt upgrade Install ClamAV and ClamAV Daemon (clamd) and configure the user it will run as apt-get install -y cargo rustc groupadd clamav useradd -g clamav -s /bin/false -c "Clam Antivirus" clamav sudo apt install clamav clamav-daemon Edit the clamd.