mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
migrate to syslog-ng (#3208)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
PLUGIN_NAME= clamav
|
||||
PLUGIN_VERSION= 1.7
|
||||
PLUGIN_REVISION= 2
|
||||
PLUGIN_VERSION= 1.8
|
||||
PLUGIN_COMMENT= Antivirus engine for detecting malicious threats
|
||||
PLUGIN_DEPENDS= clamav
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -9,6 +9,11 @@ database updates.
|
||||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.8
|
||||
|
||||
* Use syslog for logging
|
||||
* ClamAV verbose logging option added
|
||||
|
||||
1.7
|
||||
|
||||
* Allow addition of external signatures
|
||||
|
||||
@@ -159,11 +159,17 @@
|
||||
<type>text</type>
|
||||
<help>Number of files to be scanned within an archive, a document, or any other container file.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.logverbose</id>
|
||||
<label>ClamAV log verbose</label>
|
||||
<type>checkbox</type>
|
||||
<help>Enable ClamAV verbose logging.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.fc_logverbose</id>
|
||||
<label>Freshclam log verbose</label>
|
||||
<type>checkbox</type>
|
||||
<help>Enable verbose logging.</help>
|
||||
<help>Enable Freshclam verbose logging.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.fc_databasemirror</id>
|
||||
|
||||
@@ -4,10 +4,8 @@
|
||||
<patterns>
|
||||
<pattern>ui/clamav/*</pattern>
|
||||
<pattern>api/clamav/*</pattern>
|
||||
<pattern>ui/diagnostics/log/clamav/clamd/*</pattern>
|
||||
<pattern>api/diagnostics/log/clamav/clamd/*</pattern>
|
||||
<pattern>ui/diagnostics/log/clamav/freshclam/*</pattern>
|
||||
<pattern>api/diagnostics/log/clamav/freshclam/*</pattern>
|
||||
<pattern>ui/diagnostics/log/core/clamd/*</pattern>
|
||||
<pattern>api/diagnostics/log/core/clamd/*</pattern>
|
||||
</patterns>
|
||||
</page-services-clamav>
|
||||
</acl>
|
||||
|
||||
@@ -111,6 +111,10 @@
|
||||
<default>10000</default>
|
||||
<Required>N</Required>
|
||||
</maxfiles>
|
||||
<logverbose type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</logverbose>
|
||||
<fc_logverbose type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
<Services>
|
||||
<ClamAV cssClass="fa fa-stethoscope">
|
||||
<Configuration order="10" url="/ui/clamav/general/index"/>
|
||||
<LogFile VisibleName="Log / Clamd" order="20" url="/ui/diagnostics/log/clamav/clamd"/>
|
||||
<LogFile VisibleName="Log / Freshclam" order="30" url="/ui/diagnostics/log/clamav/freshclam"/>
|
||||
<LogFile VisibleName="Log" order="20" url="/ui/diagnostics/log/core/clamd"/>
|
||||
</ClamAV>
|
||||
</Services>
|
||||
</menu>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{% if helpers.exists('OPNsense.clamav.general.enabled') and OPNsense.clamav.general.enabled == '1' %}
|
||||
LogFile /var/log/clamav/clamd.log
|
||||
LogTime yes
|
||||
LogSyslog yes
|
||||
{% if helpers.exists('OPNsense.clamav.general.logverbose') and OPNsense.clamav.general.logverbose == '1' %}
|
||||
LogVerbose yes
|
||||
{% endif %}
|
||||
PidFile /var/run/clamav/clamd.pid
|
||||
DatabaseDirectory /var/db/clamav
|
||||
LocalSocket /var/run/clamav/clamd.sock
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
DatabaseDirectory /var/db/clamav
|
||||
UpdateLogFile /var/log/clamav/freshclam.log
|
||||
LogSyslog yes
|
||||
|
||||
LogTime yes
|
||||
{% if helpers.exists('OPNsense.clamav.general.fc_logverbose') and OPNsense.clamav.general.fc_logverbose == '1' %}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
###################################################################
|
||||
# Local syslog-ng configuration filter definition [clamd].
|
||||
###################################################################
|
||||
filter f_local_clamd {
|
||||
program("clamd") or program("freshclam");
|
||||
};
|
||||
Reference in New Issue
Block a user