プロキシサーバーでウイルスチェック(Squid+SquidClamAV+ClamAV)
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[CentOS7]]
*プロキシサーバーでウイルスチェック(Squid+SquidClamAV+Cla...
プロキシサーバーでウイルスチェックを行う。ここでは、[[Squ...
&color(red){※[[Squid>squidインストール]]、[[CalmAntiVirus...
*SquidClamAVインストール [#v80ebaba]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# yum -y install curl-devel &color(lim...
|[root@localhost ~]# wget http://nchc.dl.sourceforge.net/...
|&color(lightpink){※最新版のURLは[[ダウンロードページ>htt...
|[root@localhost ~]# tar zxvf squidclamav-4.0.tar.gz &col...
|[root@localhost ~]# cd squidclamav-4.0 &color(lime){← S...
|[root@localhost squidclamav-4.0]# ./configure && make &&...
|[root@localhost squidclamav-4.0]# cp squidclamav.conf.di...
|[root@localhost squidclamav-4.0]# cp clwarn.cgi /var/www...
|[root@localhost squidclamav-4.0]# cd &color(lime){← Squ...
|[root@localhost ~]# rm -rf squidclamav-4.0 &color(lime){...
|[root@localhost ~]# rm -f squidclamav-4.0.tar.gz &color(...
*SquidClamAV設定 [#ue5e81dc]
**Squid設定 [#t29e3890]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# vi /etc/squid/squid.conf &color(lime...
|# TAG: url_rewrite_program &br; # Specify the loc...
**ClamAV設定 [#j8ebf376]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# vi /etc/clamd.conf &color(lime){← c...
|# Path to a local socket file the daemon will listen on....
|[root@localhost ~]# /etc/rc.d/init.d/clamd restart &colo...
**SquidClamAV設定 [#m1ec765c]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# vi /etc/squidclamav.conf &color(lime...
|proxy http://127.0.0.1:3128/ &br; logfile /var/log/squid...
|[root@localhost ~]# touch /var/log/squidclamav.log &colo...
|[root@localhost ~]# chown squid:squid /var/log/squidclam...
|[root@localhost ~]# vi /etc/logrotate.d/squidclamav &col...
|/var/log/squidclamav.log { &br; missingok &br; n...
*SquidClamAV起動 [#t22f1dc7]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# /etc/rc.d/init.d/squid restart &colo...
|Stopping squid: ...
*SquidClamAV確認 [#a0e65d5a]
[[テスト用ウイルス>http://www.eicar.org/download/eicar_co...
-----
SquidClamAv 3.5: Virus detection &br;
&br;
The requested URL http://www.eicar.org/download/eicar_com...
contains the virus: Eicar-Test-Signature &br;
&br;
This URL can not be downloaded. &br;
&br;
Origin: 192.168.1.10 / - &br;
&br;
Powered by SquidClamAv 3.5. &br;
-----
*clwarn.cgi日本語化 [#o22e28ad]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# vi /var/www/cgi-bin/clwarn.cgi &colo...
|my $TITLE_VIRUS = "SquidClamAv $VERSION: Virus detection...
[[テスト用ウイルス>http://www.eicar.org/download/eicar_co...
-----
SquidClamAv 3.5: ウイルス検出 &br;
&br;
アクセスしたURL http://www.eicar.org/download/eicar_com.z...
検出ウイルス: Eicar-Test-Signature &br;
&br;
このURLをダウンロードできません。 &br;
&br;
アクセス元: 192.168.1.10 / - &br;
&br;
Powered by SquidClamAv 3.5. &br;
-----
終了行:
[[CentOS7]]
*プロキシサーバーでウイルスチェック(Squid+SquidClamAV+Cla...
プロキシサーバーでウイルスチェックを行う。ここでは、[[Squ...
&color(red){※[[Squid>squidインストール]]、[[CalmAntiVirus...
*SquidClamAVインストール [#v80ebaba]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# yum -y install curl-devel &color(lim...
|[root@localhost ~]# wget http://nchc.dl.sourceforge.net/...
|&color(lightpink){※最新版のURLは[[ダウンロードページ>htt...
|[root@localhost ~]# tar zxvf squidclamav-4.0.tar.gz &col...
|[root@localhost ~]# cd squidclamav-4.0 &color(lime){← S...
|[root@localhost squidclamav-4.0]# ./configure && make &&...
|[root@localhost squidclamav-4.0]# cp squidclamav.conf.di...
|[root@localhost squidclamav-4.0]# cp clwarn.cgi /var/www...
|[root@localhost squidclamav-4.0]# cd &color(lime){← Squ...
|[root@localhost ~]# rm -rf squidclamav-4.0 &color(lime){...
|[root@localhost ~]# rm -f squidclamav-4.0.tar.gz &color(...
*SquidClamAV設定 [#ue5e81dc]
**Squid設定 [#t29e3890]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# vi /etc/squid/squid.conf &color(lime...
|# TAG: url_rewrite_program &br; # Specify the loc...
**ClamAV設定 [#j8ebf376]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# vi /etc/clamd.conf &color(lime){← c...
|# Path to a local socket file the daemon will listen on....
|[root@localhost ~]# /etc/rc.d/init.d/clamd restart &colo...
**SquidClamAV設定 [#m1ec765c]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# vi /etc/squidclamav.conf &color(lime...
|proxy http://127.0.0.1:3128/ &br; logfile /var/log/squid...
|[root@localhost ~]# touch /var/log/squidclamav.log &colo...
|[root@localhost ~]# chown squid:squid /var/log/squidclam...
|[root@localhost ~]# vi /etc/logrotate.d/squidclamav &col...
|/var/log/squidclamav.log { &br; missingok &br; n...
*SquidClamAV起動 [#t22f1dc7]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# /etc/rc.d/init.d/squid restart &colo...
|Stopping squid: ...
*SquidClamAV確認 [#a0e65d5a]
[[テスト用ウイルス>http://www.eicar.org/download/eicar_co...
-----
SquidClamAv 3.5: Virus detection &br;
&br;
The requested URL http://www.eicar.org/download/eicar_com...
contains the virus: Eicar-Test-Signature &br;
&br;
This URL can not be downloaded. &br;
&br;
Origin: 192.168.1.10 / - &br;
&br;
Powered by SquidClamAv 3.5. &br;
-----
*clwarn.cgi日本語化 [#o22e28ad]
|BGCOLOR(black):COLOR(white):|c
|[root@localhost ~]# vi /var/www/cgi-bin/clwarn.cgi &colo...
|my $TITLE_VIRUS = "SquidClamAv $VERSION: Virus detection...
[[テスト用ウイルス>http://www.eicar.org/download/eicar_co...
-----
SquidClamAv 3.5: ウイルス検出 &br;
&br;
アクセスしたURL http://www.eicar.org/download/eicar_com.z...
検出ウイルス: Eicar-Test-Signature &br;
&br;
このURLをダウンロードできません。 &br;
&br;
アクセス元: 192.168.1.10 / - &br;
&br;
Powered by SquidClamAv 3.5. &br;
-----
ページ名: