-1

我在使用代理身份验证更新 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的方式是无法使用代理连接的。

4

1 回答 1

0
  1. 确保配置文件与运行 clamav 的用户属于同一用户。
  2. 查看您的代理日志以查看下载每日文件时出现的问题?
于 2017-11-30T09:59:13.643 回答