|
Prepared by
NOD32 Hong Kong
May 2004
NOD32 Administrator
version provides the function of creating virus definition
mirror site. You can setup a similar update server on Linux
platform too.
Requirement
any package of
NOD32 for Linux (with /usr/sbin/nod32umc)
apache (any
version, with authentication module)
you can recommended
to use the latest versions of these software
Setup
Suppose you want to
setup your mirror site in the directory /opt/nod32mirror. You
need a valid update key for NOD32 windows platform. Now input
the key in the file /opt/nod32mirror/nod32.auth
username=xxxxxx
password=xxxxxx
Change the file mod
chmod
600 /opt/nod32mirror/nod32.auth
create a new file
/etc/cron.hourly/nod32_win_update_mirror
#!/bin/sh
/usr/sbin/nod32umc -a /opt/nod32mirror/nod32.auth \
-s http://www.eset.sk/
/mnt/hda1/services/mirrornod32 \
NOD32MOD_WINNT_ENGLISH_BASE
/usr/sbin/nod32umc -a /opt/nod32mirror/nod32.auth \
-s http://www.eset.sk/
/mnt/hda1/services/mirrornod32 \
NOD32MOD_WIN98_ENGLISH_BASE
Change the file mod
chmod
755 /etc/cron.hourly/nod32_win_update_mirror
Add the following
text in your apache config file
(/etc/http/httpd.conf or /etc/apache2/httpd.conf in SuSE)
Alias
/nod32update/ "/opt/nod32mirror/"
<Directory "/opt/nod32mirror/">
Options None
AllowOverride Limit AuthConfig
Order deny,allow
</Directory>
Restart the apache
to take effect. Now setup a password to protect the mirror
update site
Create a file
/opt/nod32mirror/.htaccess
AuthName "NOD32 Mirror Update"
AuthType Basic
AuthUserFile /opt/nod32mirror/.htpasswd
Require valid-user
Setup your username
and password
/path/to/htpasswd -m -c /opt/nod32mirror/.htpasswd
Now you can set
point NOD32 (Windows version) update site to your server:
http://youdomain.com/nod32update |