« Posts tagged squid

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:

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 parent 8080 0 no-query no-digest no-netdb-exchange default
cache_peer_access 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

Asus eeebox as squid proxy

Yesterday I'ts arrived the Asus EeeBox model b202 black edition

My goal is to use this compact and very very silent appliance as a linux proxy; so I've to discard all preinstalled system and install a fresh Debian lenny.

First of all you have to choose the installation type and you have 3 way:

1- Usb Pendrive

2- Usb cdrom

3- PXE network

The first I've tried (usb pendrive) fails to boot, I don't know why but after some try I can't boot from USB pendrive; but for me is not a problem; I've also an Asus USB CD/DVDrw so I've tried to use the Debian Lenny net install cd.

Unfortunately debian Lenny installer don't recognize correctly the network card Realtek r8169, and the nework won't work...


Solution: use an USB netowork adapter...

Searching on my desk...

I've found a  Sitecom LN-029 that work perfectly on linux, so the installation now can start.

Install Debian without any task, so deselect "standard system" and "Desktop".

After rebooting system you can install squid and ssh so:
apt-get update && apt-get install squid squidGuard ssh

That's all, now configure squid and squidguard to fit your needs.