Hi, I want to provide a private local mirror with NFS.
On my server, which has access to the internet, I use freshclam to download the updates to a folder which is shared via NFS. On my clients I use LogSyslog yes ScriptedUpdates no DatabaseCustomURL file:///net/<hostname>/clamav/main.cvd DatabaseCustomURL file:///net/<hostname>/clamav/daily.cvd<file:///net/serverhostname/clamav/daily.cvd> DatabaseCustomURL file:///net/<hostname>/clamav/bytecode.cvd<file:///net/serverhostname/clamav/bytecode.cvd> PrivateMirror <hostname> in /etc/freshclam.conf. I'm able to download the updates on my clients but I always get errors because of the PrivateMirror line freshclam ClamAV update process started at Thu Apr 26 17:21:53 2018 Downloading main.cvd [100%] main.cvd updated (version: custom database, sigs: 4566249) Downloading daily.cvd [100%] daily.cvd updated (version: custom database, sigs: 1922512) Downloading bytecode.cvd [100%] bytecode.cvd updated (version: custom database, sigs: 75) Reading CVD header (main.cld): connect_error: getsockopt(SO_ERROR): fd=4 error=111: Connection refused Can't connect to port 80 of host <hostname> (IP: <IP>) Reading CVD header (main.cvd): connect_error: getsockopt(SO_ERROR): fd=4 error=111: Connection refused Can't connect to port 80 of host <hostname> (IP: <IP>) WARNING: Can't read main.cvd header from <hostname> (IP: ) Trying again in 5 secs... ClamAV update process started at Thu Apr 26 17:22:15 2018 Downloading main.cvd [100%] main.cvd updated (version: custom database, sigs: 4566249) Downloading daily.cvd [100%] daily.cvd updated (version: custom database, sigs: 1922512) Downloading bytecode.cvd [100%] bytecode.cvd updated (version: custom database, sigs: 75) Reading CVD header (main.cld): connect_error: getsockopt(SO_ERROR): fd=4 error=111: Connection refused Can't connect to port 80 of host <hostname> (IP: <IP>) Reading CVD header (main.cvd): connect_error: getsockopt(SO_ERROR): fd=4 error=111: Connection refused Can't connect to port 80 of host <hostname> (IP: <IP>) WARNING: Can't read main.cvd header from <hostname> (IP: ) Trying again in 5 secs... ClamAV update process started at Thu Apr 26 17:22:33 2018 Downloading main.cvd [100%] main.cvd updated (version: custom database, sigs: 4566249) Downloading daily.cvd [100%] daily.cvd updated (version: custom database, sigs: 1922512) Downloading bytecode.cvd [100%] bytecode.cvd updated (version: custom database, sigs: 75) Reading CVD header (main.cld): connect_error: getsockopt(SO_ERROR): fd=4 error=111: Connection refused Can't connect to port 80 of host <hostname> (IP: <IP>) Reading CVD header (main.cvd): connect_error: getsockopt(SO_ERROR): fd=4 error=111: Connection refused Can't connect to port 80 of host <hostname> (IP: <IP>) WARNING: Can't read main.cvd header from <hostname> (IP: ) Giving up on <hostname>... Update failed. Your network may be down or none of the mirrors listed in /etc/freshclam.conf is working. Check http://www.clamav.net/doc/mirrors-faq.html for possible reasons. Is it possible to avoid them? I would actually like to just use DatabaseCustomURL as I don't need the PrivateMirror setting. I know that the PrivateMirror line is just for http, but I have to add it, since freshclam won't start otherwise. It also seems like on my clients freshclam always downloads the updates no matter whether the files have changed or not. Is there a way to avoid this? Best regards, Jens _______________________________________________ clamav-users mailing list clamav-users@lists.clamav.net http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/contact.html#ml