Linux en Espanol Espontaneas - De tu ojo a la web
 
ClamAV (tema #23331)
Publicar nuevo tema   Responder al tema    Foros de discusión -> Servidores y Servicios
Ver tema anterior :: Ver tema siguiente  
Autor Mensaje
jcgm129
Forista


Registrado: 09 Ago 2010
Mensajes: 2

MensajePublicado: Lun Ago 09, 2010 7:39 pm    Asunto: ClamAV Responder citando

Saludos!
¿Alguien sabra como puedo hacer que el antivirus ClamAV escanee y archivo en el momento en que es copiado a cualquier carpeta compartida en mi servidor Samba?
Volver arriba
Ver perfil de usuario Enviar mensaje privado
miguelgf
Forista


Registrado: 28 Dic 2006
Mensajes: 370

MensajePublicado: Lun Ago 09, 2010 9:09 pm    Asunto: Responder citando

Hola.

En el smb.conf:
Código:
...
[global]
...
   vfs objects = vscan-clamav
   vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
...

Y el vscan-clamav.conf
Código:
[samba-vscan]
; run-time configuration for vscan-samba using
; clamd
; all options are set to default values

; do not scan files larger than X bytes. If set to 0 (default),
; this feature is disable (i.e. all files are scanned)
max file size = 0

; log all file access (yes/no). If set to yes, every access will
; be logged. If set to no (default), only access to infected files
; will be logged
verbose file logging = no 

; if set to yes (default), a file will be scanned while opening
#scan on open = yes
scan on open = no
; if set to yes, a file will be scanned while closing (default is yes)
scan on close = yes

; if communication to clamd fails, should access to file denied?
; (default: yes)
deny access on error = yes

; if daemon files with a minor error (corruption, etc.),
; should access to file denied?
; (default: yes)
deny access on minor error = yes

; send a warning message via Windows Messenger service
; when virus is found?
; (default: yes)
send warning message = yes

; what to do with an infected file
; quarantine: try to move to quantine directory
; delete:     delete infected file
; nothing:    do nothing (default)
infected file action = nothing

; where to put infected files - you really want to change this!
quarantine directory  = /tmp
; prefix for files in quarantine
quarantine prefix = vir-

; as Windows tries to open a file multiple time in a (very) short time
; of period, samba-vscan use a last recently used file mechanism to avoid
; multiple scans of a file. This setting specified the maximum number of
; elements of the last recently used file list. (default: 100)
max lru files entries = 100

; an entry is invalidad after lru file entry lifetime (in seconds).
; (Default: 5)
lru file entry lifetime = 5

; exclude files from being scanned based on the MIME-type! Semi-colon
; seperated list (default: empty list). Use this with care!
exclude file types =


; socket name of clamd (default: /var/run/clamd). Setting will be ignored if
; libclamav is used
;clamd socket name = /var/run/clamd
clamd socket name = /var/run/clamav/clamd-socket

; limits, if vscan-clamav was build for using the clamav library (libclamav)
; instead of clamd

; maximum number of files in archive (default: 1000)
libclamav max files in archive = 1000

; maximum archived file size, in bytes (default: 10 MB)
libclamav max archived file size = 10485760

; maximum recursion level (default: 5)
libclamav max recursion level = 5


Esto está sacado de un opensuse 9.3 ó 10.0 (no recuerdo), de 2006 ó 2007.

De todos modos, de aquella época recuerdo que clamav hacía que la transferencia de archivos fuera leeeeeeeeeeeeeeeenta. Aunque con el tiempo que ha transcurrido, cualquiera sabe cuánto ha mejorado el clamav.

Saludos.
Volver arriba
Ver perfil de usuario Enviar mensaje privado
jcgm129
Forista


Registrado: 09 Ago 2010
Mensajes: 2

MensajePublicado: Mar Ago 10, 2010 7:16 pm    Asunto: Responder citando

Gracias, dejame probar a ver como me va con esto...
Volver arriba
Ver perfil de usuario Enviar mensaje privado
Mostrar mensajes de anteriores:   
Publicar nuevo tema   Responder al tema    Foros de discusión -> Servidores y Servicios Todas las horas son GMT
Página 1 de 1

 
Cambiar a:  
Puede publicar nuevos temas en este foro
No puede responder a temas en este foro
No puede editar sus mensajes en este foro
No puede borrar sus mensajes en este foro
No puede votar en encuestas en este foro




La marca registrada Linux (R) se usa siguiendo la sublicensia obtenida del "Linux Mark Institute",
el LICENCIATARIO exclusivo de Linus Torvalds, propietario de la marca en EEUU y otros países
The registered trademark Linux (R) is used pursuant to a sublicense from the Linux Mark Institute,
the exclusive LICENSEE of Linus Torvalds, owner of the mark in the U.S. and other countries
Powered by phpBB © 2001, 2002 phpBB Group

Contactos - Doraemon Games - Horse Games - Golf Games - Dog Games - Bird Games - SpongeBob Games - Pet Games