トップ   編集 凍結解除 差分 バックアップ 添付 複製 名前変更 リロード   一覧 最終更新   ヘルプ   最終更新のRSS
 


動作確認ディストリビューション

ClamAV 0.84のインストール

APTによるインストール

# apt-get install clamav clamav-daemon

[Ok]を選択

????????????????????? Configuring clamav-freshclam ??????????????????????
?                                                                       ?
? Please choose the method for virus database updates.                  #
?                                                                       ?
?  daemon : freshclam is running as a daemon all the time. You should   ?
? choose                                                                ?
?           this option if you have a permanent network connection.     ?
?  ifup.d : freshclam will be running as a daemon as long as your       ?
? Internet                                                              ?
?           connection is up. Choose this one if you have a dialup      ?
? Internet                                                              ?
?           connection and don't want freshclam to initiate new         ?
? connections.                                                          ?
?  cron   : freshclam is started from cron. Choose if you want full     ?
? control                                                               ?
?           of when the database is updated.                            ?
?  manual : No automatic invocation of freshclam. This is not           ?
?                                                                        
?                               [<Ok>]                                   
?                                                                       ?
?????????????????????????????????????????????????????????????????????????

[daemon]を選択し、[Ok]を選択

?????? Configuring clamav-freshclam ???????
? Virus database update method:           ?
?                                         ?
?                [daemon]                 ?
?                 ifup.d                  ?
?                 cron                    ?
?                 manual                  ?
?                                         ?
?                                         ?
?       [<Ok>]           <Cancel>         ?
?                                         ?
???????????????????????????????????????????

[db.jp.clamav.net (Japan)]を選択し、[Ok]を選択

????????????????????? Configuring clamav-freshclam ??????????????????????
? Please select the closest local mirror site.                          ?
?                                                                       ?
? Freshclam updates its database from a world wide network of mirror    ?
? sites.  Please select the mirror closest to you.  If you leave it at  ?
? the default setting, an attempt will be made to provide you with a    ?
? nearby mirror, but this attempt may not always provide you with the   ?
? closest mirror site.                                                  ?
?                                                                       ?
? Local database mirror site:                                           ?
?                                                                       ?
?   db.jm.clamav.net (Jamaica)                                         ??
?   db.jo.clamav.net (Jordan)                                          #?
?  [db.jp.clamav.net (Japan)]                                          ??
?   db.ke.clamav.net (Kenya)                                           ??
?   db.kg.clamav.net (Kyrgyzstan)                                      ??
?                                                                       ?
?                                                                       ?
?                 [<Ok>]                     <Cancel>                   ?
?                                                                       ?
?????????????????????????????????????????????????????????????????????????

未入力で、[Ok]を選択

????????????????????? Configuring clamav-freshclam ?????????????????????
? If you need to use a HTTP proxy to access the outside world, enter   ?
? the proxy information here. Otherwise, leave this blank.             ?
?                                                                      ?
? Please use URL syntax ("http://host[:port]") here.                   ?
?                                                                      ?
? HTTP proxy information (leave blank for none):                       ?
?                                                                      ?
? ____________________________________________________________________ ?
?                                                                      ?
?                 [<Ok>]                     <Cancel>                  ?
?                                                                      ?
????????????????????????????????????????????????????????????????????????

[Yes]を選択

????????????????????? Configuring clamav-freshclam ??????????????????????
?                                                                       ?
? Please confirm whether clamd should be notified to reload the         ?
? database after successful updates.                                    ?
?                                                                       ?
? If you do not choose this option, clamd's database reloads will be    ?
? notably delayed (it performs this check every 6 hours by default),    ?
? posing the risk that a new virus may slip through although your       ?
? database is up to date. Do not use this if you do not use clamd, as   ?
? it will produce errors.                                               ?
?                                                                       ?
? Should clamd be notified after updates?                               ?
?                                                                       ?
?                  [<Yes>]                     <No>                     ?
?                                                                       ?
?????????????????????????????????????????????????????????????????????????

ウイルスパターンアップデート用ログファイルを作成

# touch /var/log/clamav/clam-update.log

ログファイルのオーナーを変更

# chown clamav:adm /var/log/clamav/clam-update.log 

自動起動設定

# vi /etc/rc.boot/rc.local

#! /bin/sh
#
# rc.local
# For Clam AntiVirus Setting
/usr/bin/freshclam -d -c 24 --quiet -l /var/log/clamav/clam-update.log

ウイルススキャン用ログファイルを作成

# touch /var/log/clamav/clam-scan.log

ログファイルのオーナーを変更

# chown clamav:adm /var/log/clamav/clam-scan.log 

ウイルススキャンの定時実行設定

# crontab -e

00 03 * * * /usr/bin/clamscan --remove --recursive -l /var/log/clamav/clam-scan.log /
  • 関連ページ
    • ClamAV 0.88.6のインストール?

Last-modified: 2007-03-22 (木) 23:43:46 (4289d)