使用代理身份验证的 clamav 更新问题

clamav update issue using proxy authentication

我在使用代理身份验证更新 clamav 时遇到问题。我在 /etc/clamav/freshclam.conf 中添加了代理信息,如下所示:-

# 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 的方式是使用代理连接。

  1. 确保配置文件属于同一用户运行 clamav.
  2. 查看您的代理日志,了解下载每日文件时出现了什么问题?