1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
3
<!--Converted with LaTeX2HTML 2008 (1.71)
3
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
4
4
original version by: Nikos Drakos, CBLU, University of Leeds
5
5
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
6
6
* with significant contributions from:
7
7
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
10
<TITLE>Setting up auto-updating</TITLE>
11
<META NAME="description" CONTENT="Setting up auto-updating">
10
<TITLE>Clamdscan</TITLE>
11
<META NAME="description" CONTENT="Clamdscan">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
16
<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
16
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
17
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
17
18
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
19
20
<LINK REL="STYLESHEET" HREF="clamdoc.css">
21
<LINK REL="next" HREF="node26.html">
22
<LINK REL="next" HREF="node25.html">
22
23
<LINK REL="previous" HREF="node23.html">
23
<LINK REL="up" HREF="node19.html">
24
<LINK REL="up" HREF="node22.html">
24
25
<LINK REL="next" HREF="node25.html">
29
<DIV CLASS="navigation"><!--Navigation Panel-->
29
<!--Navigation Panel-->
31
31
HREF="node25.html">
32
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
35
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
37
37
HREF="node23.html">
38
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
41
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
43
<B> Next:</B> <A NAME="tex2html515"
44
HREF="node25.html">Closest mirrors</A>
45
<B> Up:</B> <A NAME="tex2html511"
46
HREF="node19.html">Configuration</A>
47
<B> Previous:</B> <A NAME="tex2html505"
48
HREF="node23.html">Testing</A>
49
<B> <A NAME="tex2html513"
43
<B> Next:</B> <A NAME="tex2html498"
44
HREF="node25.html">Clamuko</A>
45
<B> Up:</B> <A NAME="tex2html494"
46
HREF="node22.html">Usage</A>
47
<B> Previous:</B> <A NAME="tex2html488"
48
HREF="node23.html">Clam daemon</A>
49
  <B> <A NAME="tex2html496"
50
50
HREF="node1.html">Contents</A></B>
53
53
<!--End of Navigation Panel-->
55
<H2><A NAME="SECTION00054000000000000000">
56
Setting up auto-updating</A>
55
<H2><A NAME="SECTION00062000000000000000">
58
<code>freshclam</code> is the automatic database update tool for Clam AntiVirus.
59
It can work in two modes:
58
<code>clamdscan</code> is a simple <code>clamd</code> client. In many cases you can
59
use it as a <code>clamscan</code> replacement however you must remember that:
62
<LI>interactive - on demand from command line
64
<LI>daemon - silently in the background
62
<LI>it only depends on <code>clamd</code>
64
<LI>although it accepts the same command line options as
65
<code>clamscan</code> most of them are ignored because they must be
66
enabled directly in <code>clamd</code>, i.e. <code>clamd.conf</code>
68
<LI>scanned files must be accessible for <code>clamd</code>
70
<LI>it can't use external unpackers
68
<code>freshclam</code> is advanced tool: it supports scripted updates (instead
69
of transferring the whole CVD file at each update it only transfers the
70
differences between the latest and the current database via a special
71
script), database version checks through DNS, proxy servers (with
72
authentication), digital signatures and various error scenarios.
73
<SPAN CLASS="textbf">Quick test: run freshclam (as superuser) with no parameters
74
and check the output.</SPAN> If everything is OK you may create the log file in
75
/var/log (owned by <SPAN CLASS="textit">clamav</SPAN> or another user <code>freshclam</code> will be
78
# touch /var/log/freshclam.log
79
# chmod 600 /var/log/freshclam.log
80
# chown clamav /var/log/freshclam.log
82
Now you <SPAN CLASS="textit">should</SPAN> edit the configuration file <code>freshclam.conf</code>
83
and point the <SPAN CLASS="textit">UpdateLogFile</SPAN> directive to the log file. Finally, to
84
run <code>freshclam</code> in the daemon mode, execute:
88
The other way is to use the <SPAN CLASS="textit">cron</SPAN> daemon. You have to add the
89
following line to the crontab of <SPAN CLASS="textbf">root</SPAN> or <SPAN CLASS="textbf">clamav</SPAN> user:
90
<SMALL CLASS="SMALL"> </SMALL><PRE>
91
N * * * * /usr/local/bin/freshclam --quiet
93
to check for a new database every hour. <SPAN CLASS="textbf">N should be a
94
number between 3 and 57 of your choice. Please don't choose any multiple
95
of 10, because there are already too many clients using those time slots.</SPAN>
96
Proxy settings are only configurable via the configuration file and
97
<code>freshclam</code> will require strict permission settings for the config
98
file when <code>HTTPProxyPassword</code> is turned on.
100
HTTPProxyServer myproxyserver.com
102
HTTPProxyUsername myusername
103
HTTPProxyPassword mypass
108
<!--Table of Child-Links-->
109
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
111
<UL CLASS="ChildLinks">
112
<LI><A NAME="tex2html516"
113
HREF="node25.html">Closest mirrors</A>
115
<!--End of Table of Child-Links-->
117
<DIV CLASS="navigation"><HR>
118
<!--Navigation Panel-->
119
<A NAME="tex2html514"
121
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
122
<A NAME="tex2html510"
124
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
125
<A NAME="tex2html504"
127
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
128
<A NAME="tex2html512"
130
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
132
<B> Next:</B> <A NAME="tex2html515"
133
HREF="node25.html">Closest mirrors</A>
134
<B> Up:</B> <A NAME="tex2html511"
135
HREF="node19.html">Configuration</A>
136
<B> Previous:</B> <A NAME="tex2html505"
137
HREF="node23.html">Testing</A>
138
<B> <A NAME="tex2html513"
139
HREF="node1.html">Contents</A></B> </DIV>
140
<!--End of Navigation Panel-->