1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
|
$NetBSD: patch-ab,v 1.3 2002/01/26 14:43:18 hubertf Exp $
--- doc/example_silcd.conf.in.orig Mon Jan 14 23:03:37 2002
+++ doc/example_silcd.conf.in
@@ -8,25 +8,27 @@
# Configured ciphers.
#
# Format: <name>:<module path>:<key length>:<block length>
+# Example: aes-256-cbc:/usr/local/lib/silc/aes.sim.so:32:16
#
# If the cipher is builtin the <module path> maybe omitted.
#
[Cipher]
-aes-256-cbc:@MODULESDIR@/aes.sim.so:32:16
-aes-192-cbc:@MODULESDIR@/aes.sim.so:24:16
-aes-128-cbc:@MODULESDIR@/aes.sim.so:16:16
-twofish-256-cbc:@MODULESDIR@/twofish.sim.so:32:16
-twofish-192-cbc:@MODULESDIR@/twofish.sim.so:24:16
-twofish-128-cbc:@MODULESDIR@/twofish.sim.so:16:16
-mars-256-cbc:@MODULESDIR@/mars.sim.so:32:16
-mars-192-cbc:@MODULESDIR@/mars.sim.so:24:16
-mars-128-cbc:@MODULESDIR@/mars.sim.so:16:16
-none:@MODULESDIR@/none.sim.so:0:0
+aes-256-cbc::32:16
+aes-192-cbc::24:16
+aes-128-cbc::16:16
+twofish-256-cbc::32:16
+twofish-192-cbc::24:16
+twofish-128-cbc::16:16
+mars-256-cbc::32:16
+mars-192-cbc::24:16
+mars-128-cbc::16:16
+none::0:0
#
# Configured hash functions.
#
# Format: <name>:<module path>:<block length>:<digest length>
+# Example: sha1::64:20
#
# If the hash function is builtin the <module path> maybe omitted.
#
@@ -39,6 +41,7 @@
# configured to the [hash] section.
#
# Format: <name>:<hash name>:<mac length>
+# Example: hmac-sha1-96:sha1:12
#
[hmac]
hmac-sha1-96:sha1:12
@@ -50,6 +53,7 @@
# Configured PKCS.
#
# Format: <name>
+# Example: rsa
#
[PKCS]
rsa
@@ -59,30 +63,34 @@
# run as root.
#
# Format: <user>:<group>
+# Example: nobody:nobody
#
[Identity]
-nobody:nobody
+silcd:silcd
#
# Server's administrative information.
#
# Format: <location>:<server type>:<admin's name>:<admin's email address>
+# Example: Kuopio, Finland:Test Server:Pekka Riikonen:priikone@poseidon.pspt.fi
#
[AdminInfo]
-Kuopio, Finland:Test Server:Pekka Riikonen:priikone@poseidon.pspt.fi
+Default Location:NetBSD Test Server:Root of All Evil:root@localhost
#
# Server information.
#
-# Format: +<server FQDN>:<server IP>:<geographic location>:<port>
+# Format: <server FQDN>:<server IP>:<geographic location>:<port>
+# Example: lassi.kuo.fi.ssh.com:10.2.1.6:Kuopio, Finland:706
#
[ServerInfo]
-lassi.kuo.fi.ssh.com:10.2.1.6:Kuopio, Finland:706
+localhost:127.0.0.1:Default Location:706
#
# Server keys
#
-# Format: +<public key>:<private key>
+# Format: <public key>:<private key>
+# Example: /usr/local/silc/etc/silcd.pub:/usr/local/silc/etc/silcd.prv
#
[ServerKeys]
@ETCDIR@/silcd.pub:@ETCDIR@/silcd.prv
@@ -91,9 +99,10 @@
# Listenning ports.
#
# Format: <local IP>:<Listener IP>:<port>
+# Example: 10.2.1.6:10.2.1.6:706
#
[ListenPort]
-10.2.1.6:10.2.1.6:706
+127.0.0.1:127.0.0.1:706
#
# Log files.
@@ -120,9 +129,13 @@
# warninglogile:<path>:<max byte size>
# errorlogile:<path>:<max byte size>
# fatallogile:<path>:<max byte size>
+# Example: quicklogs:no:
+# flushdelay:10:
+# infologfile:/usr/local/silc/logs/silcd.log:10000
+#
#
[Logging]
-quicklogs:no:
+quicklogs:yes:
flushdelay:300:
infologfile:@LOGSDIR@/silcd.log:50000
warninglogfile:@LOGSDIR@/silcd_warnings.log:50000
@@ -136,6 +149,7 @@
# used to optimize the server and the connections.#
#
# Format: <class number>:<ping freq>:<connect freq>:<max links>
+# Example: 1:100:100:100
#
[ConnectionClass]
1:100:100:100
@@ -145,6 +159,7 @@
# Configured client connections.
#
# Format: <remote host>:<auth method>:<auth data>:<port>:<class>
+# Example: :::706:1
#
# The <auth data> is either passphrase or file path to the public key
# file.
@@ -156,12 +171,13 @@
# Configured server administrator connections
#
# Format: <host>:<username>:<nickname>:<auth method>:<auth data>
+# Example: 10.2.1.199:priikone:pekka:passwd:veryscret
#
# The <auth data> is either passphrase or file path to the public key
# file.
#
[AdminConnection]
-10.2.1.199:priikone:pekka:passwd:veryscret
+127.0.0.1:admin:admin:passwd:verysecret
#
# Configured server connections.
@@ -173,6 +189,10 @@
#
# Format: <remote host>:<auth method>:<auth data>:<port>:
# <version ID>:<class>:<backup connection>
+# Example: 10.2.1.7:passwd:veryscret:706:1:1:0
+# 10.2.1.17:passwd:veryscret13:706:1:1:1 backup connection, that
+# host will use this server
+# as backup router.
#
# The <auth data> is either passphrase or file path to the public key
# file. If the connection is backup connection then set the <backup
@@ -180,10 +200,6 @@
# set to value 1 then this server will be backup router.
#
[ServerConnection]
-10.2.1.7:passwd:veryscret:706:1:1:0
-10.2.1.17:passwd:veryscret13:706:1:1:1 # backup connection, that host
- # will use this server as backup
- # router.
#
# Configured router connections.
@@ -196,6 +212,9 @@
# Format: <remote host>:<auth method>:<auth data>:<port>:<version ID>:
# <class>:<initiator>:<backup replace IP>:<backup replace port>:
# <local backup>
+# Example: 10.2.1.100:passwd:veryverysecret:706:1:1:1
+# 10.2.100.131:pubkey:/path/to/the/publickey:706:1:1:1
+# 10.2.100.100:pubkey:/path/to/the/publickey:706:1:1:0:10.2.1.6:706:1
#
# The <auth data> is either passphrase or file path to the public key
# file. If you are the initiator of the connection then set the <initiator>
@@ -210,9 +229,6 @@
# If the backup router is in other cell then set it to value 0.
#
[RouterConnection]
-#10.2.1.100:passwd:veryverysecret:706:1:1:1
-#10.2.100.131:pubkey:/path/to/the/publickey:706:1:1:1
-#10.2.100.100:pubkey:/path/to/the/publickey:706:1:1:0:10.2.1.6:706:1
#
# Denied connections.
@@ -220,22 +236,27 @@
# These connections are denied to connect our server.
#
# Format: <remote host>:<port>:<comment>
+# Example: 10.2.1.99:0:Your connection has been denied
#
[DenyConnection]
-#10.2.1.99:0:Your connection has been denied
#
# Message Of The Day
#
-# specify the text file containing the motd:
+# Specify the text file containing the motd.
#
-#[motd]
-#@ETCDIR@/motd.txt
+# Format: <filename>
+# Example: /usr/local/silc/etc/motd.txt
+#
+[motd]
+@ETCDIR@/motd.txt
#
# Pid File
#
-# specify the pidfile where it will be written:
+# Specify the pidfile where it will be written.
#
+# Format: <filename>
+# Example: /var/run/silcd.pid
[pid]
-@PIDFILE@
+/var/run/silcd.pid
|