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