I. Files Server with On-access Antivirus
1. Clamav
# apt-get install clamav clamav-daemon clamav-testfiles clamav-freshclam
# apt-get unzip unrar
2. Samba (installed)
#smbstatus
Samba version 3.0.22
download source samba (ver 3.0.22)
tar zxvf samba-3.0.22.tar.gz
;mv samba-3.0.22 /tmp
cd samba-3.0.22/source
./configure
make proto
3. Samba-vscan and configuration
download samba-vscan ver 0.3.6b
tar jxvf samba-vscan-0.3.6b.tar.bz2
cd samba-vscan-0.3.6b
./configure –with-samba-source=/tmp/samba-3.0.22/source
make clamav
cp vscan-clamav.so /usr/lib/samba/vfs
cp clamav/vscan-clamav.conf /etc/samba/
vim /etc/samba/vscan-clamav.conf
change (infected file action = quarantine)
change (quarantine directory = /tmp)
change (clamd socket name = /var/run/clamav/clamd.ctl)
FINISH
vim /etc/samba/smb.conf
[global]
…
vfs object = vscan-clamav
vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
Restart Samba daemon
/etc/init.d/samba restart
Test (#cat /var/log/syslog)
Tip:
Send message notification when virus found to Windows client
#apt-get install linpopup
Windows NT / 2000 / XP need to start Messenger services (Start/Run/services.msc — change status of Messenger service to Start)
SAMBA replace solution for Files and Domain Controller Server
Một trong những công việc của tôi là triển khai các hệ thống máy chủ Windows 2003 Server cho khách hàng với nhiệm vụ là một Domain Controller và Files Server hoặc đơn thuần là 1 Files Server tất nhiên kèm với sự bảo vệ của một chương trình AntiVirus.
Chi phí tối thiểu cho hệ thống đó (Server: ~$1k – $3k, W2k3 Server std:~$750, AntiVirus: ~$150-$500. Total:~$2k-4.2k)
Trong khi triển khai với Linux chỉ cần đầu tư cho Server tốt là OK tiết kiệm được ~1k tiền W2k3 Server và AntiVirus.
Độ ổn định của hệ thống thì không phải bàn nữa, Linux nói chung vô cảm với các loại Virus hiện hành nên không lo sập hệ thống như bác W2k3.