Koozali.org: home of the SME Server

ClamAV behind a proxy

Offline SchulzStefan

  • *
  • 620
  • +0/-0
ClamAV behind a proxy
« on: February 07, 2017, 09:10:45 AM »
Referring to this https://wiki.contribs.org/SME_Server:Documentation:FAQ:Section01#ClamAV_.2F_freshclam leaves the question to me, if there is any need to custom-template additional?

Quote
ClamAV / freshclam

How do I configure freshclam to download updates for ClamAV through a proxy server?

Based on examination of /etc/e-smith/templates/etc/freshclam.conf/ProxySettings:

config setprop clamav HTTPProxyServer localhost
config setprop clamav HTTPProxyPort 3128
config setprop clamav HTTPProxyUsername ""
config setprop clamav HTTPProxyPassword ""
sv t freshclam


Normally I would think about a custom template for freshclam.conf.

Thank's for any reply in advance.
stefan
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: ClamAV behind a proxy
« Reply #1 on: February 07, 2017, 09:53:01 AM »
no need for custom template AFAICS..

just setup as suggested, expand freshclam.conf (this step seems to be missing..) then restart freshclam

feel free to post here (and in bugzilla if is it the case) your findings..

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: ClamAV behind a proxy
« Reply #2 on: February 07, 2017, 01:23:54 PM »
Pointing clamav to the local proxy as shown in the wiki example (localhost:3128) will only work if squid is configured to use an upstream proxy:
https://wiki.contribs.org/SME_Server:Documentation:FAQ:Section01#Browser_Access_from_LAN_Workstations

`

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: ClamAV behind a proxy
« Reply #3 on: February 07, 2017, 02:09:45 PM »
Are you sure ? I have not tested, but I see no reason for an upstream proxy to be needed
C'est la fin du monde !!! :lol:

Offline SchulzStefan

  • *
  • 620
  • +0/-0
Re: ClamAV behind a proxy
« Reply #4 on: February 07, 2017, 06:26:30 PM »
I configured clamav and yum for use with an external proxy. Using the IP-adress, not *localhost*, of the external machine works for clamav and yum.

What I see is a custom template for yum. My question was, do I need a custom template for clamav?
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: ClamAV behind a proxy
« Reply #5 on: February 07, 2017, 07:15:49 PM »
Again, no

Offline SchulzStefan

  • *
  • 620
  • +0/-0
Re: ClamAV behind a proxy
« Reply #6 on: February 07, 2017, 10:59:45 PM »
@Stefano,

Thx.

stefan
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)