From 3fdfc319f7136be9cbd337c185a110ec620a99e4 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Tue, 6 Oct 2015 05:23:49 +0200 Subject: Major rework of antivirus features logic Users can either maintain raw config files manually now, or use the GUI options, but not both at the same time. There are some JS hacks in squid_js.inc.php to toggle various GUI options and features depending on whether raw config is being used or now, None of the previous configuration junk is migrated since it was just badly broken. --- config/squid3/34/squid_antivirus.xml | 116 +++++++++++++++++++++++++---------- 1 file changed, 83 insertions(+), 33 deletions(-) diff --git a/config/squid3/34/squid_antivirus.xml b/config/squid3/34/squid_antivirus.xml index 94c788a0..e7d046f0 100755 --- a/config/squid3/34/squid_antivirus.xml +++ b/config/squid3/34/squid_antivirus.xml @@ -42,7 +42,7 @@ ]]> squidantivirus - 0.3.8 + 0.3.9 Proxy server: Antivirus /usr/local/pkg/squid.inc @@ -88,6 +88,7 @@ /pkg_edit.php?xml=squid_sync.xml + enabled ClamAV Anti-Virus Integration Using C-ICAP @@ -99,15 +100,33 @@ Enable Squid antivirus check using ClamAV. checkbox - - Client Forward Options - client_info + Redirect URL + clamav_url + Leave empty to use the default Squid/pfSense WebGUI URL.
+ Example: http://proxy.example.com/blocked.html ]]>
- select - both - - - - - - + input + 60 +
Google Safe Browsing @@ -156,7 +171,7 @@ Select the desired frequency here.

- + Click the button to update AV databases now.
Note: This will take a while. Check /var/log/clamav/freshclam.log for progress information. ]]> @@ -215,64 +230,99 @@ input 60 - 5 -
- - Advanced Options - listtopic squidclamav.conf - squidclamav - squidclamav.conf file. Leave empty to load sample file. Edit only if you know what are you doing. + raw_squidclamav_conf + squidclamav.conf file. Edit only if you know what are you doing. textarea base64 85 15 + c-icap.conf - c-icap_conf - c-icap.conf file. Leave empty to load sample file. Edit only if you know what are you doing. + raw_cicap_conf + c-icap.conf file. Edit only if you know what are you doing. textarea base64 85 15 + c-icap.magic - c-icap_magic - c-icap.conf file. Leave empty to load sample file. Edit only if you know what are you doing. + raw_cicap_magic + c-icap.conf file. Edit only if you know what are you doing. textarea base64 85 15 + freshclam.conf - freshclam_conf - freshclam.conf file. Leave empty to load sample file. Edit only if you know what are you doing. + raw_freshclam_conf + freshclam.conf file. Edit only if you know what are you doing. + textarea + base64 + 85 + 15 + + + + clamd.conf + raw_clamd_conf + clamd.conf file. Edit only if you know what are you doing. textarea base64 85 15 +
- squid_validate_antivirus($_POST, $input_errors); + -- cgit v1.2.3