]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/squidclamav/squidclamav.conf
squidclamav: Update squidclamav.conf to use and trust the proxy cache.
[people/teissler/ipfire-2.x.git] / config / squidclamav / squidclamav.conf
index 3d36ea733d07eb7702f22047ac72f234e97ee908..2b8f5dc02eb95a8d2b138656b9bb32a3cc228734 100644 (file)
@@ -1,16 +1,39 @@
-proxy none
-logfile /var/log/squidclamav.log
-redirect http://192.168.255.1:81/clwarn.cgi
+squid_ip 127.0.0.1
+squid_port 800
+#
+logfile /var/log/squid/squidclamav.log
+redirect http://127.0.0.1:81/clwarn.cgi
+#
 debug 0
-force 1
 stat 0
+#
 clamd_local /var/run/clamav/clamd
-timeout 600
-abort ^.*\.html$
-abort ^.*\.css$
-abort ^.*\.xml$
-abort ^.*\.xsl$
-content ^.*application\/.*$
-whitelist .*ultrastarsongs\.com
-whitelist .*zonealarm\.com
-
+#clamd_ip 192.168.1.5
+#clamd_port 3310
+#
+maxsize 5000000
+maxredir 30
+timeout 60
+trust_cache 1
+#
+# Do not scan standard HTTP images
+abort ^.*\.(ico|gif|png|jpg)$
+abortcontent ^image\/.*$
+#
+# Do not scan text and javascript files
+abort ^.*\.(css|xml|xsl|js|html|jsp)$
+abortcontent ^text\/.*$
+abortcontent ^application\/x-javascript$
+#
+# Do not scan streaming videos
+abortcontent ^video\/mp4$
+abortcontent ^video\/x-flv$
+#
+# Do not scan pdf and flash
+#abort ^.*\.(pdf|swf)$
+#
+# Do not scan sequence of framed Microsoft Media Server (MMS) data packets
+abortcontent ^.*application\/x-mms-framed.*$
+#
+# White list some sites
+whitelist .*\.clamav.net