Frequently Asked Question
Configuring Antivirus Essentials to use GENs CDN for updates
Last Updated 5 hours ago
Configuring Antivirus Essentials to use GENs CDN for updates
AntiVirus Essentials (ClamAV) has become increasingly unrelaible recently because Cisco are blocking people for updating 'too often' and older versions of Clam are simply no longer supported (DSM6.x). However, GEN offers a free mirror service to our customers which can be configured as below. You will need to obtain a GENCDN url from your account manager first.
Enabling SSH, Configuring ClamAV on Synology NAS
To enable SSH access and configure ClamAV to use the GEN mirror for faster updates, follow these steps:
Step 1: Enable SSH Access
- Log into DSM: Open a web browser and go to
https://synologynas_ip>. - Access Control Panel:
- Navigate to
Control Panel>SSH.
- Enable SSH:
- Toggle the switch to enable SSH access.
- Set Up User Access (if not already set up):
- Click on
Advanced Settings. - Create a new user or use an existing one with admin privileges.
Step 2: Connect via SSH
- Open Terminal/SSH Client: Use PuTTY, SecureCRT, or another terminal client.
- Connect to NAS:
- Enter the command:
ssh username@synologynas_ip>
- Authenticate:
- Follow the prompts to enter your password.
Step 3: Configure ClamAV
cd /var/packages/AntiVirus/target/engine/clamav/etc/
vi freshclam.conf
- Update freshclam.conf as below replacing GENCDN with the CDN you've been issued:
DatabaseOwner root
UpdateLogFile /var/packages/AntiVirus/target/engine/clamav/var/freshclam.log
LogVerbose false
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
LogTime true
Foreground false
Debug false
MaxAttempts 1
DatabaseDirectory /var/packages/AntiVirus/target/engine/clamav/var/lib
DNSDatabaseInfo current.cvd.clamav.net
AllowSupplementaryGroups false
PidFile /var/packages/AntiVirus/target/engine/clamav/var/freshclam.pid
ConnectTimeout 120
ReceiveTimeout 0
TestDatabases no
Bytecode true
# Check for new database 24 times a day
Checks 24
# DatabaseMirror database.clamav.net
PrivateMirror http://GENCDN/clamav
ScriptedUpdates no
- You may need to read up on using vi as an editor or install the nano third party package for a more usual editing experience.
- Save and Exit:
- Verify the Update:
- Check if the update was successful by navigating to
Synology > Control Panel > Anti-Virusand looking for recent updates..
By following these steps, you should be able to enable SSH access and configure ClamAV to use the GEN mirror for faster updates. This will help ensure your Synology NAS remains well-protected against new threats.
IF you are a GEN Customer then support is provided via the HelpDesk to assist with this.
