Bug 19471 - Proxy-Konfiguration für freshclam
Proxy-Konfiguration für freshclam
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: clamav
UCS 2.4
Other Linux
: P5 enhancement (vote)
: UCS 3.0-2
Assigned To: Lukas Walter
Sönke Schwardt-Krummrich
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-16 17:17 CEST by Janis Meybohm
Modified: 2012-07-20 15:24 CEST (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Janis Meybohm univentionstaff 2010-08-16 17:17:39 CEST
Es sollte per UCR möglich sein für Freshclam einen Proxy zu konfigurieren (in /etc/clamav/freshclam.conf).
Comment 1 Michael Basse univentionstaff 2011-03-08 16:23:31 CET
ansonsten besteht keine Chance aktuelle Virensignaturen zu laden, da die shell-Variavle http_proxy ignoriert wird
Comment 2 Jan Christoph Ebersbach univentionstaff 2012-03-30 11:47:56 CEST
Siehe auch Kundenticket #2012021421002577.
Comment 3 Jan Christoph Ebersbach univentionstaff 2012-04-04 17:22:01 CEST
Und Kundenticket #2011031710001137.
Comment 4 Felix Botner univentionstaff 2012-04-17 14:16:28 CEST
Das Template wertet nun im ersten Schritt 

clamav/proxy/http
clamav/proxy/username
clamav/proxy/password
clamav/proxy/port

bzw. danach proxy/http (proxy/username, proxy/password etc. sind obsolet und werden nicht unterstützt, jedoch sollte proxy/http=http://username:password@IP:PORT funktionieren.)
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2012-07-02 16:21:13 CEST
Zugriff auf andere Server als den Proxy wurde via iptables verhindert:

root@master66:/tmp/A# ucr search clamav/proxy
clamav/proxy/http: 10.200.18.67
clamav/proxy/password: univention
clamav/proxy/port: 3128
clamav/proxy/username: someuser
root@master66:/tmp/A# chown 114:124 .
root@master66:/tmp/A# sleep 2; freshclam --datadir=.
ClamAV update process started at Mon Jul  2 15:57:48 2012
Connecting via 10.200.18.67
Downloading main.cvd [100%]
main.cvd updated (version: 54, sigs: 1044387, f-level: 60, builder: sven)
Connecting via 10.200.18.67
Downloading daily.cvd [100%]
daily.cvd updated (version: 15105, sigs: 224829, f-level: 63, builder: guitar)
Connecting via 10.200.18.67
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 185, sigs: 39, f-level: 63, builder: neo)
Database updated (1269255 signatures) from db.local.clamav.net
Clamd successfully notified about the update.
root@master66:/tmp/A# 

"clamav/proxy/http" finde ich von der Namensgebung her nicht so elegant, greift aber das vorhandene Schema "proxy/{http,username,password}" wieder auf.
Ich denke, das kann so bleiben.

Funktionaler Test mit den neuen UCR-Variablen erfolgreich.

Passwörter mit Doppelpunkt in proxy/http werden nicht korrekt übernommen:
# ucr set proxy/http="http://someuser:klara:toll@10.200.18.67:3128"
# grep HTTPProxy /etc/clamav/freshclam.conf
HTTPProxyUsername someuser
HTTPProxyPassword klara
HTTPProxyServer 10.200.18.67
HTTPProxyPort 3128
#

Zum Vergleich funktioniert folgendes:
export http_proxy=http://someuser:klara:toll@10.200.18.67:3128/ 
wget -O /dev/null http://www.gmx.de
Comment 6 Lukas Walter univentionstaff 2012-07-03 10:21:45 CEST
Template wurde so überabeitet, dass Doppelpunkte in Passwörtern berücksichtigt werden.

univention-antivir-mail (4.0.2-1) unstable; urgency=low

  * modified ucr template for freshclam.conf in order to support
    passwords containing ":" for proxy authentication
    (Bug #19471)


Changlogeintrag wie gehabt.
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2012-07-03 12:23:52 CEST
Passwörter mit Doppelpunkt werden jetzt korrekt in das Configfile übernommen.
Changelogeintrag ist auch ok.
Comment 8 Stefan Gohmann univentionstaff 2012-07-20 15:24:46 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".