Discussion:
[clamav-users] Need help to use a local server for updating
stef stef
2015-01-26 08:43:13 UTC
Permalink
Hi, 
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use  clamdownloader.pl by Frederic Vanden Poel
 I've downloaded the clamAV update in my webserver Repository and the script works fine.  I can see the *.cvd file with url :      http://IP/my_repository

On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository

But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository

I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav. 
Here's my freshclam.conf :
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv

Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).



_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

h
Al Varnell
2015-01-26 09:11:07 UTC
Permalink
Have you gone through all the documentation on Private Mirrors <http://www.clamav.net/doc/mirrors-private>?

-Al-
Post by stef stef
Hi,
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use clamdownloader.pl by Frederic Vanden Poel
I've downloaded the clamAV update in my webserver Repository and the script works fine. I can see the *.cvd file with url : http://IP/my_repository
On my client, I've changed my freesclam.conf with :DatabaseMirror http://IP/my_repository
But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository
I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav.
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/
stef stef
2015-01-26 09:19:00 UTC
Permalink
Yes, I use this documentation to use the clamdownloader.pl script (and it works)On this documentation, it's just specify "DatabaseMirror machine1.mylan"
And with my server URL (http://IP/my_repository) on my client freshclam.conf, it don't work :(

Thanks for your help
De : Al Varnell <***@mac.com>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 10h11
Objet : Re: [clamav-users] Need help to use a local server for updating

Have you gone through all the documentation on Private Mirrors <http://www.clamav.net/doc/mirrors-private>?

-Al-
Post by stef stef
Hi,
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use  clamdownloader.pl by Frederic Vanden Poel
  I've downloaded the clamAV update in my webserver Repository and the script works fine.  I can see the *.cvd file with url :      http://IP/my_repository
On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository
But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository
I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav.
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
Del Monte Paolo
2015-01-26 09:30:43 UTC
Permalink
It's not clear to me if u attempled a wget on your mirror server.
Secondary why do u configure as a prmary mirror a server in your vlan? Can u check pls how the clamdownloader.pl script works? E.g. it perform a ftp a scp ....
U should simply put a debugger "set -x" in the head of your downloader script in order to verify where the flux is wrong. It should be a fw issue too.

-----Messaggio originale-----
Da: clamav-users [mailto:clamav-users-***@lists.clamav.net] Per conto di stef stef
Inviato: lunedì 26 gennaio 2015 10.20
A: ClamAV users ML; ***@mac.com
Oggetto: Re: [clamav-users] Need help to use a local server for updating

Yes, I use this documentation to use the clamdownloader.pl script (and it works)On this documentation, it's just specify "DatabaseMirror machine1.mylan"
And with my server URL (http://IP/my_repository) on my client freshclam.conf, it don't work :(

Thanks for your help
De : Al Varnell <***@mac.com>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 10h11
Objet : Re: [clamav-users] Need help to use a local server for updating

Have you gone through all the documentation on Private Mirrors <http://www.clamav.net/doc/mirrors-private>?

-Al-
Post by stef stef
Hi,
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use  clamdownloader.pl by Frederic Vanden Poel
  I've downloaded the clamAV update in my webserver Repository and the script works fine.  I can see the *.cvd file with url :      http://IP/my_repository
On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository
But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository
I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav.
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
stef stef
2015-01-26 09:51:37 UTC
Permalink
Sorry for my bad english. 
My server : 192.168.0.200 (Debian)My client : 192.168.0.10 (Ubuntu)No VLAn, on the same network.

My client can access on clamAV repository with url http://192.168.0.200/my_repository and it can download with "wget http://192.168.0.200/my_repository/main.cvd".
On my serveur, on this directory I've "main.cvd, daily.cvd, bytecode.cvd,  mirrors.dat". I get these files with freshclam and I updated these files with clamdownloader.pl. These actions work fine.

The problem is on my client : when I do a freshclam with DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
on my freshclam.conf, It doesn't work. 
It seems that freshclam doesn't know It had to use a local network. When I do freshclam and a tcpdump on my client, there's no trafic in direction to my server.  I think It's DNSDatabaseInfo that it's not the right value but I don't know what I've to put in...Do I have to configure a DNS server on my web server ? 
De : Del Monte Paolo <***@eng.it>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 10h30
Objet : [clamav-users] R: Need help to use a local server for updating

It's not clear to me if u attempled a wget on your mirror server.
Secondary why do u configure as a prmary mirror a server in your vlan? Can u check pls how the clamdownloader.pl script works? E.g. it perform a ftp a scp ....
U should simply put a debugger "set -x" in the head of your downloader script in order to verify where the flux is wrong. It should be a fw issue too.

-----Messaggio originale-----
Da: clamav-users [mailto:clamav-users-***@lists.clamav.net] Per conto di stef stef
Inviato: lunedì 26 gennaio 2015 10.20
A: ClamAV users ML; ***@mac.com
Oggetto: Re: [clamav-users] Need help to use a local server for updating

Yes, I use this documentation to use the clamdownloader.pl script (and it works)On this documentation, it's just specify "DatabaseMirror machine1.mylan"
And with my server URL (http://IP/my_repository) on my client freshclam.conf, it don't work :(

Thanks for your help
      De : Al Varnell <***@mac.com>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 10h11
Objet : Re: [clamav-users] Need help to use a local server for updating
 
Have you gone through all the documentation on Private Mirrors <http://www.clamav.net/doc/mirrors-private>?

-Al-
Post by stef stef
Hi,
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use  clamdownloader.pl by Frederic Vanden Poel
  I've downloaded the clamAV update in my webserver Repository and the script works fine.  I can see the *.cvd file with url :      http://IP/my_repository
On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository
But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository
I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav.
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

 
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/v
Del Monte Paolo
2015-01-26 10:15:30 UTC
Permalink
Ok but it's interesting to know as the refresh is scheduled from your client to your repository as configured on flaschclam conf file. Can u get more information about the warning? How the update script works? It perform finally a scp wget ftp...?
Maybe freshclam is designed to work with the std clamav repository so the client need a network availability as I think that an update via freshclam tool is attempted with a wget.
A solution should be perform a script that directly get the updates files from your internal repository, eg via ftp or scp. U should schedule it on clamav user crontab file.


PS: Check iptables too in both your server.

-----Messaggio originale-----
Da: clamav-users [mailto:clamav-users-***@lists.clamav.net] Per conto di stef stef
Inviato: lunedì 26 gennaio 2015 10.52
A: ClamAV users ML
Oggetto: Re: [clamav-users] R: Need help to use a local server for updating

Sorry for my bad english. 
My server : 192.168.0.200 (Debian)My client : 192.168.0.10 (Ubuntu)No VLAn, on the same network.

My client can access on clamAV repository with url http://192.168.0.200/my_repository and it can download with "wget http://192.168.0.200/my_repository/main.cvd".
On my serveur, on this directory I've "main.cvd, daily.cvd, bytecode.cvd,  mirrors.dat". I get these files with freshclam and I updated these files with clamdownloader.pl. These actions work fine.

The problem is on my client : when I do a freshclam with DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
on my freshclam.conf, It doesn't work. 
It seems that freshclam doesn't know It had to use a local network. When I do freshclam and a tcpdump on my client, there's no trafic in direction to my server.  I think It's DNSDatabaseInfo that it's not the right value but I don't know what I've to put in...Do I have to configure a DNS server on my web server ? 
De : Del Monte Paolo <***@eng.it>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 10h30
Objet : [clamav-users] R: Need help to use a local server for updating

It's not clear to me if u attempled a wget on your mirror server.
Secondary why do u configure as a prmary mirror a server in your vlan? Can u check pls how the clamdownloader.pl script works? E.g. it perform a ftp a scp ....
U should simply put a debugger "set -x" in the head of your downloader script in order to verify where the flux is wrong. It should be a fw issue too.

-----Messaggio originale-----
Da: clamav-users [mailto:clamav-users-***@lists.clamav.net] Per conto di stef stef
Inviato: lunedì 26 gennaio 2015 10.20
A: ClamAV users ML; ***@mac.com
Oggetto: Re: [clamav-users] Need help to use a local server for updating

Yes, I use this documentation to use the clamdownloader.pl script (and it works)On this documentation, it's just specify "DatabaseMirror machine1.mylan"
And with my server URL (http://IP/my_repository) on my client freshclam.conf, it don't work :(

Thanks for your help
      De : Al Varnell <***@mac.com>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 10h11
Objet : Re: [clamav-users] Need help to use a local server for updating
 
Have you gone through all the documentation on Private Mirrors <http://www.clamav.net/doc/mirrors-private>?

-Al-
Post by stef stef
Hi,
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use  clamdownloader.pl by Frederic Vanden Poel
  I've downloaded the clamAV update in my webserver Repository and the script works fine.  I can see the *.cvd file with url :      http://IP/my_repository
On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository
But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository
I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav.
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

 
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
stef stef
2015-01-26 10:23:04 UTC
Permalink
No iptables !Thanks for your advice, I think I will do as you say, I will use a wget to update my client dataBase and not the binary freshclam...
De : Del Monte Paolo <***@eng.it>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 11h15
Objet : [clamav-users] R: R: Need help to use a local server for updating

Ok but it's interesting to know as the refresh is scheduled from your client to your repository as configured on flaschclam conf file. Can u get more information about the warning? How the update script works? It perform finally a scp wget ftp...?
Maybe freshclam is designed to work with the std clamav repository so the client need a network availability as I think that an update via freshclam tool is attempted with a wget.
A solution should be perform a script that directly get the updates files from your internal repository, eg via ftp or scp. U should schedule it on clamav user crontab file.


PS: Check iptables too in both your server.

-----Messaggio originale-----
Da: clamav-users [mailto:clamav-users-***@lists.clamav.net] Per conto di stef stef
Inviato: lunedì 26 gennaio 2015 10.52
A: ClamAV users ML
Oggetto: Re: [clamav-users] R: Need help to use a local server for updating

Sorry for my bad english. 
My server : 192.168.0.200 (Debian)My client : 192.168.0.10 (Ubuntu)No VLAn, on the same network.

My client can access on clamAV repository with url http://192.168.0.200/my_repository and it can download with "wget http://192.168.0.200/my_repository/main.cvd".
On my serveur, on this directory I've "main.cvd, daily.cvd, bytecode.cvd,  mirrors.dat". I get these files with freshclam and I updated these files with clamdownloader.pl. These actions work fine.

The problem is on my client : when I do a freshclam with DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
on my freshclam.conf, It doesn't work. 
It seems that freshclam doesn't know It had to use a local network. When I do freshclam and a tcpdump on my client, there's no trafic in direction to my server.  I think It's DNSDatabaseInfo that it's not the right value but I don't know what I've to put in...Do I have to configure a DNS server on my web server ? 
      De : Del Monte Paolo <***@eng.it>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 10h30
Objet : [clamav-users] R: Need help to use a local server for updating
 
It's not clear to me if u attempled a wget on your mirror server.
Secondary why do u configure as a prmary mirror a server in your vlan? Can u check pls how the clamdownloader.pl script works? E.g. it perform a ftp a scp ....
U should simply put a debugger "set -x" in the head of your downloader script in order to verify where the flux is wrong. It should be a fw issue too.

-----Messaggio originale-----
Da: clamav-users [mailto:clamav-users-***@lists.clamav.net] Per conto di stef stef
Inviato: lunedì 26 gennaio 2015 10.20
A: ClamAV users ML; ***@mac.com
Oggetto: Re: [clamav-users] Need help to use a local server for updating

Yes, I use this documentation to use the clamdownloader.pl script (and it works)On this documentation, it's just specify "DatabaseMirror machine1.mylan"
And with my server URL (http://IP/my_repository) on my client freshclam.conf, it don't work :(

Thanks for your help
      De : Al Varnell <***@mac.com>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 10h11
Objet : Re: [clamav-users] Need help to use a local server for updating
 
Have you gone through all the documentation on Private Mirrors <http://www.clamav.net/doc/mirrors-private>?

-Al-
Post by stef stef
Hi,
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use  clamdownloader.pl by Frederic Vanden Poel
  I've downloaded the clamAV update in my webserver Repository and the script works fine.  I can see the *.cvd file with url :      http://IP/my_repository
On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository
But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository
I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav.
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

 
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml




_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

 
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http:/
Del Monte Paolo
2015-01-26 09:17:52 UTC
Permalink
Hi Stef,
Are u sure that the main cvd file is present in your repository? If yes you should check with attention the warning message. It sound like a permission or network problems (proxy?).
You can perform a connection attempt in this simple way from your linux server:

wget http://<mirror ip>/main.cvd
wget http://<mirror ip>/daily.cvd

May be a good idea to get files directly from clamav repository.

Regards
Paolo

-----Messaggio originale-----
Da: clamav-users [mailto:clamav-users-***@lists.clamav.net] Per conto di stef stef
Inviato: lunedì 26 gennaio 2015 9.44
A: clamav-***@lists.clamav.net
Oggetto: [clamav-users] Need help to use a local server for updating

Hi, 
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use  clamdownloader.pl by Frederic Vanden Poel
 I've downloaded the clamAV update in my webserver Repository and the script works fine.  I can see the *.cvd file with url :      http://IP/my_repository

On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository

But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository

I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav. 
Here's my freshclam.conf :
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv

Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).



_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
stef stef
2015-01-26 09:28:41 UTC
Permalink
I'm on a local network, without proxy. When the client does : wget http://<mirror private_ip>/my_repository/main.cvd, it works fine. 
My server web is used for other services and I need to use a specific directory (http://<mirror ip>/my_repository/main.cvd) and not the clamAv repository... 
De : Del Monte Paolo <***@eng.it>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 10h17
Objet : [clamav-users] R: Need help to use a local server for updating

Hi Stef,
Are u sure that the main cvd file is present in your repository? If yes you should check with attention the warning message. It sound like a permission or network problems (proxy?).
You can perform a connection attempt in this simple way from your linux server:

wget http://<mirror ip>/main.cvd
wget http://<mirror ip>/daily.cvd

May be a good idea to get files directly from clamav repository.

Regards
Paolo



-----Messaggio originale-----
Da: clamav-users [mailto:clamav-users-***@lists.clamav.net] Per conto di stef stef
Inviato: lunedì 26 gennaio 2015 9.44
A: clamav-***@lists.clamav.net
Oggetto: [clamav-users] Need help to use a local server for updating

Hi, 
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use  clamdownloader.pl by Frederic Vanden Poel
 I've downloaded the clamAV update in my webserver Repository and the script works fine.  I can see the *.cvd file with url :      http://IP/my_repository

On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository

But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository

I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav. 
Here's my freshclam.conf :
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv

Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).



_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/cl
Del Monte Paolo
2015-01-26 09:37:01 UTC
Permalink
Do u resolv your local mirror server from the client?

-----Messaggio originale-----
Da: clamav-users [mailto:clamav-users-***@lists.clamav.net] Per conto di stef stef
Inviato: lunedì 26 gennaio 2015 10.29
A: ClamAV users ML
Oggetto: Re: [clamav-users] R: Need help to use a local server for updating

I'm on a local network, without proxy. When the client does : wget http://<mirror private_ip>/my_repository/main.cvd, it works fine. 
My server web is used for other services and I need to use a specific directory (http://<mirror ip>/my_repository/main.cvd) and not the clamAv repository... 
De : Del Monte Paolo <***@eng.it>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 10h17
Objet : [clamav-users] R: Need help to use a local server for updating

Hi Stef,
Are u sure that the main cvd file is present in your repository? If yes you should check with attention the warning message. It sound like a permission or network problems (proxy?).
You can perform a connection attempt in this simple way from your linux server:

wget http://<mirror ip>/main.cvd
wget http://<mirror ip>/daily.cvd

May be a good idea to get files directly from clamav repository.

Regards
Paolo



-----Messaggio originale-----
Da: clamav-users [mailto:clamav-users-***@lists.clamav.net] Per conto di stef stef
Inviato: lunedì 26 gennaio 2015 9.44
A: clamav-***@lists.clamav.net
Oggetto: [clamav-users] Need help to use a local server for updating

Hi, 
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use  clamdownloader.pl by Frederic Vanden Poel
 I've downloaded the clamAV update in my webserver Repository and the script works fine.  I can see the *.cvd file with url :      http://IP/my_repository

On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository

But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository

I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav. 
Here's my freshclam.conf :
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv

Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).



_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
Dennis Peterson
2015-01-26 18:18:53 UTC
Permalink
The documentation in freshclam.conf for private mirrors says:

# This option allows you to easily point freshclam to private mirrors.
# If PrivateMirror is set, freshclam does not attempt to use DNS
# to determine whether its databases are out-of-date, instead it will
# use the If-Modified-Since request or directly check the headers of the
# remote database files. For each database, freshclam first attempts
# to download the CLD file. If that fails, it tries to download the
# CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo
# and ScriptedUpdates. It can be used multiple times to provide
# fall-back mirrors.
# Default: disabled
#PrivateMirror mirror1.mynetwork.com
#PrivateMirror mirror2.mynetwork.com

Note that there is no "http://" protocol in the server name.

Your freshclam.conf says:

On my client, I've changed my freesclam.conf with :DatabaseMirror http://IP/my_repository

You are using DatabaseMirror, not PrivateMirror. Something we're sure of is wrong.

dp
Post by stef stef
Hi,
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use clamdownloader.pl by Frederic Vanden Poel
I've downloaded the clamAV update in my webserver Repository and the script works fine. I can see the *.cvd file with url : http://IP/my_repository
On my client, I've changed my freesclam.conf with :DatabaseMirror http://IP/my_repository
But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository
I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav.
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).
_______________________________________________
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/con
stef stef
2015-01-27 10:32:58 UTC
Permalink
Thanks for this. So, now I write on my freshclam.conf :PrivateMirror 192.168.0.200
And no more "Error can't find Name or service not known"
But, my client don't find .cvd :WARNING: main.cld not found on remote server

Now, how indicate to the client that it have to find files *cvd on a special repository on the server ? 
Thnaks again !
De : Dennis Peterson <***@inetnw.com>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Lundi 26 janvier 2015 19h18
Objet : Re: [clamav-users] Need help to use a local server for updating

The documentation in freshclam.conf for private mirrors says:

# This option allows you to easily point freshclam to private mirrors.
# If PrivateMirror is set, freshclam does not attempt to use DNS
# to determine whether its databases are out-of-date, instead it will
# use the If-Modified-Since request or directly check the headers of the
# remote database files. For each database, freshclam first attempts
# to download the CLD file. If that fails, it tries to download the
# CVD file. This option overrides DatabaseMirror, DNSDatabaseInfo
# and ScriptedUpdates. It can be used multiple times to provide
# fall-back mirrors.
# Default: disabled
#PrivateMirror mirror1.mynetwork.com
#PrivateMirror mirror2.mynetwork.com

Note that there is no "http://" protocol in the server name.

Your freshclam.conf says:

On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository

You are using DatabaseMirror, not PrivateMirror. Something we're sure of is wrong.

dp
Post by stef stef
Hi,
I need help to configure freeshclam.conf on a client with a local server.
On my local server, i use  clamdownloader.pl by Frederic Vanden Poel
  I've downloaded the clamAV update in my webserver Repository and the script works fine.  I can see the *.cvd file with url :      http://IP/my_repository
On my client, I've changed my freesclam.conf with :DatabaseMirror  http://IP/my_repository
But when I launch freshclam I've an error :WARNING: Can't download main.cvd from http://IP/my_repository
I've tried without http://, without DNSDatabaseInfo (how to configure this value ?).
I've tried to change user on repository IP/my_repository with www.data and with clamav.
# Automatically created by the clamav-freshclam postinst# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamavUpdateLogFile /var/log/clamav/freshclam.logLogVerbose falseLogSyslog falseLogFacility LOG_LOCAL6LogFileMaxSize 0LogRotate trueLogTime trueForeground falseDebug falseMaxAttempts 5DatabaseDirectory /var/lib/clamav#DNSDatabaseInfo current.cvd.clamav.net#DNSDatabaseInfo 192.168.0.200AllowSupplementaryGroups falsePidFile /var/run/clamav/freshclam.pidConnectTimeout 30ReceiveTimeout 30TestDatabases yesScriptedUpdates yes# Check for new database 24 times a dayChecks 24DatabaseMirror http://192.168.0.200/SOS/TPs/clamAv
Any idea to help me ?Thanks a lot !
Stéphanie(Sorry for my bad english).
_______________________________________________
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clam
Dennis Peterson
2015-01-27 21:37:02 UTC
Permalink
Thanks for this. So, now I write on my freshclam.conf :PrivateMirror 192.168.0.200
And no more "Error can't find Name or service not known"
But, my client don't find .cvd :WARNING: main.cld not found on remote server
Now, how indicate to the client that it have to find files *cvd on a special repository on the server ?
Thnaks again !
With the PrivateMirror option Freshclam looks in the document root of the web
server for main, daily, and bytecode files (both cvd and cld). You may find
greater success if you create a virtual host in your web server that has a
dedicated document root that holds nothing but signatures.

If that is unacceptable then you can go outside the box and change some other
parameters in freshclam.conf. The example assumes you have created a clamav
directory under the document root of your web server (e.g. myhost below but use
your actual host name):

DatabaseMirror myhost

# Comment out what is not needed
#DatabaseCustomURL http://myhost/clamav/main.cld
DatabaseCustomURL http://myhost/clamav/main.cvd

#DatabaseCustomURL http://myhost/clamav/daily.cld
DatabaseCustomURL http://myhost/clamav/daily.cvd

#DatabaseCustomURL http://myhost/clamav/bytecode.cld
DatabaseCustomURL http://myhost/clamav/bytecode.cvd

The files main, daily, and bytecode need to be there and updated by some
external atomic process that pulls them in from a clamav.net mirror. The
filename extensions can be cld or cvd. You cannot have a main.cld and a main.cvd
- same with the other files, it is one or the other but never with both
extensions. If you are sure you know which you have you can eliminate the
unneeded custom URLs so freshclam doesn't log an unfound file error.

dp
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
stef stef
2015-01-29 08:47:27 UTC
Permalink
Many many thanks !!!
It finally works with :
#DNSDatabaseInfo current.cvd.clamav.netDatabaseMirror 192.168.0.200DatabaseCustomURL http://192.168.0.200/clamav/main.cvd
DatabaseCustomURL http://192.168.0.200/clamav/bytecode.cvd
DatabaseCustomURL http://192.168.0.200/clamav/daily.cvd


Thanks again !
De : Dennis Peterson <***@inetnw.com>
À : ClamAV users ML <clamav-***@lists.clamav.net>
Envoyé le : Mardi 27 janvier 2015 22h37
Objet : Re: [clamav-users] Need help to use a local server for updating
Thanks for this. So, now I write on my freshclam.conf :PrivateMirror 192.168.0.200
And no more "Error can't find Name or service not known"
But, my client don't find .cvd :WARNING: main.cld not found on remote server
Now, how indicate to the client that it have to find files *cvd on a special repository on the server ?
Thnaks again !
With the PrivateMirror option Freshclam looks in the document root of the web
server for main, daily, and bytecode files (both cvd and cld). You may find
greater success if you create a virtual host in your web server that has a
dedicated document root that holds nothing but signatures.

If that is unacceptable then you can go outside the box and change some other
parameters in freshclam.conf. The example assumes you have created a clamav
directory under the document root of your web server (e.g. myhost below but use
your actual host name):

DatabaseMirror myhost

# Comment out what is not needed
#DatabaseCustomURL http://myhost/clamav/main.cld
DatabaseCustomURL http://myhost/clamav/main.cvd

#DatabaseCustomURL http://myhost/clamav/daily.cld
DatabaseCustomURL http://myhost/clamav/daily.cvd

#DatabaseCustomURL http://myhost/clamav/bytecode.cld
DatabaseCustomURL http://myhost/clamav/bytecode.cvd

The files main, daily, and bytecode need to be there and updated by some
external atomic process that pulls them in from a clamav.net mirror. The
filename extensions can be cld or cvd. You cannot have a main.cld and a main.cvd
- same with the other files, it is one or the other but never with both
extensions. If you are sure you know which you have you can eliminate the
unneeded custom URLs so freshclam doesn't log an unfound file error.



dp
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml



_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.ht

Continue reading on narkive:
Loading...