]> jfr.im git - irc/rqf/shadowircd.git/blame - doc/example.conf
Add support for client certificate fingerprints in o:lines.
[irc/rqf/shadowircd.git] / doc / example.conf
CommitLineData
212380e3 1/* doc/example.conf - brief example configuration file
2 *
3 * Copyright (C) 2000-2002 Hybrid Development Team
4 * Copyright (C) 2002-2005 ircd-ratbox development team
5 * Copyright (C) 2005-2006 charybdis development team
6 *
407b1826 7 * $Id: example.conf 3582 2007-11-17 21:55:48Z jilles $
212380e3 8 *
9 * See reference.conf for more information.
10 */
11
12/* Extensions */
95dc1251
VY
13#loadmodule "extensions/chm_operonly_compat.so";
14#loadmodule "extensions/chm_quietunreg_compat.so";
15#loadmodule "extensions/chm_sslonly_compat.so";
212380e3 16#loadmodule "extensions/createauthonly.so";
17#loadmodule "extensions/extb_account.so";
18#loadmodule "extensions/extb_canjoin.so";
19#loadmodule "extensions/extb_channel.so";
20#loadmodule "extensions/extb_extgecos.so";
21#loadmodule "extensions/extb_oper.so";
22#loadmodule "extensions/extb_realname.so";
23#loadmodule "extensions/extb_server.so";
95dc1251 24#loadmodule "extensions/extb_ssl.so";
212380e3 25#loadmodule "extensions/hurt.so";
26#loadmodule "extensions/ip_cloaking.so";
27#loadmodule "extensions/m_findforwards.so";
28#loadmodule "extensions/m_identify.so";
29#loadmodule "extensions/no_oper_invis.so";
30#loadmodule "extensions/sno_farconnect.so";
31#loadmodule "extensions/sno_globalkline.so";
32#loadmodule "extensions/sno_globaloper.so";
446d88dd 33#loadmodule "extensions/sno_whois.so";
212380e3 34
35serverinfo {
36 name = "hades.arpa";
212380e3 37 sid = "42X";
38 description = "charybdis test server";
39 network_name = "AthemeNET";
40 network_desc = "Your IRC network.";
41 hub = yes;
42
43 /* On multi-homed hosts you may need the following. These define
44 * the addresses we connect from to other servers. */
45 /* for IPv4 */
46 #vhost = "192.169.0.1";
47 /* for IPv6 */
48 #vhost6 = "3ffe:80e8:546::2";
8db00894 49
9b1b4a97
VY
50 /* ssl_private_key: our ssl private key */
51 ssl_private_key = "etc/test.key";
52
53 /* ssl_cert: certificate for our ssl server */
54 ssl_cert = "etc/test.cert";
55
56 /* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 1024 */
57 ssl_dh_params = "etc/dh.pem";
58
29e3823d
JT
59 /* ssld_count: number of ssld processes you want to start, if you
60 * have a really busy server, using N-1 where N is the number of
61 * cpu/cpu cores you have might be useful. A number greater than one
62 * can also be useful in case of bugs in ssld and because ssld needs
63 * two file descriptors per SSL connection.
9b1b4a97
VY
64 */
65 ssld_count = 1;
66
67 /* default max clients: the default maximum number of clients
68 * allowed to connect. This can be changed once ircd has started by
69 * issuing:
70 * /quote set maxclients <limit>
c2d96fcb 71 */
3fe90825 72 default_max_clients = 1024;
212380e3 73};
74
75admin {
76 name = "Lazy admin (lazya)";
77 description = "AthemeNET client server";
78 email = "nobody@127.0.0.1";
79};
80
81log {
82 fname_userlog = "logs/userlog";
83 #fname_fuserlog = "logs/fuserlog";
84 fname_operlog = "logs/operlog";
85 #fname_foperlog = "logs/foperlog";
86 fname_serverlog = "logs/serverlog";
212380e3 87 #fname_klinelog = "logs/klinelog";
88 fname_killlog = "logs/killlog";
89 fname_operspylog = "logs/operspylog";
90 #fname_ioerrorlog = "logs/ioerror";
91};
92
93/* class {} blocks MUST be specified before anything that uses them. That
94 * means they must be defined before auth {} and before connect {}.
95 */
96class "users" {
97 ping_time = 2 minutes;
76514a0b
JT
98 number_per_ident = 10;
99 number_per_ip = 10;
100 number_per_ip_global = 50;
c8d85889
JT
101 cidr_ipv4_bitlen = 24;
102 cidr_ipv6_bitlen = 64;
76514a0b 103 number_per_cidr = 200;
212380e3 104 max_number = 3000;
105 sendq = 400 kbytes;
106};
107
108class "opers" {
109 ping_time = 5 minutes;
110 number_per_ip = 10;
111 max_number = 1000;
112 sendq = 1 megabyte;
113};
114
115class "server" {
116 ping_time = 5 minutes;
117 connectfreq = 5 minutes;
118 max_number = 1;
119 sendq = 4 megabytes;
120};
121
122listen {
123 /* If you want to listen on a specific IP only, specify host.
124 * host definitions apply only to the following port line.
125 */
126 #host = "192.169.0.1";
127 port = 5000, 6665 .. 6669;
9b1b4a97 128 sslport = 9999;
212380e3 129
130 /* Listen on IPv6 (if you used host= above). */
131 #host = "3ffe:1234:a:b:c::d";
132 #port = 5000, 6665 .. 6669;
9b1b4a97 133 #sslport = 9999;
212380e3 134};
135
136/* auth {}: allow users to connect to the ircd (OLD I:)
137 * auth {} blocks MUST be specified in order of precedence. The first one
138 * that matches a user will be used. So place spoofs first, then specials,
139 * then general access, then restricted.
140 */
141auth {
b0dc8e03 142 /* user: the user@host allowed to connect. Multiple IPv4/IPv6 user
143 * lines are permitted per auth block. This is matched against the
144 * hostname and IP address (using :: shortening for IPv6 and
145 * prepending a 0 if it starts with a colon) and can also use CIDR
146 * masks.
212380e3 147 */
148 user = "*@172.16.0.0/12";
149 user = "*test@123D:B567:*";
150
151 /* password: an optional password that is required to use this block.
152 * By default this is not encrypted, specify the flag "encrypted" in
153 * flags = ...; below if it is.
154 */
155 password = "letmein";
156
157 /* spoof: fake the users user@host to be be this. You may either
158 * specify a host or a user@host to spoof to. This is free-form,
159 * just do everyone a favour and dont abuse it. (OLD I: = flag)
160 */
161 spoof = "I.still.hate.packets";
162
163 /* Possible flags in auth:
164 *
165 * encrypted | password is encrypted with mkpasswd
166 * spoof_notice | give a notice when spoofing hosts
167 * exceed_limit (old > flag) | allow user to exceed class user limits
168 * kline_exempt (old ^ flag) | exempt this user from k/g/xlines&dnsbls
169 * dnsbl_exempt | exempt this user from dnsbls
212380e3 170 * spambot_exempt | exempt this user from spambot checks
171 * shide_exempt | exempt this user from serverhiding
172 * jupe_exempt | exempt this user from generating
173 * warnings joining juped channels
174 * resv_exempt | exempt this user from resvs
175 * flood_exempt | exempt this user from flood limits
176 * USE WITH CAUTION.
177 * no_tilde (old - flag) | don't prefix ~ to username if no ident
178 * need_ident (old + flag) | require ident for user in this class
92ee45c4 179 * need_ssl | require SSL/TLS for user in this class
212380e3 180 * need_sasl | require SASL id for user in this class
181 */
182 flags = kline_exempt, exceed_limit;
183
184 /* class: the class the user is placed in */
185 class = "opers";
186};
187
188auth {
189 user = "*@*";
190 class = "users";
191};
192
ebe56017
JT
193/* privset {} blocks MUST be specified before anything that uses them. That
194 * means they must be defined before operator {}.
195 */
48de3c18
WP
196privset "local_op" {
197 privs = oper:local_kill, oper:operwall;
198};
199
6e915bfe
WP
200privset "server_bot" {
201 extends = "local_op";
29ef4e88 202 privs = oper:kline, oper:remoteban, snomask:nick_changes;
6e915bfe
WP
203};
204
48de3c18
WP
205privset "global_op" {
206 extends = "local_op";
207 privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline,
44d450f2 208 oper:resv, oper:mass_notice, oper:remoteban;
48de3c18
WP
209};
210
211privset "admin" {
212 extends = "global_op";
0d499ee5 213 privs = oper:admin, oper:die, oper:rehash, oper:spy;
48de3c18
WP
214};
215
212380e3 216operator "god" {
217 /* name: the name of the oper must go above */
218
219 /* user: the user@host required for this operator. CIDR *is*
220 * supported now. auth{} spoofs work here, other spoofs do not.
221 * multiple user="" lines are supported.
222 */
223 user = "*god@127.0.0.1";
224
225 /* password: the password required to oper. Unless ~encrypted is
226 * contained in flags = ...; this will need to be encrypted using
227 * mkpasswd, MD5 is supported
228 */
229 password = "etcnjl8juSU1E";
230
231 /* rsa key: the public key for this oper when using Challenge.
232 * A password should not be defined when this is used, see
233 * doc/challenge.txt for more information.
234 */
235 #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
236
237 /* umodes: the specific umodes this oper gets when they oper.
238 * If this is specified an oper will not be given oper_umodes
239 * These are described above oper_only_umodes in general {};
240 */
241 #umodes = locops, servnotice, operwall, wallop;
242
d8a023ed
WP
243 /* fingerprint: if specified, the oper's client certificate
244 * fingerprint will be checked against the specified fingerprint
245 * below.
246 */
247 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
248
212380e3 249 /* snomask: specific server notice mask on oper up.
250 * If this is specified an oper will not be given oper_snomask.
251 */
252 snomask = "+Zbfkrsuy";
253
ebe56017
JT
254 /* flags: misc options for the operator. You may prefix an option
255 * with ~ to disable it, e.g. ~encrypted.
212380e3 256 *
850b23f3 257 * Default flags are encrypted.
212380e3 258 *
259 * Available options:
260 *
261 * encrypted: the password above is encrypted [DEFAULT]
92ee45c4 262 * need_ssl: must be using SSL/TLS to oper up
212380e3 263 */
ebe56017 264 flags = encrypted;
48de3c18 265
ebe56017 266 /* privset: privileges set to grant */
48de3c18 267 privset = "admin";
212380e3 268};
269
270connect "irc.uplink.com" {
271 host = "192.168.0.1";
272 send_password = "password";
273 accept_password = "anotherpassword";
274 port = 6666;
275 hub_mask = "*";
276 class = "server";
277 flags = compressed, topicburst;
278
b0dc8e03 279 /* If the connection is IPv6, uncomment below.
280 * Use 0::1, not ::1, for IPv6 localhost. */
212380e3 281 #aftype = ipv6;
282};
283
9b1b4a97
VY
284connect "ssl.uplink.com" {
285 host = "192.168.0.1";
286 send_password = "password";
287 accept_password = "anotherpassword";
288 port = 9999;
289 hub_mask = "*";
290 class = "server";
291 flags = ssl, topicburst;
292};
293
212380e3 294service {
295 name = "services.int";
296};
297
298cluster {
299 name = "*";
300 flags = kline, tkline, unkline, xline, txline, unxline, resv, tresv, unresv;
301};
302
303shared {
304 oper = "*@*", "*";
305 flags = all, rehash;
306};
307
b808adf9 308/* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */
212380e3 309exempt {
310 ip = "127.0.0.1";
311};
312
313channel {
314 use_invex = yes;
315 use_except = yes;
316 use_knock = yes;
317 use_forward = yes;
212380e3 318 knock_delay = 5 minutes;
319 knock_delay_channel = 1 minute;
320 max_chans_per_user = 15;
321 max_bans = 100;
322 max_bans_large = 500;
323 default_split_user_count = 0;
324 default_split_server_count = 0;
325 no_create_on_split = no;
326 no_join_on_split = no;
327 burst_topicwho = yes;
328 kick_on_split_riding = no;
dea418e9 329 only_ascii_channels = no;
100563e8 330 resv_forcepart = yes;
212380e3 331};
332
333serverhide {
334 flatten_links = yes;
335 links_delay = 5 minutes;
336 hidden = no;
337 disable_hidden = no;
338};
339
340/* These are the blacklist settings.
341 * You can have multiple combinations of host and rejection reasons.
6abfcc55 342 * They are used in pairs of one host/rejection reason.
212380e3 343 *
344 * These settings should be adequate for most networks, and are (presently)
345 * required for use on AthemeNet.
346 *
347 * Word to the wise: Do not use blacklists like SPEWS for blocking IRC
348 * connections.
349 *
1e56e993 350 * As of charybdis 2.1.3, you can do some keyword substitution on the rejection
92fb5c31 351 * reason. The available keyword substitutions are:
352 *
353 * ${ip} - the user's IP
354 * ${host} - the user's canonical hostname
355 * ${dnsbl-host} - the dnsbl hostname the lookup was done against
356 * ${nick} - the user's nickname
357 * ${network-name} - the name of the network
358 *
57b8cb0f 359 * Note: AHBL (the providers of the below *.ahbl.org BLs) request that they be
212380e3 360 * contacted, via email, at admins@2mbit.com before using these BLs.
361 * See <http://www.ahbl.org/services.php> for more information.
362 */
57b8cb0f 363blacklist {
364 host = "dnsbl.dronebl.org";
365 reject_reason = "${nick}, your IP (${ip}) is listed in DroneBL. For assistance, see http://dronebl.org/lookup_branded.do?ip=${ip}&network=${network-name}";
366
212380e3 367# host = "ircbl.ahbl.org";
92fb5c31 368# reject_reason = "${nick}, your IP (${ip}) is listed in ${dnsbl-host} for having an open proxy. In order to protect ${network-name} from abuse, we are not allowing connections with open proxies to connect.";
212380e3 369#
370# host = "tor.ahbl.org";
92fb5c31 371# reject_reason = "${nick}, your IP (${ip}) is listed as a TOR exit node. In order to protect ${network-name} from tor-based abuse, we are not allowing TOR exit nodes to connect to our network.";
57b8cb0f 372};
212380e3 373
374alias "NickServ" {
375 target = "NickServ";
376};
377
378alias "ChanServ" {
379 target = "ChanServ";
380};
381
382alias "OperServ" {
383 target = "OperServ";
384};
385
386alias "MemoServ" {
387 target = "MemoServ";
388};
389
390alias "NS" {
391 target = "NickServ";
392};
393
394alias "CS" {
395 target = "ChanServ";
396};
397
398alias "OS" {
399 target = "OperServ";
400};
401
402alias "MS" {
403 target = "MemoServ";
404};
405
406general {
407 hide_error_messages = opers;
408 hide_spoof_ips = yes;
409
410 /*
411 * default_umodes: umodes to enable on connect.
412 * If you have enabled the ip_cloaking module, and you want
413 * to make use of it, add +h to this option, i.e.:
414 * default_umodes = "+ih";
415 */
416 default_umodes = "+i";
417
418 default_operstring = "is an IRC Operator";
419 default_adminstring = "is a Server Administrator";
420 servicestring = "is a Network Service";
421 disable_fake_channels = no;
422 tkline_expire_notices = no;
423 default_floodcount = 10;
424 failed_oper_notice = yes;
425 dots_in_ident=2;
212380e3 426 min_nonwildcard = 4;
427 min_nonwildcard_simple = 3;
428 max_accept = 100;
429 max_monitor = 100;
430 anti_nick_flood = yes;
431 max_nick_time = 20 seconds;
432 max_nick_changes = 5;
433 anti_spam_exit_message_time = 5 minutes;
434 ts_warn_delta = 30 seconds;
435 ts_max_delta = 5 minutes;
436 client_exit = yes;
437 collision_fnc = yes;
438 global_snotices = yes;
439 dline_with_reason = yes;
440 kline_delay = 0 seconds;
441 kline_with_reason = yes;
442 kline_reason = "K-Lined";
443 identify_service = "NickServ@services.int";
444 identify_command = "IDENTIFY";
445 non_redundant_klines = yes;
446 warn_no_nline = yes;
447 stats_e_disabled = no;
448 stats_c_oper_only=no;
449 stats_h_oper_only=no;
450 stats_y_oper_only=no;
451 stats_o_oper_only=yes;
452 stats_P_oper_only=no;
453 stats_i_oper_only=masked;
454 stats_k_oper_only=masked;
455 map_oper_only = no;
456 operspy_admin_only = no;
457 operspy_dont_care_user_info = no;
458 caller_id_wait = 1 minute;
459 pace_wait_simple = 1 second;
460 pace_wait = 10 seconds;
461 short_motd = no;
462 ping_cookie = no;
463 connect_timeout = 30 seconds;
464 disable_auth = no;
465 no_oper_flood = yes;
212380e3 466 max_targets = 4;
467 client_flood = 20;
468 use_whois_actually = no;
469 oper_only_umodes = operwall, locops, servnotice;
470 oper_umodes = locops, servnotice, operwall, wallop;
471 oper_snomask = "+s";
472 burst_away = yes;
473 nick_delay = 0 seconds; # 15 minutes if you want to enable this
474 reject_ban_time = 1 minute;
475 reject_after_count = 3;
476 reject_duration = 5 minutes;
c3a82957
JT
477 throttle_duration = 60;
478 throttle_count = 4;
212380e3 479};
480
481modules {
482 path = "modules";
483 path = "modules/autoload";
484};