| 
									
										
										
										
											2008-03-03 19:11:41 +00:00
										 |  |  | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-03 19:11:41 +00:00
										 |  |  | <!--Converted with LaTeX2HTML 2002-2-1 (1.71)
 | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | original version by:  Nikos Drakos, CBLU, University of Leeds | 
					
						
							|  |  |  | * revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan | 
					
						
							|  |  |  | * with significant contributions from: | 
					
						
							|  |  |  |   Jens Lippmann, Marek Rouchal, Martin Wilck and others --> | 
					
						
							|  |  |  | <HTML> | 
					
						
							|  |  |  | <HEAD> | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  | <TITLE>Setting up auto-updating</TITLE> | 
					
						
							|  |  |  | <META NAME="description" CONTENT="Setting up auto-updating"> | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | <META NAME="keywords" CONTENT="clamdoc"> | 
					
						
							|  |  |  | <META NAME="resource-type" CONTENT="document"> | 
					
						
							|  |  |  | <META NAME="distribution" CONTENT="global"> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-03 19:11:41 +00:00
										 |  |  | <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1"> | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <LINK REL="STYLESHEET" HREF="clamdoc.css"> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  | <LINK REL="previous" HREF="node21.html"> | 
					
						
							|  |  |  | <LINK REL="up" HREF="node17.html"> | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | <LINK REL="next" HREF="node23.html"> | 
					
						
							|  |  |  | </HEAD> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <BODY > | 
					
						
							| 
									
										
										
										
											2008-03-03 19:11:41 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | <DIV CLASS="navigation"><!--Navigation Panel--> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <A NAME="tex2html476" | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  |   HREF="node23.html"> | 
					
						
							|  |  |  | <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>  | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <A NAME="tex2html472" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node17.html"> | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>  | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <A NAME="tex2html468" | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  |   HREF="node21.html"> | 
					
						
							|  |  |  | <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>  | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <A NAME="tex2html474" | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  |   HREF="node1.html"> | 
					
						
							|  |  |  | <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>   | 
					
						
							|  |  |  | <BR> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <B> Next:</B> <A NAME="tex2html477" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node23.html">Closest mirrors</A> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <B> Up:</B> <A NAME="tex2html473" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node17.html">Configuration</A> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <B> Previous:</B> <A NAME="tex2html469" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node21.html">Testing</A> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  |    <B>  <A NAME="tex2html475" | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  |   HREF="node1.html">Contents</A></B>  | 
					
						
							|  |  |  | <BR> | 
					
						
							| 
									
										
										
										
											2008-03-03 19:11:41 +00:00
										 |  |  | <BR></DIV> | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | <!--End of Navigation Panel--> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  | <H2><A NAME="SECTION00054000000000000000"> | 
					
						
							|  |  |  | Setting up auto-updating</A> | 
					
						
							|  |  |  | </H2> | 
					
						
							|  |  |  |     <code>freshclam</code> is the automatic database update tool for Clam AntiVirus. | 
					
						
							|  |  |  |     It can work in two modes: | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  | <UL> | 
					
						
							|  |  |  | <LI>interactive - on demand from command line | 
					
						
							|  |  |  | </LI> | 
					
						
							|  |  |  | <LI>daemon - silently in the background | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  | </LI> | 
					
						
							|  |  |  | </UL> | 
					
						
							|  |  |  |     <code>freshclam</code> is advanced tool: it supports scripted updates (instead | 
					
						
							|  |  |  |     of transferring the whole CVD file at each update it only transfers the | 
					
						
							|  |  |  |     differences between the latest and the current database via a special | 
					
						
							|  |  |  |     script), database version checks through DNS, proxy servers (with | 
					
						
							|  |  |  |     authentication), digital signatures and various error scenarios. | 
					
						
							|  |  |  |     <SPAN  CLASS="textbf">Quick test: run freshclam (as superuser) with no parameters | 
					
						
							|  |  |  |     and check the output.</SPAN> If everything is OK you may create the log file in | 
					
						
							|  |  |  |     /var/log (owned by <SPAN  CLASS="textit">clamav</SPAN> or another user <code>freshclam</code> will be | 
					
						
							|  |  |  |     running as): | 
					
						
							|  |  |  |     <PRE> | 
					
						
							|  |  |  | 	# touch /var/log/freshclam.log | 
					
						
							|  |  |  | 	# chmod 600 /var/log/freshclam.log | 
					
						
							|  |  |  | 	# chown clamav /var/log/freshclam.log | 
					
						
							|  |  |  | </PRE> | 
					
						
							|  |  |  |     Now you <SPAN  CLASS="textit">should</SPAN> edit the configuration file <code>freshclam.conf</code> | 
					
						
							|  |  |  |     and point the <SPAN  CLASS="textit">UpdateLogFile</SPAN> directive to the log file. Finally, to | 
					
						
							|  |  |  |     run <code>freshclam</code> in the daemon mode, execute: | 
					
						
							|  |  |  |     <PRE> | 
					
						
							|  |  |  | 	# freshclam -d | 
					
						
							|  |  |  | </PRE> | 
					
						
							|  |  |  |     The other way is to use the <SPAN  CLASS="textit">cron</SPAN> daemon. You have to add the | 
					
						
							|  |  |  |     following line to the crontab of <SPAN  CLASS="textbf">root</SPAN> or <SPAN  CLASS="textbf">clamav</SPAN> user: | 
					
						
							|  |  |  |     <SMALL CLASS="SMALL">    </SMALL><PRE> | 
					
						
							|  |  |  | N * * * *	/usr/local/bin/freshclam --quiet | 
					
						
							|  |  |  | </PRE> | 
					
						
							|  |  |  |     to check for a new database every hour. <SPAN  CLASS="textbf">N should be a | 
					
						
							|  |  |  |     number between 3 and 57 of your choice. Please don't choose any multiple | 
					
						
							|  |  |  |     of 10, because there are already too many clients using those time slots.</SPAN> | 
					
						
							|  |  |  |     Proxy settings are only configurable via the configuration file and | 
					
						
							|  |  |  |     <code>freshclam</code> will require strict permission settings for the config | 
					
						
							|  |  |  |     file when <code>HTTPProxyPassword</code> is turned on. | 
					
						
							|  |  |  |     <PRE> | 
					
						
							|  |  |  | 	HTTPProxyServer myproxyserver.com | 
					
						
							|  |  |  | 	HTTPProxyPort 1234 | 
					
						
							|  |  |  | 	HTTPProxyUsername myusername | 
					
						
							|  |  |  | 	HTTPProxyPassword mypass | 
					
						
							|  |  |  | </PRE> | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | <P> | 
					
						
							|  |  |  | <BR><HR> | 
					
						
							|  |  |  | <!--Table of Child-Links--> | 
					
						
							|  |  |  | <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-03 19:11:41 +00:00
										 |  |  | <UL CLASS="ChildLinks"> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <LI><A NAME="tex2html478" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node23.html">Closest mirrors</A> | 
					
						
							|  |  |  | </UL> | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | <!--End of Table of Child-Links--> | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | <DIV CLASS="navigation"><HR> | 
					
						
							|  |  |  | <!--Navigation Panel--> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <A NAME="tex2html476" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node23.html"> | 
					
						
							|  |  |  | <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>  | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <A NAME="tex2html472" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node17.html"> | 
					
						
							|  |  |  | <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>  | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <A NAME="tex2html468" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node21.html"> | 
					
						
							|  |  |  | <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>  | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <A NAME="tex2html474" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node1.html"> | 
					
						
							|  |  |  | <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>   | 
					
						
							|  |  |  | <BR> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <B> Next:</B> <A NAME="tex2html477" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node23.html">Closest mirrors</A> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <B> Up:</B> <A NAME="tex2html473" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node17.html">Configuration</A> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  | <B> Previous:</B> <A NAME="tex2html469" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node21.html">Testing</A> | 
					
						
							| 
									
										
										
										
											2008-09-01 18:19:59 +00:00
										 |  |  |    <B>  <A NAME="tex2html475" | 
					
						
							| 
									
										
										
										
											2008-07-16 16:40:13 +00:00
										 |  |  |   HREF="node1.html">Contents</A></B> </DIV> | 
					
						
							|  |  |  | <!--End of Navigation Panel--> | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | <ADDRESS> | 
					
						
							|  |  |  | Tomasz Kojm | 
					
						
							| 
									
										
										
										
											2008-10-15 09:41:51 +00:00
										 |  |  | 2008-10-15 | 
					
						
							| 
									
										
										
										
											2007-02-12 12:50:17 +00:00
										 |  |  | </ADDRESS> | 
					
						
							|  |  |  | </BODY> | 
					
						
							|  |  |  | </HTML> |