-
Notifications
You must be signed in to change notification settings - Fork 647
/
virus_scan.conf
32 lines (30 loc) · 1.57 KB
/
virus_scan.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% if helpers.exists('OPNsense.cicap.antivirus.enable_clamav') and OPNsense.cicap.antivirus.enable_clamav == '1' %}
Service antivirus_module virus_scan.so
ServiceAlias srv_clamav virus_scan
ServiceAlias avscan virus_scan?allow204=on&mode=simple
{% if helpers.exists('OPNsense.cicap.antivirus.scanfiletypes') and OPNsense.cicap.antivirus.scanfiletypes != '' %}
virus_scan.ScanFileTypes {{ OPNsense.cicap.antivirus.scanfiletypes.replace(',', ' ') }}
{% endif %}
{% if helpers.exists('OPNsense.cicap.antivirus.sendpercentdata') and OPNsense.cicap.antivirus.sendpercentdata != '' %}
virus_scan.SendPercentData {{ OPNsense.cicap.antivirus.sendpercentdata }}
{% endif %}
{% if helpers.exists('OPNsense.cicap.antivirus.startsendpercentdataafter') and OPNsense.cicap.antivirus.startsendpercentdataafter != '' %}
virus_scan.StartSendPercentDataAfter {{ OPNsense.cicap.antivirus.startsendpercentdataafter }}
{% endif %}
{% if helpers.exists('OPNsense.cicap.antivirus.allow204responses') and OPNsense.cicap.antivirus.allow204responses == '1' %}
virus_scan.Allow204Responces on
{% else %}
virus_scan.Allow204Responces off
{% endif %}
{% if helpers.exists('OPNsense.cicap.antivirus.passonerror') and OPNsense.cicap.antivirus.passonerror == '1' %}
virus_scan.PassOnError on
{% else %}
virus_scan.PassOnError off
{% endif %}
{% if helpers.exists('OPNsense.cicap.antivirus.maxobjectsize') and OPNsense.cicap.antivirus.maxobjectsize != '' %}
virus_scan.MaxObjectSize {{ OPNsense.cicap.antivirus.maxobjectsize }}
{% endif %}
Module common clamd_mod.so
clamd_mod.ClamdHost 127.0.0.1
clamd_mod.ClamdPort 3310
{% endif %}