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