-2
clamavのアップデートにプロキシ認証を使用する際に問題があります。以下に示すように、私は/etc/clamav/freshclam.confでプロキシ情報を追加しました: -clamavアップデートプロキシ認証による問題
# Proxy Setup
HTTPProxyServer myproxy
HTTPProxyPort 3128
HTTPProxyUsername proxyuser
HTTPProxyPassword proxypass
ファイルを保存するには、私は次の警告を取得します。
WARNING: Insecure permissions (for HTTPProxyPassword): /etc/clamav/freshclam.conf must have no more than 0700 permissions.
私は、推奨されているようにファイルの権限を700に変更します。今私はエラーが発生しています。
ERROR: Can't open/parse the config file /etc/clamav/freshclam.conf
権限をロールバックすると警告が表示されます。アクセス許可を適用するとエラーが発生します。いずれの場合も、clamavを更新することはできません。私はそれが(私は444、デフォルトの権限をロールバックする必要がある)接続しようとする認証を削除し、私は次のエラーを取得するとき
それが唯一である: -
Thu May 12 09:28:35 2017 -> ClamAV update process started at Thu May 12 09:28:35 2017
Thu May 12 09:28:35 2017 -> Connecting via myproxy
Thu May 12 09:28:35 2017 -> main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Thu May 12 09:28:35 2017 -> Connecting via myproxy
Thu May 12 09:28:35 2017 -> WARNING: getfile: Unknown response from db.local.clamav.net
Thu May 12 09:28:35 2017 -> WARNING: Can't download daily.cvd from db.local.clamav.net
Thu May 12 09:28:36 2017 -> Trying again in 5 secs...
Thu May 12 09:28:41 2017 -> ClamAV update process started at Thu May 12 09:28:41 2017
Thu May 12 09:28:41 2017 -> Connecting via myproxy
Thu May 12 09:28:41 2017 -> main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Thu May 12 09:28:41 2017 -> Connecting via myproxy
Thu May 12 09:28:41 2017 -> WARNING: getfile: Unknown response from db.local.clamav.net
Thu May 12 09:28:41 2017 -> WARNING: Can't download daily.cvd from db.local.clamav.net
Thu May 12 09:28:42 2017 -> Trying again in 5 secs...
Thu May 12 09:28:47 2017 -> ClamAV update process started at Thu May 12 09:28:47 2017
Thu May 12 09:28:47 2017 -> Connecting via myproxy
Thu May 12 09:28:47 2017 -> main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Thu May 12 09:28:47 2017 -> Connecting via myproxy
Thu May 12 09:28:48 2017 -> WARNING: getfile: Unknown response from db.local.clamav.net
Thu May 12 09:28:48 2017 -> WARNING: Can't download daily.cvd from db.local.clamav.net
Thu May 12 09:28:48 2017 -> Trying again in 5 secs...
Thu May 12 09:28:53 2017 -> ClamAV update process started at Thu May 12 09:28:53 2017
Thu May 12 09:28:53 2017 -> Connecting via myproxy
Thu May 12 09:28:53 2017 -> main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Thu May 12 09:28:53 2017 -> Connecting via myproxy
Thu May 12 09:28:54 2017 -> WARNING: getfile: Unknown response from db.local.clamav.net
Thu May 12 09:28:54 2017 -> WARNING: Can't download daily.cvd from db.local.clamav.net
Thu May 12 09:28:54 2017 -> Trying again in 5 secs...
Thu May 12 09:28:59 2017 -> ClamAV update process started at Thu May 12 09:28:59 2017
Thu May 12 09:28:59 2017 -> Connecting via myproxy
Thu May 12 09:28:59 2017 -> main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Thu May 12 09:28:59 2017 -> Connecting via myproxy
Thu May 12 09:29:00 2017 -> ERROR: getfile: Unknown response from db.local.clamav.net
Thu May 12 09:29:00 2017 -> ERROR: Can't download daily.cvd from db.local.clamav.net
Thu May 12 09:29:00 2017 -> Giving up on db.local.clamav.net...
Thu May 12 09:29:00 2017 -> ClamAV update process started at Thu May 12 09:29:00 2017
Thu May 12 09:29:00 2017 -> Connecting via myproxy
Thu May 12 09:29:00 2017 -> main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Thu May 12 09:29:00 2017 -> Connecting via myproxy
Thu May 12 09:29:01 2017 -> ERROR: getfile: Unknown response from database.clamav.net
Thu May 12 09:29:01 2017 -> ERROR: Can't download daily.cvd from database.clamav.net
Thu May 12 09:29:01 2017 -> Giving up on database.clamav.net...
Thu May 12 09:29:01 2017 -> Update failed. Your network may be down or none of the mirrors listed in /etc/clamav/freshclam.conf is working. Check http://www.clamav.net/doc/mirrors-faq.html for possible reasons.
私は私が見つけることができるすべてを試してみました。私も同様に再構成しました。
> dpkg-reconfigure clamav-freshclam
まだ同じ結果です。私がこのclamavを見る方法は、プロキシを使って接続することができないということです。
恐ろしいことに、このファイルは別のユーザーによって所有されていたため、所有権が変更されて問題が解決されました。 – user6863772