samba a samba-vscan

Jarda jaroslav.votruba at dvorec.eu
Tue Sep 11 21:39:25 CEST 2012


zdar
chci na sambu nasadit kvůli uzivatelům (detem) antivir. Do verze samby 
3.5 to byl samba-vscan. Novejsi verze samby jej ale nepodporuji. nove je 
v portech /usr/ports/security/samba-virusfilter.

ma s tim nekdo zkusennosti? dokumentace nic moc, googl najde par 
stranek, kde se nikdo taky moc nerozvasni.
Jestli jsem to dobre pochopil, tak v sekci global smb.confu jsem nastavil
include = /usr/local/etc/samba/smb.svf-clamav.conf


a v tom souboru

vfs objects = svf-clamav

## Scan files while opening
## default: yes
svf-clamav:scan on open = yes

## Scan files while closing
## default: no
svf-clamav:scan on close = no

## Do not scan files larger than X bytes
## default: 100000000 (100MB)
#svf-clamav:max file size = 100000000

## Do not scan files smaller than X bytes
## default: 0
#svf-clamav:min file size = 10

## What to do with an infected file
## nothing: Do nothing (default)
## quarantine: Try to move to quantine directory
## delete: Delete infected file
svf-clamav:infected file action = quarantine

## Where to move infected files
svf-clamav:quarantine directory = %H/quarantine
## Prefix for files in quarantine directory
svf-clamav:quarantine prefix = -- virus--.

## External command to run on an infected file is found
## default: none
#;svf-clamav:infected file command = @SAMBA_DATADIR@/bin/svf-notify 
--mail-to virusmaster na example.com --cc "%U na example.com" --from 
samba na example.com --subject-prefix "Samba: Infected File: "

## External command to run on scan error
## default: none
#;svf-clamav:scan error command = @SAMBA_DATADIR@/bin/svf-notify 
--mail-to virusmaster na example.com --from samba na example.com 
--subject-prefix "Samba: Scan Error: "

clamAV pouzivam i pro amavis, kde chodi.
nevim, jak overit jestli scanuje, ve /var/log/messages nic neni a 
predhozeny zavirovany soubor neda do karanteny


jarda







More information about the Users-l mailing list