![]() It provides a number of utilities including a flexible and scalable multi-threaded daemon, a command line scanner and advanced tool for automatic database updates. ClamAV also supports logging of the scan which you can enable by using the -l /path/to/file option.Clam AntiVirus is an open source (GPL) anti-virus toolkit for UNIX. To move the file to a quarantine folder, use the -move=/dir option. To remove the infected file automatically, add to the option -remove. There are many scan options available for a one-time scan which is handled by clamscan. Once it is detected, we can now confirm that our ClamAV installation is working. ![]() The output should show: stdin: Eicar-Test-Signature FOUND The scan time will take some time and this is a normal behavior of ClamAV as it will need to read a number of signatures. To start the sample scan, supply the following command: curl | clamscan. To test and verify our ClamAV installation, we can try to scan the EICAR test file (a harmless signature with no virus code). If you want to adjust some settings for the on-access scanner service, you can check the file: nano /etc/clamav/nfĭo not forget to restart the service after saving the modified file: systemctl restart clamav-daemon Testing ClamAV Loaded: loaded (/lib/systemd/system/rvice enabled vendor prĭrop-In: /etc/systemd/system/Īctive: active (running) since Fri 22:09:56 EDT 18min ago Step 3: Configuring ClamAVīy default, ClamAV’s configuration is already optimized for general use. rvice - Clam AntiVirus userspace daemon.Loaded: loaded (/lib/systemd/system/rvice enabled vendorĪctive: active (running) since Fri 21:22:05 EDT 44min agoįinally, run the main ClamAV on-access scanner service and verify its status. ![]() Verify that the main ClamAV-freshclam service is running to make sure the virus definition database is always up-to-date: systemctl status clamav-freshclamĪlmost the same output should appear: The database files are saved in: /var/lib/clamav/daily.cvd (daily update file for ClamAV virus databases) /var/lib/clamav/main.cvd (main ClamAV virus database file) /var/lib/clamav/bytecode.cvd (signatures to detect bytecode in files) The last line indicates that we are now using the latest virus definition database of ClamAV. You can watch the logs using: tail -f /var/log/clamav/freshclam.log Basically, a freshclam command has been activated. The clamAV package is the command-line based virus scanner, while the clamAV-daemon package is the on-access scanner, which runs in the background.Īfter installation, an update of the virus definition database will automatically start. To proceed, supply the following command: apt-get install clamav clamav-daemon Installing the main package of ClamAV is very easy. apt-get install software-properties-common build-essential curl -y Step 2: Installing ClamAV It is also best to install basic Debian libraries and dependencies to avoid any missing library issues during the installation. It is recommended to use the root account for this.Īfter logging in, it is best to update Debian with the latest packages available for bug fixes and improvements. If your server does not use the default port number, you can add -p to the end of your command, and replace with your VPS’s port number. Modify the variable with the account name of a root-privileged user found on the server (or the root user itself), and replace variable with the IP address of your server. To begin with, log in to your Linux server via SSH using your preferred terminal: ssh public IP address] Step 1: Checking for Updates and Dependencies Step 1: Checking for Updates and Dependencies.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |