• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

How-To Quellen [SCAVR, jackal-net.at] sind nicht verfügbar

OP
D

danau

Member
Hat vielleicht jemand den SquidClamAV-Redirector erfolgreich am Laufen?
Da kein HowTo mehr vorhanden ist, brauch ich Eure Hilfe. Was muss in der squid.conf und in der SquidClamAV_Redirector.conf angepasst werden damit es funktioniert?

Mein Stand: Squid lässt sich ohne Fehler starten. Reagiert aber am Client-Browser nicht. Wenn ich dann rcsquid status abfrage kommt dead.


Woran kanns liegen?
 
OP
D

danau

Member
Damit's nicht wieder verloren geht, hier der Link und der Text in der italienischen Fassung:

LINK: http://openskills.info/infobox.php?ID=1445

Code:
Web virus filtering con Squid e ClamAV

E' possibile configurare Squid per filtrare tutte le richieste web che vengono eseguite dagli utenti con l'antivirus engine ClamAV.
Uno dei metodi utilizzabili prevede la configurazione di SquidClamAVredirector.

Scaricare SquidClamAVredirector dal sito ufficiale.
Prerequisiti sono Squid, ClamAV, Python e le librerie Python per interfacciarsi con ClamAV: pyclamav disponibili all'indirizzo: http://xael.org/norman/python/pyclamav/ .

Installazione pyclamav (Usare l'ultima versione disponibile)
Scaricare PyClamav dal sito ufficiale
tar -zxvf pyclamav-0.3.2.tar.gz
cd pyclamav-0.3.2
python setup.py build
python setup.py install

Installazione SquidCLamAV Redirector (SCAVR):
Scaricare SCAVR dal sito ufficiale.
tar -zxvf SCAVR.tar.gz
cp SquidClamAV_Redirector.py /usr/local/bin/
chmod +x /usr/local/bin/SquidClamAV_Redirector.py
cp SquidClamAV_Redirector.conf /usr/local/squid/etc/
chown squid /usr/local/squid/etc/SquidClamAV_Redirector.conf
vi /usr/local/squid/etc/SquidClamAV_Redirector.conf

Esempio di SquidClamAV_Redirector.conf
[SquidClamAV]
# restricted = http://virus.jackal-net.at/infected.php?virus=restricted
virusurl = http://10.0.0.178/infected.php
#virusurl = http://virus.jackal-net.at/infected.php
cleancache = 300
ForceProtocol = http or https
MaxRedirection = 99
MaxRequestsize = 2Mb
log_priority = LOG_INFO
log_facility = LOG_LOCAL6
acceptredirects = 300 301 302 303
MIMETypes = all image/bmp image/gif image/jpeg image/png image/tiff text/html
Timeout = 60.0

[Debug]
Infected = true
Clean = true
Error = true
Ignored = true

[Extensions]
pattern = all .jpg .exe .zip .rar .ar .com .bzip .gz

## [Proxy]
### http = http://localhost:3128

[Whitelist]
www.jackal-net.at       = 0

Configurazione Squid
In squid.conf inserire le seguente righe, utilizzando ovviamente i path corretti relativi a dove si è copiato lo script SquidClamAV_Redirector.py (deve essere eseguibile) sul proprio sistema:
redirect_program /usr/local/bin/SquidClamAV_Redirector.py -c /usr/local/etc/squid/SquidClamAV_Redirector.conf
redirect_children 5
redirector_access deny localhost
http_reply_access allow all
NOTA: La direttiva "redirector_access deny localhost" va messa dopo "acl localhost src 127.0.0.1/255.255.255.255" (che già esiste).
 
Oben