[[役に立つテクニック集]]

EC2のリソースが足りず、起動できなかったため、本件は未完成

https://dev.classmethod.jp/cloud/aws/install-clamav-to-amazon-linux/

必要なソフトウェアをインストール
 yum install clamav clamav-scanner-sysvinit clamav-update

/etc/freshclam.confを編集
 # Comment or remove the line below.
 # Example            行削除するかコメントにする
 # 以下はコメントを解除
 DatabaseDirectory /var/lib/clamav
 UpdateLogFile /var/log/freshclam.log
 DatabaseOwner clamupdate

ウィルス対策の状態を最新にするため以下を実行
 freshclam

/etc/clamd.d/scan.confを書き換えて、有効化、そして次の行を書き加えてメールの送信先を設定
 # Comment or remove the line below.
 # Example        行削除するかコメントにする
 # 以下はコメントを解除
 LocalSocket /var/run/clamd.scan/clamd.sock
 FixStaleSocket yes
 TCPAddr 127.0.0.1
 ExcludePath ^/proc/
 ExcludePath ^/sys/
 User clamscan

以下は参考、ウィルス発見時にメールを出す設定
 VirusEvent echo "VIRUS ALERT: %v" | mail -s "Virus Alert" support@worldcraft.co.jp

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS