]> jfr.im git - solanum.git/blob - doc/ircd.conf.example
Merge pull request #183 from grawity/sasl-fail-throttle-v3
[solanum.git] / doc / ircd.conf.example
1 /* doc/ircd.conf.example - 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 *
7 * See reference.conf for more information.
8 */
9
10 /* Extensions */
11 #loadmodule "extensions/chm_operonly_compat";
12 #loadmodule "extensions/chm_quietunreg_compat";
13 #loadmodule "extensions/chm_sslonly_compat";
14 #loadmodule "extensions/chm_operpeace";
15 #loadmodule "extensions/createauthonly";
16 #loadmodule "extensions/extb_account";
17 #loadmodule "extensions/extb_canjoin";
18 #loadmodule "extensions/extb_channel";
19 #loadmodule "extensions/extb_combi";
20 #loadmodule "extensions/extb_extgecos";
21 #loadmodule "extensions/extb_hostmask";
22 #loadmodule "extensions/extb_oper";
23 #loadmodule "extensions/extb_realname";
24 #loadmodule "extensions/extb_server";
25 #loadmodule "extensions/extb_ssl";
26 #loadmodule "extensions/extb_usermode";
27 #loadmodule "extensions/hurt";
28 #loadmodule "extensions/m_extendchans";
29 #loadmodule "extensions/m_findforwards";
30 #loadmodule "extensions/m_identify";
31 #loadmodule "extensions/m_locops";
32 #loadmodule "extensions/no_oper_invis";
33 #loadmodule "extensions/sno_farconnect";
34 #loadmodule "extensions/sno_globalkline";
35 #loadmodule "extensions/sno_globalnickchange";
36 #loadmodule "extensions/sno_globaloper";
37 #loadmodule "extensions/sno_whois";
38 #loadmodule "extensions/override";
39 #loadmodule "extensions/no_kill_services";
40
41 /*
42 * IP cloaking extensions: use ip_cloaking_4.0
43 * if you're linking 3.2 and later, otherwise use
44 * ip_cloaking, for compatibility with older 3.x
45 * releases.
46 */
47
48 #loadmodule "extensions/ip_cloaking_4.0";
49 #loadmodule "extensions/ip_cloaking";
50
51 serverinfo {
52 name = "hades.arpa";
53 sid = "42X";
54 description = "charybdis test server";
55 network_name = "StaticBox";
56
57 /* On multi-homed hosts you may need the following. These define
58 * the addresses we connect from to other servers. */
59 /* for IPv4 */
60 #vhost = "192.0.2.6";
61 /* for IPv6 */
62 #vhost6 = "2001:db8:2::6";
63
64 /* ssl_private_key: our ssl private key */
65 ssl_private_key = "etc/ssl.key";
66
67 /* ssl_cert: certificate for our ssl server */
68 ssl_cert = "etc/ssl.pem";
69
70 /* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 2048
71 * In general, the DH parameters size should be the same as your key's size.
72 * However it has been reported that some clients have broken TLS implementations which may
73 * choke on keysizes larger than 2048-bit, so we would recommend using 2048-bit DH parameters
74 * for now if your keys are larger than 2048-bit.
75 */
76 ssl_dh_params = "etc/dh.pem";
77
78 /* ssld_count: number of ssld processes you want to start, if you
79 * have a really busy server, using N-1 where N is the number of
80 * cpu/cpu cores you have might be useful. A number greater than one
81 * can also be useful in case of bugs in ssld and because ssld needs
82 * two file descriptors per SSL connection.
83 */
84 ssld_count = 1;
85
86 /* default max clients: the default maximum number of clients
87 * allowed to connect. This can be changed once ircd has started by
88 * issuing:
89 * /quote set maxclients <limit>
90 */
91 default_max_clients = 1024;
92
93 /* nicklen: enforced nickname length (for this server only; must not
94 * be longer than the maximum length set while building).
95 */
96 nicklen = 30;
97 };
98
99 admin {
100 name = "Lazy admin (lazya)";
101 description = "StaticBox client server";
102 email = "nobody@127.0.0.1";
103 };
104
105 log {
106 fname_userlog = "logs/userlog";
107 #fname_fuserlog = "logs/fuserlog";
108 fname_operlog = "logs/operlog";
109 #fname_foperlog = "logs/foperlog";
110 fname_serverlog = "logs/serverlog";
111 #fname_klinelog = "logs/klinelog";
112 fname_killlog = "logs/killlog";
113 fname_operspylog = "logs/operspylog";
114 #fname_ioerrorlog = "logs/ioerror";
115 };
116
117 /* class {} blocks MUST be specified before anything that uses them. That
118 * means they must be defined before auth {} and before connect {}.
119 */
120 class "users" {
121 ping_time = 2 minutes;
122 number_per_ident = 10;
123 number_per_ip = 10;
124 number_per_ip_global = 50;
125 cidr_ipv4_bitlen = 24;
126 cidr_ipv6_bitlen = 64;
127 number_per_cidr = 200;
128 max_number = 3000;
129 sendq = 400 kbytes;
130 };
131
132 class "opers" {
133 ping_time = 5 minutes;
134 number_per_ip = 10;
135 max_number = 1000;
136 sendq = 1 megabyte;
137 };
138
139 class "server" {
140 ping_time = 5 minutes;
141 connectfreq = 5 minutes;
142 max_number = 1;
143 sendq = 4 megabytes;
144 };
145
146 listen {
147 /* defer_accept: wait for clients to send IRC handshake data before
148 * accepting them. if you intend to use software which depends on the
149 * server replying first, such as BOPM, you should disable this feature.
150 * otherwise, you probably want to leave it on.
151 */
152 defer_accept = yes;
153
154 /* If you want to listen on a specific IP only, specify host.
155 * host definitions apply only to the following port line.
156 */
157 #host = "192.0.2.6";
158 port = 5000, 6665 .. 6669;
159 sslport = 6697;
160
161 /* Listen on IPv6 (if you used host= above). */
162 #host = "2001:db8:2::6";
163 #port = 5000, 6665 .. 6669;
164 #sslport = 9999;
165 };
166
167 /* auth {}: allow users to connect to the ircd (OLD I:)
168 * auth {} blocks MUST be specified in order of precedence. The first one
169 * that matches a user will be used. So place spoofs first, then specials,
170 * then general access, then restricted.
171 */
172 auth {
173 /* user: the user@host allowed to connect. Multiple IPv4/IPv6 user
174 * lines are permitted per auth block. This is matched against the
175 * hostname and IP address (using :: shortening for IPv6 and
176 * prepending a 0 if it starts with a colon) and can also use CIDR
177 * masks.
178 */
179 user = "*@198.51.100.0/24";
180 user = "*test@2001:db8:1:*";
181
182 /* password: an optional password that is required to use this block.
183 * By default this is not encrypted, specify the flag "encrypted" in
184 * flags = ...; below if it is.
185 */
186 password = "letmein";
187
188 /* spoof: fake the users user@host to be be this. You may either
189 * specify a host or a user@host to spoof to. This is free-form,
190 * just do everyone a favour and dont abuse it. (OLD I: = flag)
191 */
192 spoof = "I.still.hate.packets";
193
194 /* Possible flags in auth:
195 *
196 * encrypted | password is encrypted with mkpasswd
197 * spoof_notice | give a notice when spoofing hosts
198 * exceed_limit (old > flag) | allow user to exceed class user limits
199 * kline_exempt (old ^ flag) | exempt this user from k/g/xlines,
200 * | dnsbls, and proxies
201 * proxy_exempt | exempt this user from proxies
202 * dnsbl_exempt | exempt this user from dnsbls
203 * spambot_exempt | exempt this user from spambot checks
204 * shide_exempt | exempt this user from serverhiding
205 * jupe_exempt | exempt this user from generating
206 * warnings joining juped channels
207 * resv_exempt | exempt this user from resvs
208 * flood_exempt | exempt this user from flood limits
209 * USE WITH CAUTION.
210 * no_tilde (old - flag) | don't prefix ~ to username if no ident
211 * need_ident (old + flag) | require ident for user in this class
212 * need_ssl | require SSL/TLS for user in this class
213 * need_sasl | require SASL id for user in this class
214 */
215 flags = kline_exempt, exceed_limit;
216
217 /* class: the class the user is placed in */
218 class = "opers";
219 };
220
221 auth {
222 user = "*@*";
223 class = "users";
224 };
225
226 /* privset {} blocks MUST be specified before anything that uses them. That
227 * means they must be defined before operator {}.
228 */
229 privset "local_op" {
230 privs = oper:local_kill, oper:operwall;
231 };
232
233 privset "server_bot" {
234 extends = "local_op";
235 privs = oper:kline, oper:remoteban, snomask:nick_changes;
236 };
237
238 privset "global_op" {
239 extends = "local_op";
240 privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline,
241 oper:resv, oper:mass_notice, oper:remoteban;
242 };
243
244 privset "admin" {
245 extends = "global_op";
246 privs = oper:admin, oper:die, oper:rehash, oper:spy, oper:grant;
247 };
248
249 operator "god" {
250 /* name: the name of the oper must go above */
251
252 /* user: the user@host required for this operator. CIDR *is*
253 * supported now. auth{} spoofs work here, other spoofs do not.
254 * multiple user="" lines are supported.
255 */
256 user = "*god@127.0.0.1";
257
258 /* password: the password required to oper. Unless ~encrypted is
259 * contained in flags = ...; this will need to be encrypted using
260 * mkpasswd, MD5 is supported
261 */
262 password = "etcnjl8juSU1E";
263
264 /* rsa key: the public key for this oper when using Challenge.
265 * A password should not be defined when this is used, see
266 * doc/challenge.txt for more information.
267 */
268 #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
269
270 /* umodes: the specific umodes this oper gets when they oper.
271 * If this is specified an oper will not be given oper_umodes
272 * These are described above oper_only_umodes in general {};
273 */
274 #umodes = locops, servnotice, operwall, wallop;
275
276 /* fingerprint: if specified, the oper's client certificate
277 * fingerprint will be checked against the specified fingerprint
278 * below.
279 */
280 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
281
282 /* snomask: specific server notice mask on oper up.
283 * If this is specified an oper will not be given oper_snomask.
284 */
285 snomask = "+Zbfkrsuy";
286
287 /* flags: misc options for the operator. You may prefix an option
288 * with ~ to disable it, e.g. ~encrypted.
289 *
290 * Default flags are encrypted.
291 *
292 * Available options:
293 *
294 * encrypted: the password above is encrypted [DEFAULT]
295 * need_ssl: must be using SSL/TLS to oper up
296 */
297 flags = encrypted;
298
299 /* privset: privileges set to grant */
300 privset = "admin";
301 };
302
303 connect "irc.uplink.com" {
304 host = "203.0.113.3";
305 send_password = "password";
306 accept_password = "anotherpassword";
307 port = 6666;
308 hub_mask = "*";
309 class = "server";
310 flags = compressed, topicburst;
311
312 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
313
314 /* If the connection is IPv6, uncomment below.
315 * Use 0::1, not ::1, for IPv6 localhost. */
316 #aftype = ipv6;
317 };
318
319 connect "ssl.uplink.com" {
320 host = "203.0.113.129";
321 send_password = "password";
322 accept_password = "anotherpassword";
323 port = 9999;
324 hub_mask = "*";
325 class = "server";
326 flags = ssl, topicburst;
327 };
328
329 service {
330 name = "services.int";
331 };
332
333 cluster {
334 name = "*";
335 flags = kline, tkline, unkline, xline, txline, unxline, resv, tresv, unresv;
336 };
337
338 shared {
339 oper = "*@*", "*";
340 flags = all, rehash;
341 };
342
343 /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */
344 exempt {
345 ip = "127.0.0.1";
346 };
347
348 channel {
349 use_invex = yes;
350 use_except = yes;
351 use_forward = yes;
352 use_knock = yes;
353 knock_delay = 5 minutes;
354 knock_delay_channel = 1 minute;
355 max_chans_per_user = 15;
356 max_chans_per_user_large = 60;
357 max_bans = 100;
358 max_bans_large = 500;
359 default_split_user_count = 0;
360 default_split_server_count = 0;
361 no_create_on_split = no;
362 no_join_on_split = no;
363 burst_topicwho = yes;
364 kick_on_split_riding = no;
365 only_ascii_channels = no;
366 resv_forcepart = yes;
367 channel_target_change = yes;
368 disable_local_channels = no;
369 autochanmodes = "+nt";
370 displayed_usercount = 3;
371 strip_topic_colors = no;
372 };
373
374 serverhide {
375 flatten_links = yes;
376 links_delay = 5 minutes;
377 hidden = no;
378 disable_hidden = no;
379 };
380
381 /* These are the blacklist settings.
382 * You can have multiple combinations of host and rejection reasons.
383 * They are used in pairs of one host/rejection reason.
384 *
385 * These settings should be adequate for most networks.
386 *
387 * Word to the wise: Do not use blacklists like SPEWS for blocking IRC
388 * connections.
389 *
390 * As of charybdis 2.2, you can do some keyword substitution on the rejection
391 * reason. The available keyword substitutions are:
392 *
393 * ${ip} - the user's IP
394 * ${host} - the user's canonical hostname
395 * ${dnsbl-host} - the dnsbl hostname the lookup was done against
396 * ${nick} - the user's nickname
397 * ${network-name} - the name of the network
398 *
399 * As of charybdis 3.4, a type parameter is supported, which specifies the
400 * address families the blacklist supports. IPv4 and IPv6 are supported.
401 * IPv4 is currently the default as few blacklists support IPv6 operation
402 * as of this writing.
403 *
404 * As of charybdis 3.5, a matches parameter is allowed; if omitted, any result
405 * is considered a match. If included, a comma-separated list of *quoted*
406 * strings is allowed to match queries. They may be of the format "0" to "255"
407 * to match the final octet (e.g. 127.0.0.1) or "127.x.y.z" to explicitly match
408 * an A record. The blacklist is only applied if it matches anything in the
409 * list. You may freely mix full IP's and final octets.
410 *
411 * Consult your blacklist provider for the meaning of these parameters; they
412 * are usually used to denote different ban types.
413 */
414 blacklist {
415 host = "rbl.efnetrbl.org";
416 type = ipv4;
417 reject_reason = "${nick}, your IP (${ip}) is listed in EFnet's RBL. For assistance, see http://efnetrbl.org/?i=${ip}";
418
419 /* Example of a blacklist that supports both IPv4 and IPv6 and using matches */
420 # host = "foobl.blacklist.invalid";
421 # type = ipv4, ipv6;
422 # matches = "4", "6", "127.0.0.10";
423 # reject_reason = "${nick}, your IP (${ip}) is listed in ${dnsbl-host} for some reason. In order to protect ${network-name} from abuse, we are not allowing connections listed in ${dnsbl-host} to connect";
424 };
425
426 /* These are the OPM settings.
427 * This is similar to the functionality provided by BOPM. It will scan incoming
428 * connections for open proxies by connecting to clients and attempting several
429 * different open proxy handshakes. If they connect back to us (via a dedicated
430 * listening port), and send back the data we send them, they are considered
431 * an open proxy. For politeness reasons (users may be confused by the incoming
432 * connection attempts if they are logging incoming connections), the user is
433 * notified upon connect if they are being scanned.
434 *
435 * WARNING:
436 * These settings are considered experimental. Only the most common proxy types
437 * are checked for (Charybdis is immune from POST and GET proxies). If you are
438 * not comfortable with experimental code, remove or comment out the *entire*
439 * block below to disable the proxy scanner.
440 */
441 opm {
442 /* IPv4 address to listen on. This must be a publicly facing IP address
443 * to be effective.
444 * If omitted, it defaults to serverinfo::vhost.
445 */
446 #listen_ipv4 = "127.0.0.1";
447
448 /* IPv4 port to listen on.
449 * This should not be the same as any existing listeners.
450 */
451 #port_ipv4 = 32000;
452
453 /* IPv6 address to listen on. This must be a publicly facing IP address
454 * to be effective.
455 * If omitted, it defaults to serverinfo::vhost6.
456 */
457 #listen_ipv6 = "0::1";
458
459 /* IPv6 port to listen on.
460 * This should not be the same as any existing listeners.
461 */
462 #port_ipv6 = 32000;
463
464 /* You can also set the listen_port directive which will set both the
465 * IPv4 and IPv6 ports at once.
466 */
467 listen_port = 32000;
468
469 /* This sets the timeout in seconds before ending open proxy scans.
470 * Values less than 1 or greater than 60 are ignored.
471 * It is advisable to keep it as short as feasible, so clients do not
472 * get held up by excessively long scan times.
473 */
474 timeout = 5;
475
476 /* These are the ports to scan for SOCKS4 proxies on. They may overlap
477 * with other scan types. Sensible defaults are given below.
478 */
479 socks4_ports = 1080, 10800, 443, 80, 8080, 8000;
480
481 /* These are the ports to scan for SOCKS5 proxies on. They may overlap
482 * with other scan types. Sensible defaults are given below.
483 */
484 socks5_ports = 1080, 10800, 443, 80, 8080, 8000;
485
486 /* These are the ports to scan for HTTP connect proxies on (plaintext).
487 * They may overlap with other scan types. Sensible defaults are given
488 * below.
489 */
490 httpconnect_ports = 80, 8080, 8000;
491
492 /* These are the ports to scan for HTTPS CONNECT proxies on (SSL).
493 * They may overlap with other scan types. Sensible defaults are given
494 * below.
495 */
496 httpsconnect_ports = 443, 4443;
497 };
498
499 alias "NickServ" {
500 target = "NickServ";
501 };
502
503 alias "ChanServ" {
504 target = "ChanServ";
505 };
506
507 alias "OperServ" {
508 target = "OperServ";
509 };
510
511 alias "MemoServ" {
512 target = "MemoServ";
513 };
514
515 alias "NS" {
516 target = "NickServ";
517 };
518
519 alias "CS" {
520 target = "ChanServ";
521 };
522
523 alias "OS" {
524 target = "OperServ";
525 };
526
527 alias "MS" {
528 target = "MemoServ";
529 };
530
531 general {
532 hide_error_messages = opers;
533 hide_spoof_ips = yes;
534
535 /*
536 * default_umodes: umodes to enable on connect.
537 * If you have enabled the new ip_cloaking_4.0 module, and you want
538 * to make use of it, add +x to this option, i.e.:
539 * default_umodes = "+ix";
540 *
541 * If you have enabled the old ip_cloaking module, and you want
542 * to make use of it, add +h to this option, i.e.:
543 * default_umodes = "+ih";
544 */
545 default_umodes = "+i";
546
547 default_operstring = "is an IRC Operator";
548 default_adminstring = "is a Server Administrator";
549 servicestring = "is a Network Service";
550
551 /*
552 * Nick of the network's SASL agent. Used to check whether services are here,
553 * SASL credentials are only sent to its server. Needs to be a service.
554 *
555 * Defaults to SaslServ if unspecified.
556 */
557 sasl_service = "SaslServ";
558 disable_fake_channels = no;
559 tkline_expire_notices = no;
560 default_floodcount = 10;
561 failed_oper_notice = yes;
562 dots_in_ident=2;
563 min_nonwildcard = 4;
564 min_nonwildcard_simple = 3;
565 max_accept = 100;
566 max_monitor = 100;
567 anti_nick_flood = yes;
568 max_nick_time = 20 seconds;
569 max_nick_changes = 5;
570 anti_spam_exit_message_time = 5 minutes;
571 ts_warn_delta = 30 seconds;
572 ts_max_delta = 5 minutes;
573 client_exit = yes;
574 collision_fnc = yes;
575 resv_fnc = yes;
576 global_snotices = yes;
577 dline_with_reason = yes;
578 kline_delay = 0 seconds;
579 kline_with_reason = yes;
580 kline_reason = "K-Lined";
581 identify_service = "NickServ@services.int";
582 identify_command = "IDENTIFY";
583 non_redundant_klines = yes;
584 warn_no_nline = yes;
585 use_propagated_bans = yes;
586 stats_e_disabled = no;
587 stats_c_oper_only=no;
588 stats_h_oper_only=no;
589 stats_y_oper_only=no;
590 stats_o_oper_only=yes;
591 stats_P_oper_only=no;
592 stats_i_oper_only=masked;
593 stats_k_oper_only=masked;
594 map_oper_only = no;
595 operspy_admin_only = no;
596 operspy_dont_care_user_info = no;
597 caller_id_wait = 1 minute;
598 pace_wait_simple = 1 second;
599 pace_wait = 10 seconds;
600 short_motd = no;
601 ping_cookie = no;
602 connect_timeout = 30 seconds;
603 default_ident_timeout = 5;
604 disable_auth = no;
605 no_oper_flood = yes;
606 max_targets = 4;
607 client_flood_max_lines = 20;
608 use_whois_actually = no;
609 oper_only_umodes = operwall, locops, servnotice;
610 oper_umodes = locops, servnotice, operwall, wallop;
611 oper_snomask = "+s";
612 burst_away = yes;
613 nick_delay = 0 seconds; # 15 minutes if you want to enable this
614 reject_ban_time = 1 minute;
615 reject_after_count = 3;
616 reject_duration = 5 minutes;
617 throttle_duration = 60;
618 throttle_count = 4;
619 max_ratelimit_tokens = 30;
620 away_interval = 30;
621 certfp_method = sha1;
622 hide_opers_in_whois = no;
623 };
624
625 modules {
626 path = "modules";
627 path = "modules/autoload";
628 };