Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
antivirus [2018_07_26 13:07] jimantivirus [2020_08_12 23:39] doug
Line 11: Line 11:
 ClamAV is the officially supported virus scanner available for use with the File Fabric. ClamAV is a high performance multi-threaded daemon supporting many file formats including file and archive unpacking. ClamAV is the officially supported virus scanner available for use with the File Fabric. ClamAV is a high performance multi-threaded daemon supporting many file formats including file and archive unpacking.
  
-In High Availability environments each appliance will run a local ClamAV service (as configured by default).  Files added outside of the File Fabric, directly to the external storage and discovered through provider synchronization, are not scanned.+In High Availability environments each appliance serving web traffic will be required to run a local ClamAV service .  Files added outside of the File Fabric, directly to the external storage and discovered through provider synchronization, are not scanned.
  
 Works with: Works with:
Line 17: Line 17:
 * Enterprise Appliance (since 1712.00) * Enterprise Appliance (since 1712.00)
  
-## Configuration+## Service Configuration
  
-The virus scanning of uploads is a configuration option for the organization. The option is available when added to the user package.+ClamAV must first be enabled and configured on each web node.  
 + 
 +## 1. Start and Enable ClamAV 
 + 
 +SSH to the appliance as user smeconfiguser, then become root 
 + 
 +    su - 
 + 
 +Use systemctl to start and enable ClamAV (that is, will startup on boot): 
 + 
 +    # systemctl enable clamd@scan 
 +    # systemctl start clamd@scan 
 +     
 +Next verify that it is running and enabled: 
 + 
 +    # systemctl status clamd@scan 
 +    Loaded: loaded (/usr/lib/systemd/system/clamd@scan.server; enabled;...  
 +    Active: active (running) 
 + 
 +## 2. Verify Appliance Integration with ClamAV 
 + 
 +The appliance configuration file can be found at: 
 + 
 +    /var/www/smestorage/public_html/config.inc.php 
 + 
 +Verify that the settings below are configured as shown: 
 + 
 +    var $enableantivirus = 1; 
 +    var $clamavsocketpath = '/var/run/clamd.scan/clamd.sock'; 
 + 
 +## Enabling ClamAV for Organizations 
 +The virus scanning of uploads is a configuration option for organizations. The option is available when added to the user package.
  
 ## 1. Adding the ClamAV Option to a User Package ## 1. Adding the ClamAV Option to a User Package
Line 35: Line 66:
 ## Troubleshooting ## Troubleshooting
  
-### Checking that the ClamAV Service is On +### Checking ClamAV Service Logs 
-The ClamAV service is preinstalled on the appliance and is enabled and running by default.+Once started the ClamAV service will generate log data.
  
 To verify ClamAV has been running successfully check the last entries in the log: To verify ClamAV has been running successfully check the last entries in the log:
Line 44: Line 75:
     Fri Feb 2 00:34:21 2018 -> SelfCheck: Database status OK     Fri Feb 2 00:34:21 2018 -> SelfCheck: Database status OK
  
-Use systemctl to verify ClamAV is both enabled (that is, will startup on boot), and running: 
- 
-    $ systemctl status clamd@scan 
-    Loaded: loaded (/usr/lib/systemd/system/clamd@scan.server; enabled;...  
-    Active: active (running) 
- 
-If needed, to stop, start, enable, disable or restart run systemctl as root: 
- 
-    systemctl restart clamd@scan 
  
 #### Configuration #### Configuration
Line 81: Line 103:
  
     /var/www/smestorage/config/clamd/freshclam.conf     /var/www/smestorage/config/clamd/freshclam.conf
- 
-### Checking Appliance Integration with ClamAV 
- 
-This configuration file can be found at: 
- 
-    /var/www/smestorage/public_html/config.inc.php 
- 
-Make sure the following settings are present: 
- 
-    var $enableantivirus = 1; 
-    var $clamavsocketpath = '/var/run/clamd.scan/clamd.sock'; 
  
 ### Error: Socket Operation Failed ### Error: Socket Operation Failed