4 # Example configuration file. Note that this attempts to present various
5 # configuration possibilities and may not actually give any sensible
6 # configuration. For real life example see the examples/ directory.
8 # Most of the settings in this file are optional. If some setting is
9 # mandatory it is mentioned separately. If some setting is omitted it means
10 # that its builtin default value will be used. Boolean values, that is
11 # setting something on or off, is done by setting either "true" or "false"
12 # value, respectively.
14 # The ServerInfo section is mandatory section. Other sections are optional.
15 # However, if General section is defined it must be defined before the
16 # ConnectionParams sections. On the other hand, the ConnectionParams section
17 # must be defined before Client, ServerConnection or RouterConnection
18 # sections. Other sections can be in free order.
22 # Include global algorithms from the "silcalgs.conf" file. This file
23 # defines ciphers, hash functions, HMACs and PKCS algorithms that can
26 Include "@ETCDIR@/silcalgs.conf";
29 # General configuration options
31 # These defines the default behaviour of the server. Most of these values
32 # can be overridden with ConnectionParams, which can be defined independently
33 # for different connections.
36 # This is the default path where to search modules. If omitted
37 # built-in modules will be used. Built-in modules will also be
38 # used if a module file cannot be located.
39 module_path = "@MODULESDIR@";
41 # If both passphrase and public key authentication is set for a
42 # connection the public key authentication is the preferred one
43 # to use. Set this to `true' to prefer passphrase authentication
44 # over public key authentication in these cases.
45 #prefer_passphrase_auth = true;
47 # Set this to true if the server should require fully qualified
48 # domain names (FQDN) for incoming connections. If true, a host
49 # without FQDN cannot connect to the server.
50 #require_reverse_lookup = true;
52 # Maximum number of incoming connections allowed to this server.
53 # If more attempt to connect they will be refused.
54 connections_max = 1000;
56 # Maximum number of incoming connections allowed per single host.
57 # For example, if this is one (1) it means a host can link only
58 # once to the server. Attempting to connect more than once would be
59 # refused. This can be overridden with ConnectionParams.
60 #connections_max_per_host = 10;
62 # Required version of the remote. If these are specified then the
63 # remote must be of at least this version, or newer. If older then
64 # the connection will not be allowed.
66 # version_protocol - SILC protocol version ("major.minor")
67 # version_software - software version ("major.minor")
68 # version_software_vendor - vendor specific version extension
70 # The version_software_vendor may be for example a string or a build
71 # number of the software. The string can be a regex string to match
72 # more widely. Usually the vendor version checking is not necessary
73 # and can be omitted. These can be overridden with ConnectionParams.
74 #version_protocol = "1.1";
75 #version_software = "1.3";
76 #version_software_vendor = "SomeVendor";
78 # Default keepalive frequency (seconds). This can be overridden
79 # with ConnectionParams.
82 # Default reconnection parameters defines how the server reconnect
83 # to the remote if the connection was lost. The reconnection phase
84 # use so called exponential backoff algorithm; The reconnect
85 # interval grows when reconnect count grows. Next example will
86 # attempt to reconnect after 10 seconds of disconnect, and the
87 # interval grows up to 600 seconds or until 7 times was attempted
88 # to reconnect. These settings has effect only when connecting
91 # reconnect_count - how many times reconnect is attempted
92 # reconnect_interval - how often reconnect it performed (seconds)
93 # reconnect_interval_max - maximum interval for reconnect, the
94 # server never waits longer than this to
95 # reconnect (seconds).
96 # reconnect_keep_trying - whether to keep trying even after
97 # reconnect_count is reached (the interval
98 # will be reconnect_interval_max).
100 # These can be overridden with ConnectionParams.
102 reconnect_interval = 10;
103 reconnect_interval_max = 600;
104 reconnect_keep_trying = true;
106 # Key exchange protocol rekey interval (seconds). How often to
107 # regenerate the session key with the remote. Initiator will perform
108 # the rekey and this setting affects only when connecting as initiator.
109 # This can be overridden with ConnectionParams.
110 #key_exchange_rekey = 3600;
112 # Key exchange with Perfect Forward Secrecy (PFS). This will perform
113 # the rekey process with PFS, making the new key more secure since it
114 # is not dependent in any way of the old key. This will make the rekey
115 # process somewhat slower, than without PFS. This can be overridden
116 # with ConnectionParams.
117 #key_exchange_pfs = true;
119 # Key exchange timeout (seconds). If the key exchange protocol is not
120 # finished in this time period the remote connection will be closed.
121 #key_exchange_timeout = 60;
123 # Connection authentication timeout (seconds). If the connection
124 # authentication protocol is not finished in this time period the
125 # remote connection will be closed.
126 #conn_auth_timeout = 60;
128 # Channel key rekey interval (seconds). How often channel key is
129 # regenerated. Note that channel key is regenerated also always when
130 # someone joins or leaves the channel.
131 #channel_rekey_secs = 3600;
133 # SILC session detachment disabling and limiting. By default clients
134 # can detach their sessions from server. If you set detach_disabled
135 # to true the DETACH command cannot be used by clients. If you
136 # want to limit for how long the server keeps detached sessions you
137 # can set the time (minutes) in detach_timeout. After that timeout
138 # the detached session is closed if it is not resumed. By default
139 # sessions are persistent as long as server is running.
140 #detach_disabled = true;
141 #detach_timeout = 1440;
151 hostname = "lassi.kuo.fi.ssh.com";
154 # Primary listener. Specify the IP address and the port to bind
163 # Secondary listener(s). If you need to bind your server into
164 # several interfaces use the Secondary to specify the listener(s).
166 #Secondary { ip = "10.2.1.60"; port = 706; };
167 #Secondary { ip = "10.2.1.160"; port = 706; };
170 # ServerType field specifies the purpose of this server
171 # This is only a descriptive field.
173 ServerType = "Test Server";
176 # Geographic location
178 Location = "Kuopio, Finland";
183 Admin = "Foo T. Bar";
186 # Admin's email address
188 AdminEmail = "foo-admin@bar.com";
191 # Run SILC server as specific user and group. The server must be
192 # initially run as root.
198 # Public and private keys
200 PublicKey = "@ETCDIR@/silcd.pub";
201 PrivateKey = "@ETCDIR@/silcd.prv";
206 # Specifies the text file displayed on client connection
208 #MotdFile = "@ETCDIR@/motd.txt";
213 PidFile = "@PIDFILE@";
219 # This section is used to set various logging files, their paths, maximum
220 # sizes and logging options.
222 # There are only four defined channels allowed for defining (see below).
223 # The log channels have an importance value, and most important channels
224 # are redirected on the less important ones, thus setting a valid logging
225 # file for "Info" will ensure logging for all channels, while setting
226 # logging file for "Errors" will ensure logging for channels "Errors"
230 # If QuickLogs is true, then the logging files will be updated
231 # real-time. This causes a bit more CPU and HDD activity, but
232 # reduces memory usage. By default it is false and log files are
233 # written with FlushDelay timeout.
237 # FlushDelay tells log files update delay (seconds) in case you
238 # have chosen buffering output. This setting has effect only if
239 # the QuickLogs is false.
243 # Informational messages
245 File = "@LOGSDIR@/silcd.log";
251 File = "@LOGSDIR@/silcd_warnings.log";
257 File = "@LOGSDIR@/silcd_errors.log";
263 File = "@LOGSDIR@/silcd_fatals.log";
269 # Connection Parameters
271 # This section defined connection parameters. It is possible to use
272 # specific parameters in different connections, and to define different
273 # parameters to different connections. The parameters can define how the
274 # connection is handled and how the session is managed. If connection
275 # parameters are not used in connections the default values will apply
276 # (or values defined in General section). You can have multiple
277 # ConnectionParams blocks defined.
280 # unique name. The name is used to reference to this parameter
281 # block from the connections. This field is mandatory.
284 # Maximum number of connections allowed. More connections will be
285 # refused. This can be used for example to limit number of clients.
286 # Note that this never can be larger than the connections_max
287 # specified in General section.
288 connections_max = 200;
290 # Maximum number of connections allowed per host. For example, if
291 # this is one (1) it means a host can link only once to the server.
292 # Attempting to link more than once would be refused.
294 # If this connection parameters block is used with incoming server
295 # connections it is recommended that this value is set to one (1).
296 connections_max_per_host = 10;
298 # Required version of the remote. If these are specified then the
299 # remote must be of at least this version, or newer. If older then
300 # the connection will not be allowed.
302 # version_protocol - SILC protocol version
303 # version_software - software version
304 # version_software_vendor - vendor specific version extension
306 # The version_software_vendor may be for example a string or a build
307 # number of the software. The string can be a regex string to match
308 # more widely. Usually the vendor version checking is not necessary
309 # and can be omitted.
310 #version_protocol = "1.1";
311 #version_software = "1.3";
312 #version_software_vendor = "SomeVendor";
314 # Keepalive frequency (seconds).
315 keepalive_secs = 300;
317 # Reconnection parameters defines how the server reconnects to
318 # the remote if the connection was lost. The reconnection phase
319 # use so called exponential backoff algorithm; The reconnect
320 # interval grows when reconnect count grows. Next example will
321 # attempt to reconnect after 10 seconds of disconnect, and the
322 # interval grows up to 600 seconds or until 7 times was attempted
323 # to reconnect. These settings has effect only when connecting
326 # reconnect_count - how many times reconnect is attempted
327 # reconnect_interval - how often reconnect it performed (seconds)
328 # reconnect_interval_max - maximum interval for reconnect, the
329 # server never waits longer than this to
330 # reconnect (seconds).
331 # reconnect_keep_trying - whether to keep trying even after
332 # reconnect_count is reached (the interval
333 # will be reconnect_interval_max).
335 reconnect_interval = 10;
336 reconnect_interval_max = 600;
337 reconnect_keep_trying = true;
339 # Key exchange protocol rekey interval (seconds). How often to
340 # regenerate the session key with the remote. Initiator will perform
341 # the rekey and this setting affects only when connecting as initiator.
342 #key_exchange_rekey = 3600;
344 # Key exchange with Perfect Forward Secrecy (PFS). This will perform
345 # the rekey process with PFS, making the new key more secure since it
346 # is not dependent in any way of the old key. This will make the rekey
347 # process somewhat slower, than without PFS.
348 #key_exchange_pfs = true;
351 #connections_interval - incoming connection interval limit ?
355 # Configured client connections.
357 # The "Host" defines the incoming IP address or hostname of the client.
358 # If it is omitted all hosts will match this client connection. The
359 # "Params" is optional and can be used to set specific connection parameters
360 # for this connection.
362 # The authentication data is specified by Passphrase and/or PublicKey.
363 # If both are provided then both password and public key based authentication
364 # is allowed. If the Publickey is used it includes the file path to the
365 # public key file. If none of them is provided then authentication is not
366 # required. The PublicKey can be set multiple times to set multiple
367 # public keys for one connection.
369 # Next example connection will match to all incoming client connections,
370 # and no authentication is required.
374 #Passphrase = "secret";
375 #PublicKey = "/path/to/the/user_my.key";
376 #PublicKey = "/path/to/the/user_221.key";
377 #PublicKey = "/path/to/the/user_313.key";
382 # Configured server administrator connections
384 # The fields "Host", "User", and "Nick", are optional but you are encouraged
385 # in using them to better identify your admins.
387 # The authentication data is specified by Passphrase and/or PublicKey.
388 # If both are provided then both password and public key based authentication
389 # is allowed. If the PublicKey is used it includes the file path to the
390 # public key file. If none of them is provided then authentication is not
397 Passphrase = "verysecret";
398 # PublicKey = "/path/to/the/public.key";
402 # Configured server connections.
404 # If server connections are configured it means that this server is
405 # router server. Normal servers must not configure server connections.
406 # Thus, if this server is not router do not configure this section. If
407 # your server is router, this must be configured.
409 # The authentication data is specified by Passphrase and/or PublicKey.
410 # If both are provided then both password and public key based authentication
411 # is allowed. If the PublicKey is used it includes the file path to the
412 # public key file. If none of them is provided then authentication is not
415 # If the connection is backup connection then set the "Backup" option
416 # to true. For normal connections set it false. If it is set to true then
417 # this server will be backup router.
421 Passphrase = "verysecret";
422 #PublicKey = "/path/to/the/public.key";
428 # Configured router connections
430 # For normal servers only one entry maybe configured to this section. It
431 # must be the router this server will be connected to. For router servers,
432 # this section includes all configured router connections. The first
433 # configured connection is the primary route. The Host specifies the
434 # remote hostname or IP address. The Port specifies the remote port to
435 # connect when Initiator is true. When Initiator is false the Port
436 # specifies the local port (listener port).
438 # The authentication data is specified by Passphrase and/or PublicKey.
439 # If both are provided then both password and public key based authentication
440 # is allowed. If the PublicKey is used it includes the file path to the
441 # public key file. If none of them is provided then authentication is not
444 # If you are the initiator of the connection then set the "Initiator"
445 # option to true. If you are the responder of the connection (waiting for
446 # incoming connection) then set it to false.
448 # If the connection is backup router connection then set the "BackupHost"
449 # option to the IP address of the router that the backup router will
450 # replace if it becomes unavailable. Set also the router's port to the
451 # "BackupPort" option. For normal connection leave both commented. If this
452 # backup router is in our cell then set the "BackupLocal" option to true.
453 # If the backup router is in other cell then set it to false.
458 Passphrase = "verysecret";
459 #PublicKey = "/path/to/the/public.key";
462 #BackupHost = "10.2.1.6";
470 # These connections are denied to connect to our server.
472 # The "Reason" field is mandatory, while the "Host" field can be omitted to
476 # Host = "10.2.1.99";
477 # Reason = "Go away spammer";
481 # Reason = "You are not welcome.";