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