~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to docs/html/node23.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>Clam daemon</TITLE>
11
 
<META NAME="description" CONTENT="Clam daemon">
 
10
<TITLE>Closest mirrors</TITLE>
 
11
<META NAME="description" CONTENT="Closest mirrors">
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="node24.html">
22
21
<LINK REL="previous" HREF="node22.html">
23
22
<LINK REL="up" HREF="node22.html">
24
23
<LINK REL="next" HREF="node24.html">
27
26
<BODY >
28
27
 
29
28
<DIV CLASS="navigation"><!--Navigation Panel-->
30
 
<A NAME="tex2html482"
 
29
<A NAME="tex2html487"
31
30
  HREF="node24.html">
32
31
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
33
 
<A NAME="tex2html478"
 
32
<A NAME="tex2html483"
34
33
  HREF="node22.html">
35
34
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
36
 
<A NAME="tex2html472"
 
35
<A NAME="tex2html479"
37
36
  HREF="node22.html">
38
37
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
39
 
<A NAME="tex2html480"
 
38
<A NAME="tex2html485"
40
39
  HREF="node1.html">
41
40
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
42
41
<BR>
43
 
<B> Next:</B> <A NAME="tex2html483"
44
 
  HREF="node24.html">Clamdscan</A>
45
 
<B> Up:</B> <A NAME="tex2html479"
46
 
  HREF="node22.html">Usage</A>
47
 
<B> Previous:</B> <A NAME="tex2html473"
48
 
  HREF="node22.html">Usage</A>
49
 
 &nbsp; <B>  <A NAME="tex2html481"
 
42
<B> Next:</B> <A NAME="tex2html488"
 
43
  HREF="node24.html">Usage</A>
 
44
<B> Up:</B> <A NAME="tex2html484"
 
45
  HREF="node22.html">Setting up auto-updating</A>
 
46
<B> Previous:</B> <A NAME="tex2html480"
 
47
  HREF="node22.html">Setting up auto-updating</A>
 
48
 &nbsp; <B>  <A NAME="tex2html486"
50
49
  HREF="node1.html">Contents</A></B> 
51
50
<BR>
52
51
<BR></DIV>
53
52
<!--End of Navigation Panel-->
54
53
 
55
 
<H2><A NAME="SECTION00061000000000000000"></A><A NAME="clamd"></A>
56
 
<BR>
57
 
Clam daemon
58
 
</H2>
59
 
    <code>clamd</code> is a multi-threaded daemon that uses <SPAN  CLASS="textit">libclamav</SPAN>
60
 
    to scan files for viruses. It may work in one or both modes listening on:
61
 
    
62
 
<UL>
63
 
<LI>Unix (local) socket
64
 
</LI>
65
 
<LI>TCP socket
66
 
    
67
 
</LI>
68
 
</UL>
69
 
    The daemon is fully configurable via the <code>clamd.conf</code> file
70
 
    <A NAME="tex2html13"
71
 
  HREF="footnode.html#foot211"><SUP><SPAN CLASS="arabic">5</SPAN></SUP></A>. <code>clamd</code> recognizes the following commands:
72
 
    
73
 
<UL>
74
 
<LI><SPAN  CLASS="textbf">PING</SPAN>
75
 
<BR>
76
 
Check the daemon's state (should reply with "PONG").
77
 
</LI>
78
 
<LI><SPAN  CLASS="textbf">VERSION</SPAN>
79
 
<BR>
80
 
Print program and database versions.
81
 
</LI>
82
 
<LI><SPAN  CLASS="textbf">RELOAD</SPAN>
83
 
<BR>
84
 
Reload the databases.
85
 
</LI>
86
 
<LI><SPAN  CLASS="textbf">SHUTDOWN</SPAN>
87
 
<BR>
88
 
Perform a clean exit.
89
 
</LI>
90
 
<LI><SPAN  CLASS="textbf">SCAN file/directory</SPAN>
91
 
<BR>
92
 
Scan file or directory (recursively) with archive support
93
 
            enabled (a full path is required).
94
 
</LI>
95
 
<LI><SPAN  CLASS="textbf">RAWSCAN file/directory</SPAN>
96
 
<BR>
97
 
Scan file or directory (recursively) with archive and special file
98
 
            support disabled (a full path is required).
99
 
</LI>
100
 
<LI><SPAN  CLASS="textbf">CONTSCAN file/directory</SPAN>
101
 
<BR>
102
 
Scan file or directory (recursively) with archive support
103
 
            enabled and don't stop the scanning when a virus is found.
104
 
</LI>
105
 
<LI><SPAN  CLASS="textbf">MULTISCAN file/directory</SPAN>
106
 
<BR>
107
 
Scan file in a standard way or scan directory (recursively) using
108
 
            multiple threads (to make the scanning faster on SMP machines).
109
 
</LI>
110
 
<LI><SPAN  CLASS="textbf">STREAM</SPAN>
111
 
<BR>
112
 
Scan stream: <code>clamd</code> will return a new port number you should
113
 
            connect to and send data to scan.
114
 
</LI>
115
 
<LI><SPAN  CLASS="textbf">SESSION, END</SPAN>
116
 
<BR>
117
 
Start/end a <code>clamd</code> session - you can do multiple commands
118
 
            per TCP session (WARNING: due to the <code>clamd</code> implementation the
119
 
            <SPAN  CLASS="textbf">RELOAD</SPAN> command will break the session).
120
 
    
121
 
</LI>
122
 
</UL>
123
 
    and reacts on the special signals:
124
 
    
125
 
<UL>
126
 
<LI><SPAN  CLASS="textbf">SIGTERM</SPAN> - perform a clean exit
127
 
</LI>
128
 
<LI><SPAN  CLASS="textbf">SIGHUP</SPAN> - reopen the log file
129
 
</LI>
130
 
<LI><SPAN  CLASS="textbf">SIGUSR2</SPAN> - reload the database
131
 
    
132
 
</LI>
133
 
</UL>
134
 
 
 
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="tex2html15"
 
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="tex2html16"
 
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="tex2html17"
 
75
  HREF="http://www.iana.org/cctld/cctld-whois.htm">http://www.iana.org/cctld/cctld-whois.htm</A></TT>
135
76
<P>
136
 
 
137
 
<DIV CLASS="navigation"><HR>
138
 
<!--Navigation Panel-->
139
 
<A NAME="tex2html482"
140
 
  HREF="node24.html">
141
 
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
142
 
<A NAME="tex2html478"
143
 
  HREF="node22.html">
144
 
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
145
 
<A NAME="tex2html472"
146
 
  HREF="node22.html">
147
 
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
148
 
<A NAME="tex2html480"
149
 
  HREF="node1.html">
150
 
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
151
 
<BR>
152
 
<B> Next:</B> <A NAME="tex2html483"
153
 
  HREF="node24.html">Clamdscan</A>
154
 
<B> Up:</B> <A NAME="tex2html479"
155
 
  HREF="node22.html">Usage</A>
156
 
<B> Previous:</B> <A NAME="tex2html473"
157
 
  HREF="node22.html">Usage</A>
158
 
 &nbsp; <B>  <A NAME="tex2html481"
159
 
  HREF="node1.html">Contents</A></B> </DIV>
160
 
<!--End of Navigation Panel-->
 
77
<BR><HR>
161
78
<ADDRESS>
162
79
Tomasz Kojm
163
 
2008-07-07
 
80
2008-09-01
164
81
</ADDRESS>
165
82
</BODY>
166
83
</HTML>