diff --git a/www/c-icap/Makefile b/www/c-icap/Makefile index 2106b104e..ae60824d7 100644 --- a/www/c-icap/Makefile +++ b/www/c-icap/Makefile @@ -1,5 +1,5 @@ PLUGIN_NAME= c-icap -PLUGIN_VERSION= 1.6 +PLUGIN_VERSION= 1.7 PLUGIN_COMMENT= c-icap connects the web proxy with a virus scanner PLUGIN_DEPENDS= c-icap c-icap-modules PLUGIN_MAINTAINER= m.muenz@gmail.com diff --git a/www/c-icap/src/opnsense/scripts/OPNsense/CICAP/setup.sh b/www/c-icap/src/opnsense/scripts/OPNsense/CICAP/setup.sh index 9e1e74165..d9bc15677 100755 --- a/www/c-icap/src/opnsense/scripts/OPNsense/CICAP/setup.sh +++ b/www/c-icap/src/opnsense/scripts/OPNsense/CICAP/setup.sh @@ -7,3 +7,6 @@ chmod 750 /var/run/c-icap mkdir -p /var/log/c-icap chown -R c_icap:c_icap /var/log/c-icap chmod 750 /var/log/c-icap + +mkdir -p /tmp/c-icap/templates/virus_scan/en +chmod -R 755 /tmp/c-icap/ diff --git a/www/c-icap/src/opnsense/service/templates/OPNsense/CICAP/+TARGETS b/www/c-icap/src/opnsense/service/templates/OPNsense/CICAP/+TARGETS index aa6913943..4be92f826 100644 --- a/www/c-icap/src/opnsense/service/templates/OPNsense/CICAP/+TARGETS +++ b/www/c-icap/src/opnsense/service/templates/OPNsense/CICAP/+TARGETS @@ -2,3 +2,8 @@ c_icap:/etc/rc.conf.d/c_icap c-icap.conf:/usr/local/etc/c-icap/c-icap.conf newsyslog.conf:/etc/newsyslog.conf.d/c-icap virus_scan.conf:/usr/local/etc/c-icap/virus_scan.conf +VIRUS_FOUND:/tmp/c-icap/templates/virus_scan/en/VIRUS_FOUND +VIR_MODE_HEAD:/tmp/c-icap/templates/virus_scan/en/VIR_MODE_HEAD +VIR_MODE_PROGRESS:/tmp/c-icap/templates/virus_scan/en/VIR_MODE_PROGRESS +VIR_MODE_TAIL:/tmp/c-icap/templates/virus_scan/en/VIR_MODE_TAIL +VIR_MODE_VIRUS_FOUND:/tmp/c-icap/templates/virus_scan/en/VIR_MODE_VIRUS_FOUND diff --git a/www/c-icap/src/opnsense/service/templates/OPNsense/CICAP/VIRUS_FOUND b/www/c-icap/src/opnsense/service/templates/OPNsense/CICAP/VIRUS_FOUND new file mode 100644 index 000000000..dccbadb81 --- /dev/null +++ b/www/c-icap/src/opnsense/service/templates/OPNsense/CICAP/VIRUS_FOUND @@ -0,0 +1,67 @@ + + +
+ +You tried to upload/download a file that contains the malware: %VVN
+ The HTTP location is:
+ %huo
+
For more information contact {{ OPNsense.cicap.general.serveradmin }}
+{% else %} +For more information contact your system administrator
+{% endif %} +You tried to upload/download a file that contains the malware: %VVN
+ The HTTP location is:
+ %huo
+
For more information contact your system administrator
+ +