Anleitung zur Installation von Avira AntiVir WebGate unter FreeBSD
I – Einleitung
AntiVir WebGate ist ein Proxy-Server zum Scannen auf Viren des deutschen Unternehmens Avira, das für seine gute Scan-Engine bekannt ist. AntiVir WebGate ist ein Linux-Produkt. Dieses HOWTO zeigt, wie du die Software auf einem FreeBSD-Server installierst und konfigurierst und optional, wie du sie zusammen mit Squid nutzt.
II – Vorbereitungen
1) Download
Lade das Produktarchiv direkt von den Avira-Webservern herunter.
root@bsdproxy:/tmp # fetch http://professional.avira-update.com/package/webgate/unix/int/antivir-webgate-prof.tar.gz
Falls der obige Befehl bei dir nicht funktioniert, gehe auf die Produktseite und lade es von dort herunter.
2) Linux-Emulation einrichten
Befolge die Anweisungen im Howto „Linux-Emulation unter FreeBSD einrichten“.
III – Installation
1) Entpacke den Download
root@bsdproxy:/root # cd /tmp/
root@bsdproxy:/tmp # tar xzvf antivir-webgate-prof.tar.gz
2) Wechsle in die Linux-Emulation
root@bsdproxy:/tmp # /compat/linux/bin/bash
3) Installiere das Produkt
bash-3.2# pw groupadd antivir
bash-3.2# cd /tmp/antivir-webgate-prof-3.3.0.2-5/
bash-3.2# ./install
Do you agree to the license terms? [n] y
Enter the path to your key file: [] /tmp/avira.key
Would you like to create a link in /usr/sbin for avupdate-webgate? [y]
Would you like to setup Scanner update as cron task? [y]
available options: d [2]
Would you like to check for WebGate updates once a week? [n]
Would you like to create a link in /usr/sbin for avwebgate? [y]
Set up boot scripts? [y]
setting up boot script ... failed
Unable to locate where boot scripts belong.
You can launch Avira WebGate with:
/usr/lib/AntiVir/webgate/avwebgate start
Press <ENTER> to continue.
Would you like to activate SMC support? [y]
4) Produkt-Update
bash-3.2# /usr/lib/AntiVir/webgate/avupdate-webgate --product=WebGate
bash-3.2# exit
IV – Konfiguration
Okay, das Produkt ist nun auf deinem FreeBSD-System installiert und läuft in der Linux-Emulation.
1) Startskript
Du musst ein Startskript für WebGate erstellen, damit es beim Neustart gestartet wird.
root@bsdproxy:/tmp # vi /usr/local/etc/rc.d/avwebgate
root@bsdproxy:/usr/local/etc/rc.d # vi /etc/rc.conf
avwebgate_enable="YES"
:wq
2) Produktkonfiguration
Lass uns nun die Konfiguration durchgehen. Bearbeite die Datei /compat/linux/etc/avira/avwebgate.conf
root@bsdproxy:/root # vi /compat/linux/etc/avira/avwebgate.conf
V – Tests
1) Probiere einen Beispielvirus aus
Geh auf die EICAR-Website und versuche, eine ZIP-Datei herunterzuladen. Wenn du einen roten Bildschirm siehst, bist du durch AvWebGate geschützt, das in der Linux-Emulation von FreeBSD läuft. Herzlichen Glückwunsch!
VI – Fazit
TODO



