DS1511

Synology does a great job with their devices and packages. It truly is one of the best network storage devices currently on the market due in large part to the active development of the DSM software. That doesn’t mean it’s not without minor annoyances. The AntiVirus package has a problem… the inability to whitelist specific directories that are hidden.

This isn’t normally a big deal, but I’ve run in to a few instances where Time Machine sparsebundle files get incorrectly flagged as a virus. If a file in the sparsebundle gets quarantined it will often corrupt the backup. simply whitelisting the file is only a stopgap measure as it will not prevent further files from incorrectly being flagged. Thankfully, there is a relatively painless method of rectifying this!

  1. Enable SSH on DiskStation via Control Panel > Terminal > Enable SSH Service
  2. SSH to the DiskStation as root (same password as admin)
  3. Download and run WinSCP (The simplest method to edit the file is using a graphical program such as WinSCP, but feel free to use whatever you like.)
    NOTE: You can also use a command line program such as Putty if you are comfortable with it and use “vi” to edit the file.  I know I do!
  4. IMPORTANT: If using WinSCP change the Protocol to SCP on the Login window.
  5. Add the hostname or IP address of your DiskStation and connect using the user name “root” (the password is the same as that of the admin account)
    NOTE: You will likely need to go up one or more directories. This can be accomplished by double clicking the “..” folder to go up a directory level.
  6. Navigate to “/var/packages/AntiVirus/etc” and find the file “whitelist.conf”
  7. Right-click “Whitelist.conf” and select Edit
  8. Now simply add the desired path to whitelist  (one entry per line.)  In my case it was /volume1/Time Machine
    NOTE: Keep in mind names are case sensitive.
  9. Save the changes
  10. You should now be able to log into DSM and go to the AntiVirus package > Settings and select “White List” Your newly added directory should be visible and you’re done!

Pretty simple! I’m just surprised Synology hasn’t added this feature into the current DSM (I’ve submitted requests so we shall see.) Perhaps they will add it into the production version of DSM 4.3, but as of the current DSM 4.3 beta (and all previous versions) have lacked the ability to whitelist hidden directories.