• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
Xin chào ! Nếu đây là lần đầu tiên bạn đến với diễn đàn, xin vui lòng danh ra một phút bấm vào đây để đăng kí và tham gia thảo luận cùng VnPro.

Announcement

Collapse
No announcement yet.

Bảo vệ Linux server của bạn bằng Clamav Antivirus

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bảo vệ Linux server của bạn bằng Clamav Antivirus

    Clamav Antivirus


    Clamav Antivirus là tool diệt virus mã nguồn mở nổi tiếng trên các máy chủ chạy Linux.

    Sau đây là hướng dẫn cài đặt & sử dụng Clamav Antivirus trên CentOS 8:

    Đầu tiên, ta cần cài EPEL Repository cho CentOS 8:

    [root@dlp ~]#sudo yum -y install epel-release

    Cài đặt Clamav Antivirus từ EPEL:

    [root@dlp ~]# dnf --enablerepo=epel -y install clamav clamav-update

    [root@dlp ~]# vi /etc/freshclam.conf


    Dòng số 8: Thêm dấu # vào trước

    Cập nhật mẫu virus:

    [root@dlp ~]# freshclam
    ClamAV update process started at Thu Sep 26 00:45:12 2019
    main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
    daily.cvd is up to date (version: 25583, sigs: 1778105, f-level: 63, builder: raynman)
    bytecode.cvd is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)


    Quét thư mục mà ta muốn (ở đây là thư mục /home):

    [root@dlp ~]# clamscan --infected --remove --recursive /home
    ----------- SCAN SUMMARY -----------
    Known viruses: 6334004
    Engine version: 0.101.4
    Scanned directories: 2
    Scanned files: 3
    Infected files: 0
    Data scanned: 0.00 MB
    Data read: 0.00 MB (ratio 0.00:1)
    Time: 40.722 sec (0 m 40 s)


    Tải xuống mẫu virus để test (nếu muốn):

    [root@dlp ~]# wget http://www.eicar.org/download/eicar.com

    Chạy lệnh quét lần nữa:

    [root@dlp ~]# clamscan --infected --remove --recursive .

    ./eicar.com: Eicar-Test-Signature FOUND
    ./eicar.com: Removed.


    ----------- SCAN SUMMARY -----------
    Known viruses: 6334004
    Engine version: 0.101.4
    Scanned directories: 1
    Scanned files: 9
    Infected files: 1
    Data scanned: 0.01 MB
    Data read: 0.00 MB (ratio 2.00:1)
    Time: 39.496 sec (0 m 39 s)


    Nguồn: server-world.info
Working...
X