Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Alderaan on December 07, 2006, 02:18:13 PM

Title: Set a proxy for ClamAV
Post by: Alderaan on December 07, 2006, 02:18:13 PM
Hi there,

I connect to the Internet via a proxy, so ClamAV needs to be configured this way.

Everything works fine when I set my proxy in the freshclam.conf file but I have to change the template in order to keep the settings after a reboot.

My problem is that I don't know how.

There are the settings I put in my freshclam.conf :

Code: [Select]
HTTPProxyServer 10.200.1.40
HTTPProxyPort 8080


And this is the template's freshclam.conf :

Code: [Select]
# Proxy settings

    $OUT = '';

    for ( qw(Server Port Username Password) )
    {
        my $name = "HTTPProxy$_";

        next unless $clamav{$name};

        $OUT .= "$name $clamav{$name}\n";
    }
{


Could someone please tell me how to do ??
Title: Re: Set a proxy for ClamAV
Post by: CharlieBrady on December 07, 2006, 03:59:56 PM
Quote from: "Alderaan"

Everything works fine when I set my proxy in the freshclam.conf file but I have to change the template in order to keep the settings after a reboot.


No you don't.

Quote

Could someone please tell me how to do ??


config setprop clamav HTTPProxyServer 10.200.1.40
config setprop clamav HTTPProxyPort 8080
runsvctrl t /service/freshclam
Title: Set a proxy for ClamAV
Post by: Alderaan on December 07, 2006, 04:18:19 PM
Wow...

Quick, short, efficient.

Thanks a lot !! :D
Title: Re: Set a proxy for ClamAV
Post by: cactus on December 07, 2006, 08:13:06 PM
Quote from: "CharlieBrady"
config setprop clamav HTTPProxyServer 10.200.1.40
config setprop clamav HTTPProxyPort 8080
runsvctrl t /service/freshclam
Don't we need to expand the template before restarting the service? Like so?
Code: [Select]
expand-template /etc/freshclam.conf
runsvctrl t /service/freshclam
Title: Re: Set a proxy for ClamAV
Post by: russs on May 20, 2008, 02:35:53 PM
Hi Guys,

I cannot seem to get this to work!

I have followed the instructions above remembering to expand-template too.

The settings show up in my freshclam.conf correctly but it won't work!

The complication though is that I am needing to authenticate against the proxy server (Messagelabs filtering).

So I also ran;

config setprop clamav HTTPPassword ******

and

config setprop clamav HTTPProxyUsername *****

and set these correctly.

But it just won't connect, all I ever get is;

2008-05-20 12:45:06.284026500 ClamAV update process started at Tue May 20 12:45:06 2008
2008-05-20 12:45:06.284549500 WARNING: Your ClamAV installation is OUTDATED!
2008-05-20 12:45:06.284569500 WARNING: Local version: 0.91.2 Recommended version: 0.93
2008-05-20 12:45:06.284574500 DON'T PANIC! Read http://www.clamav.net/support/faq
2008-05-20 12:45:06.284734500 Connecting via 192.168.0.10
2008-05-20 12:45:06.284753500 main.inc is up to date (version: 46, sigs: 231834, f-level: 26, builder: sven)
2008-05-20 12:45:06.284810500 Connecting via 192.168.0.10
2008-05-20 12:45:06.310490500 ERROR: getfile: Unknown response from remote server (IP: 192.168.0.10)
2008-05-20 12:45:06.310540500 ERROR: getpatch: Can't download daily-7122.cdiff from database.clamav.net
2008-05-20 12:45:06.320394500 ERROR: getfile: Unknown response from remote server (IP: 192.168.0.10)
2008-05-20 12:45:06.320485500 ERROR: getpatch: Can't download daily-7122.cdiff from database.clamav.net
2008-05-20 12:45:06.327744500 ERROR: getfile: Unknown response from remote server (IP: 192.168.0.10)
2008-05-20 12:45:06.327792500 ERROR: getpatch: Can't download daily-7122.cdiff from database.clamav.net
2008-05-20 12:45:06.336012500 ERROR: getfile: Unknown response from remote server (IP: 192.168.0.10)
2008-05-20 12:45:06.336050500 ERROR: getpatch: Can't download daily-7122.cdiff from database.clamav.net
2008-05-20 12:45:06.343702500 ERROR: getfile: Unknown response from remote server (IP: 192.168.0.10)
2008-05-20 12:45:06.343745500 ERROR: getpatch: Can't download daily-7122.cdiff from database.clamav.net
2008-05-20 12:45:06.351266500 ERROR: getfile: Unknown response from remote server (IP: 192.168.0.10)
2008-05-20 12:45:06.351313500 ERROR: getpatch: Can't download daily-7122.cdiff from database.clamav.net
2008-05-20 12:45:06.351350500 WARNING: Incremental update failed, trying to download daily.cvd
2008-05-20 12:45:06.358855500 ERROR: getfile: Unknown response from remote server (IP: 192.168.0.10)
2008-05-20 12:45:06.358889500 ERROR: Can't download daily.cvd from database.clamav.net
2008-05-20 12:45:06.371370500 Giving up on database.clamav.net...
2008-05-20 12:45:06.371379500 Update failed. Your network may be down or none of the mirrors listed in freshclam.conf is working. Check http://www.clamav.net/support/mirror-problem for possible reasons.

What am I doing wrong please?

Is it the authentication aspect that is causing the error?

I am also having no luck with the YUM settings and I guess will need to set this for RKhunter too so need to sort this out.

Thanks for any help you can offer.

Russ