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

时间:2017-11-30 05:00:52

标签: ubuntu proxy ubuntu-16.04 antivirus clam

我在使用代理身份验证更新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 个答案:

答案 0 :(得分:0)

  1. 确保与运行clamav的用户拥有的配置文件。
  2. 查看代理日志以查看下载每日文件时失败的内容?