~ubuntu-branches/ubuntu/raring/clamav/raring

« back to all changes in this revision

Viewing changes to docs/html/node21.html

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2008-09-05 17:25:34 UTC
  • mfrom: (0.35.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080905172534-yi3f8fkye1o7u1r3
* New upstream version (closes: #497662, #497773)
  - lots of new options for clamd.conf
  - fixes CVEs CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, and
    CVE-2008-1389
* No longer supports --unzip option, so typo is gone (closes: #496276)
* Translations:
  - sv (thanks Martin Bagge <brother@bsnet.se>) (closes: #491760)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
8
8
<HTML>
9
9
<HEAD>
10
 
<TITLE>Closest mirrors</TITLE>
11
 
<META NAME="description" CONTENT="Closest mirrors">
 
10
<TITLE>Testing</TITLE>
 
11
<META NAME="description" CONTENT="Testing">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
18
18
 
19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
20
20
 
 
21
<LINK REL="next" HREF="node22.html">
21
22
<LINK REL="previous" HREF="node20.html">
22
 
<LINK REL="up" HREF="node20.html">
 
23
<LINK REL="up" HREF="node17.html">
23
24
<LINK REL="next" HREF="node22.html">
24
25
</HEAD>
25
26
 
26
27
<BODY >
27
28
 
28
29
<DIV CLASS="navigation"><!--Navigation Panel-->
29
 
<A NAME="tex2html452"
 
30
<A NAME="tex2html466"
30
31
  HREF="node22.html">
31
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
32
 
<A NAME="tex2html448"
33
 
  HREF="node20.html">
 
33
<A NAME="tex2html462"
 
34
  HREF="node17.html">
34
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
35
 
<A NAME="tex2html444"
 
36
<A NAME="tex2html456"
36
37
  HREF="node20.html">
37
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
38
 
<A NAME="tex2html450"
 
39
<A NAME="tex2html464"
39
40
  HREF="node1.html">
40
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
41
42
<BR>
42
 
<B> Next:</B> <A NAME="tex2html453"
43
 
  HREF="node22.html">Usage</A>
44
 
<B> Up:</B> <A NAME="tex2html449"
45
 
  HREF="node20.html">Setting up auto-updating</A>
46
 
<B> Previous:</B> <A NAME="tex2html445"
47
 
  HREF="node20.html">Setting up auto-updating</A>
48
 
 &nbsp; <B>  <A NAME="tex2html451"
 
43
<B> Next:</B> <A NAME="tex2html467"
 
44
  HREF="node22.html">Setting up auto-updating</A>
 
45
<B> Up:</B> <A NAME="tex2html463"
 
46
  HREF="node17.html">Configuration</A>
 
47
<B> Previous:</B> <A NAME="tex2html457"
 
48
  HREF="node20.html">clamav-milter</A>
 
49
 &nbsp; <B>  <A NAME="tex2html465"
49
50
  HREF="node1.html">Contents</A></B> 
50
51
<BR>
51
52
<BR></DIV>
52
53
<!--End of Navigation Panel-->
53
54
 
54
 
<H3><A NAME="SECTION00054100000000000000">
55
 
Closest mirrors</A>
56
 
</H3>
57
 
    The <code>DatabaseMirror</code> directive in the config file specifies the
58
 
    database server <code>freshclam</code> will attempt (up to <code>MaxAttempts</code>
59
 
    times) to download the database from. The default database mirror
60
 
    is <TT><A NAME="tex2html10"
61
 
  HREF="database.clamav.net">database.clamav.net</A></TT> but multiple directives are allowed.
62
 
    In order to download the database from the closest mirror you should  
63
 
    configure <code>freshclam</code> to use <TT><A NAME="tex2html11"
64
 
  HREF="db.xx.clamav.net">db.xx.clamav.net</A></TT> where xx
65
 
    represents your country code. For example, if your server is in "Ascension
66
 
    Island" you should have the following lines included in <code>freshclam.conf</code>:
67
 
    <PRE>
68
 
        DNSDatabaseInfo current.cvd.clamav.net
69
 
        DatabaseMirror db.ac.clamav.net
70
 
        DatabaseMirror database.clamav.net
71
 
</PRE>
72
 
    The second entry acts as a fallback in case the connection to the first
73
 
    mirror fails for some reason. The full list of two-letters country codes
74
 
    is available at <TT><A NAME="tex2html12"
75
 
  HREF="http://www.iana.org/cctld/cctld-whois.htm">http://www.iana.org/cctld/cctld-whois.htm</A></TT>
 
55
<H2><A NAME="SECTION00053000000000000000">
 
56
Testing</A>
 
57
</H2>
 
58
    Try to scan recursively the source directory:
 
59
    <PRE>
 
60
        $ clamscan -r -l scan.txt clamav-x.yz
 
61
</PRE>
 
62
    It should find some test files in the clamav-x.yz/test directory.
 
63
    The scan result will be saved in the <code>scan.txt</code> log file
 
64
    <A NAME="tex2html14"
 
65
  HREF="footnode.html#foot199"><SUP><SPAN CLASS="arabic">5</SPAN></SUP></A>.
 
66
    To test <code>clamd</code>, start it and use <code>clamdscan</code> (or instead connect
 
67
    directly to its socket and run the SCAN command):
 
68
    <PRE>
 
69
        $ clamdscan -l scan.txt clamav-x.yz
 
70
</PRE>
 
71
    Please note that the scanned files must be accessible by the user running
 
72
    <code>clamd</code> or you will get an error.
 
73
 
76
74
<P>
77
75
<BR><HR>
78
76
<ADDRESS>
79
77
Tomasz Kojm
80
 
2008-07-07
 
78
2008-09-01
81
79
</ADDRESS>
82
80
</BODY>
83
81
</HTML>