Squid proxy + Antivirus

In an earlier post I've told you how to use an eebox as a cache proxy and content filter...Today I've added also an antivirus control with HAVP ( http://www.server-side.de/ ) and ClamAV ( http://www.clamav.net )

let's go:

me@linuxbox# apt-get update && apt-get install havp

Now we need to configure havp so open /etc/havp/havp.config and edit these values:

PARENTPROXY localhost
PARENTPORT 8081
FORWARDED_IP true
BIND_ADDRESS 127.0.0.1
TEMPLATEPATH /etc/havp/templates/"yourlang"

These are "sufficient" so read the manual and config HAVP to fit your needs.

Now edit /etc/squid/squid.conf and add these options

http_port localhost:8081
acl Scan_HTTP proto HTTP
never_direct allow Scan_HTTP
cache_peer 127.0.0.1 parent 8080 0 no-query no-digest no-netdb-exchange default
cache_peer_access 127.0.0.1 allow Scan_HTTP

Reload Squid and start HAVP and you can test if the system is working downloading an "eicar test" here http://www.eicar.org/anti_virus_test_file.htm

This post is also available in: Italian

Comments (4)

  1. 10:59 am, June 15, 2010Raleigh Correra  / Reply

    Approvingly your article helped me incredibly a great deal in my college assignment. Hats high to you dispatch, will search ahead in behalf of a lot more interdependent posts in a jiffy as its sole of my pick subject-matter to go through.

  2. 10:57 pm, September 23, 2010Thurman Copstead  / Reply

    I appreciate you for the advice! I will give it a try.

  3. 1:12 am, September 25, 2010Anonymous  / Reply

    I’ve been reading your blog post for some time, this is my 1st comment here, just wanted to say thanks.

  4. 8:39 am, September 26, 2010Violette Amemiya  / Reply

    Keep up the good job guys!

Leave a Reply


*