]>
Commit | Line | Data |
---|---|---|
1 | /* doc/reference.conf - charybdis 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 | * Written by ejb, wcampbel, db, leeh and others | |
8 | * | |
9 | * $Id: reference.conf 3550 2007-08-09 06:47:26Z nenolod $ | |
10 | */ | |
11 | ||
12 | /* IMPORTANT NOTES: | |
13 | * | |
14 | * class {} blocks MUST be specified before anything that uses them. That | |
15 | * means they must be defined before auth {} and before connect {}. | |
16 | * | |
17 | * auth {} blocks MUST be specified in order of precedence. The first one | |
18 | * that matches a user will be used. So place spoofs first, then specials, | |
19 | * then general access, then restricted. | |
20 | * | |
21 | * Both shell style (#) and C style comments are supported. | |
22 | * | |
23 | * Files may be included by either: | |
24 | * .include "filename" | |
25 | * .include <filename> | |
26 | * | |
27 | * Times/durations are written as: | |
28 | * 12 hours 30 minutes 1 second | |
29 | * | |
30 | * Valid units of time: | |
31 | * month, week, day, hour, minute, second | |
32 | * | |
33 | * Valid units of size: | |
34 | * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte | |
35 | * | |
36 | * Sizes and times may be singular or plural. | |
37 | */ | |
38 | ||
39 | /* Extensions: | |
40 | * | |
41 | * Charybdis contains several extensions that are not enabled by default. | |
42 | * To use them, uncomment the lines below. | |
43 | * | |
44 | * Restrict channel creation to logged in users -- createauthonly.so | |
45 | * Account bans (+b $a[:mask]) -- extb_account.so | |
46 | * Banned from another channel (+b $j:mask) -- extb_canjoin.so | |
47 | * Other-channel bans (+b $c:mask) -- extb_channel.so | |
48 | * Extended ban (+b $x:mask) -- extb_extgecos.so | |
49 | * Oper bans (+b $o) -- extb_oper.so | |
50 | * Realname (gecos) bans (+b $r:mask) -- extb_realname.so | |
51 | * Server bans (+b $s:mask) -- extb_server.so | |
52 | * HURT system -- hurt.so | |
53 | * Host mangling (umode +h) -- ip_cloaking.so | |
54 | * Find channel forwards -- m_findforwards.so | |
55 | * /identify support -- m_identify.so | |
56 | * Opers cannot be invisible (umode +i) -- no_oper_invis.so | |
57 | * Far connection notices (snomask +F) -- sno_farconnect.so | |
58 | * Remote k/d/g/x line active notices -- sno_globalkline.so | |
59 | * Remote oper up notices -- sno_globaloper.so | |
60 | * /whois notifications (snomask +W) -- sno_whois.so | |
61 | */ | |
62 | #loadmodule "extensions/createauthonly.so"; | |
63 | #loadmodule "extensions/extb_account.so"; | |
64 | #loadmodule "extensions/extb_canjoin.so"; | |
65 | #loadmodule "extensions/extb_channel.so"; | |
66 | #loadmodule "extensions/extb_extgecos.so"; | |
67 | #loadmodule "extensions/extb_oper.so"; | |
68 | #loadmodule "extensions/extb_realname.so"; | |
69 | #loadmodule "extensions/extb_server.so"; | |
70 | #loadmodule "extensions/hurt.so"; | |
71 | #loadmodule "extensions/ip_cloaking.so"; | |
72 | #loadmodule "extensions/m_findforwards.so"; | |
73 | #loadmodule "extensions/m_identify.so"; | |
74 | #loadmodule "extensions/no_oper_invis.so"; | |
75 | #loadmodule "extensions/sno_farconnect.so"; | |
76 | #loadmodule "extensions/sno_globalkline.so"; | |
77 | #loadmodule "extensions/sno_globaloper.so"; | |
78 | #loadmodule "extensions/sno_whois.so"; | |
79 | ||
80 | /* serverinfo {}: Contains information about the server. (OLD M:) */ | |
81 | serverinfo { | |
82 | /* name: the name of our server */ | |
83 | name = "hades.arpa"; | |
84 | ||
85 | /* sid: the unique server id of our server. This must be three | |
86 | * characters long. The first character must be a digit [0-9], the | |
87 | * remaining two chars may be letters [A-Z] or digits [0-9]. | |
88 | * | |
89 | * This parameter must be specified for the server to start. | |
90 | */ | |
91 | sid = "42X"; | |
92 | ||
93 | /* description: the description of our server. '[' and ']' may not | |
94 | * be used here for compatibility with older servers. | |
95 | */ | |
96 | description = "charybdis test server"; | |
97 | ||
98 | /* network info: the name and description of the network this server | |
99 | * is on. Shown in the 005 reply and used with serverhiding. | |
100 | */ | |
101 | network_name = "MyNet"; | |
102 | network_desc = "This is My Network"; | |
103 | ||
104 | /* hub: allow this server to act as a hub and have multiple servers | |
105 | * connected to it. | |
106 | */ | |
107 | hub = no; | |
108 | ||
109 | /* vhost: the IP to bind to when we connect outward to ipv4 servers. | |
110 | * This should be an ipv4 IP only. | |
111 | */ | |
112 | #vhost = "192.169.0.1"; | |
113 | ||
114 | /* vhost6: the IP to bind to when we connect outward to ipv6 servers. | |
115 | * This should be an ipv6 IP only. | |
116 | */ | |
117 | #vhost6 = "3ffe:80e8:546::2"; | |
118 | ||
119 | /* max_clients: this should be set to the maximum amount of clients | |
120 | * that the server should support. Note that you should leave some | |
121 | * file descriptors free for log files, server connections, ident | |
122 | * lookups (if enabled), exceed_limit clients, etc. | |
123 | */ | |
124 | max_clients = 1024; | |
125 | }; | |
126 | ||
127 | /* admin {}: contains admin information about the server. (OLD A:) */ | |
128 | admin { | |
129 | name = "Smurf target"; | |
130 | description = "Main Server Administrator"; | |
131 | email = "<syn@packets.r.us>"; | |
132 | }; | |
133 | ||
134 | /* log {}: contains information about logfiles. */ | |
135 | log { | |
136 | /* logfiles: the logfiles to use for specific activity. if these | |
137 | * paths are defined, then ircd will log to them, otherwise it wont. | |
138 | * | |
139 | * The confs are, in order: | |
140 | * - userlog: user exits | |
141 | * - fuserlog: failed user connections | |
142 | * - operlog: /oper usage | |
143 | * - foperlog: failed /oper usage | |
144 | * - serverlog: server connects/disconnects | |
145 | * - glinelog: glines | |
146 | * - klinelog: klines, etc | |
147 | * - killlog: kills | |
148 | * - operspylog: operspy usage | |
149 | * - ioerrorlog: IO errors | |
150 | */ | |
151 | fname_userlog = "logs/userlog"; | |
152 | #fname_fuserlog = "logs/fuserlog"; | |
153 | fname_operlog = "logs/operlog"; | |
154 | #fname_foperlog = "logs/foperlog"; | |
155 | fname_serverlog = "logs/serverlog"; | |
156 | fname_glinelog = "logs/glinelog"; | |
157 | #fname_klinelog = "logs/klinelog"; | |
158 | fname_killlog = "logs/killlog"; | |
159 | fname_operspylog = "logs/operspylog"; | |
160 | #fname_ioerrorlog = "logs/ioerror"; | |
161 | }; | |
162 | ||
163 | /* class {}: contain information about classes for users (OLD Y:) */ | |
164 | class "users" { | |
165 | /* class name must go above */ | |
166 | ||
167 | /* ping time: how often a client must reply to a PING from the | |
168 | * server before they are dropped. | |
169 | */ | |
170 | ping_time = 2 minutes; | |
171 | ||
172 | /* number per ident: the number of users per user@host networkwide | |
173 | * allowed to connect. Unidented connections are classified as | |
174 | * the same ident. | |
175 | */ | |
176 | number_per_ident = 2; | |
177 | ||
178 | /* number per ip: the number of local users per host allowed */ | |
179 | number_per_ip = 3; | |
180 | ||
181 | /* number per ip global: the number of network wide connections | |
182 | * per host allowed for a user, including connections to the | |
183 | * local server. | |
184 | */ | |
185 | number_per_ip_global = 5; | |
186 | ||
187 | /* cidr_bitlen: Limits numbers of connections from a subnet size | |
188 | * the following example makes the subnet /64 this is useful | |
189 | * for IPv6 connections in particular | |
190 | * Also note that the way charybdis is written if you have | |
191 | * compiled support for IPv6, IPv4 cidr bitlens need to be modified | |
192 | * Basically to get the approriate length add 96 to the IPv4 length | |
193 | * For example for a /24 do 96+24 = 120 | |
194 | * | |
195 | */ | |
196 | cidr_bitlen = 64; | |
197 | ||
198 | /* number_per_cidr: Number of connections to allow from a subnet of the | |
199 | * size given in cidr_bitlen. 4 seems to be a good default to me. | |
200 | */ | |
201 | number_per_cidr = 4; | |
202 | ||
203 | /* max number: the maximum number of users allowed in this class */ | |
204 | max_number = 100; | |
205 | ||
206 | /* sendq: the amount of data allowed in a clients queue before | |
207 | * they are dropped. | |
208 | */ | |
209 | sendq = 100 kbytes; | |
210 | }; | |
211 | ||
212 | class "restricted" { | |
213 | ping_time = 1 minute 30 seconds; | |
214 | number_per_ip = 1; | |
215 | max_number = 100; | |
216 | sendq = 60kb; | |
217 | }; | |
218 | ||
219 | class "opers" { | |
220 | ping_time = 5 minutes; | |
221 | number_per_ip = 10; | |
222 | max_number = 100; | |
223 | sendq = 100kbytes; | |
224 | }; | |
225 | ||
226 | class "server" { | |
227 | ping_time = 5 minutes; | |
228 | ||
229 | /* connectfreq: only used in server classes. specifies the delay | |
230 | * between autoconnecting to servers. | |
231 | */ | |
232 | connectfreq = 5 minutes; | |
233 | ||
234 | /* max number: the amount of servers to autoconnect to */ | |
235 | max_number = 1; | |
236 | ||
237 | /* sendq: servers need a higher sendq as they are sent more data */ | |
238 | sendq=2 megabytes; | |
239 | }; | |
240 | ||
241 | /* listen {}: contain information about the ports ircd listens on (OLD P:) */ | |
242 | listen { | |
243 | /* port: the specific port to listen on. if no host is specified | |
244 | * before, it will listen on all available IPs. | |
245 | * | |
246 | * ports are seperated via a comma, a range may be specified using ".." | |
247 | */ | |
248 | ||
249 | /* port: listen on all available IPs, ports 5000 and 6665 to 6669 */ | |
250 | port = 5000, 6665 .. 6669; | |
251 | ||
252 | /* host: set a specific IP/host the ports after the line will listen | |
253 | * on. This may be ipv4 or ipv6. | |
254 | */ | |
255 | host = "1.2.3.4"; | |
256 | port = 7000, 7001; | |
257 | ||
258 | host = "3ffe:1234:a:b:c::d"; | |
259 | port = 7002; | |
260 | }; | |
261 | ||
262 | /* auth {}: allow users to connect to the ircd (OLD I:) */ | |
263 | auth { | |
264 | /* user: the user@host allowed to connect. multiple IPv4/IPv6 user | |
265 | * lines are permitted per auth block. | |
266 | */ | |
267 | user = "*@172.16.0.0/12"; | |
268 | user = "*test@123D:B567:*"; | |
269 | ||
270 | /* password: an optional password that is required to use this block. | |
271 | * By default this is not encrypted, specify the flag "encrypted" in | |
272 | * flags = ...; below if it is. | |
273 | */ | |
274 | password = "letmein"; | |
275 | ||
276 | /* spoof: fake the users user@host to be be this. You may either | |
277 | * specify a host or a user@host to spoof to. This is free-form, | |
278 | * just do everyone a favour and dont abuse it. (OLD I: = flag) | |
279 | */ | |
280 | spoof = "I.still.hate.packets"; | |
281 | ||
282 | /* Possible flags in auth: | |
283 | * | |
284 | * encrypted | password is encrypted with mkpasswd | |
285 | * spoof_notice | give a notice when spoofing hosts | |
286 | * exceed_limit (old > flag) | allow user to exceed class user limits | |
287 | * kline_exempt (old ^ flag) | exempt this user from k/g/xlines&dnsbls | |
288 | * dnsbl_exempt | exempt this user from dnsbls | |
289 | * gline_exempt (old _ flag) | exempt this user from glines | |
290 | * spambot_exempt | exempt this user from spambot checks | |
291 | * shide_exempt | exempt this user from serverhiding | |
292 | * jupe_exempt | exempt this user from generating | |
293 | * warnings joining juped channels | |
294 | * resv_exempt | exempt this user from resvs | |
295 | * flood_exempt | exempt this user from flood limits | |
296 | * USE WITH CAUTION. | |
297 | * no_tilde (old - flag) | don't prefix ~ to username if no ident | |
298 | * need_ident (old + flag) | require ident for user in this class | |
299 | * need_sasl | require SASL id for user in this class | |
300 | */ | |
301 | flags = kline_exempt, exceed_limit; | |
302 | ||
303 | /* class: the class the user is placed in */ | |
304 | class = "opers"; | |
305 | }; | |
306 | ||
307 | auth { | |
308 | /* redirect: the server and port to redirect a user to. A user does | |
309 | * not have to obey the redirection, the ircd just suggests to them | |
310 | * an alternative server. | |
311 | */ | |
312 | redirserv = "irc.some.domain"; | |
313 | redirport = 6667; | |
314 | ||
315 | user = "*.some.domain"; | |
316 | ||
317 | /* class: a class is required even though it is not used */ | |
318 | class = "users"; | |
319 | }; | |
320 | ||
321 | auth { | |
322 | user = "*@*"; | |
323 | class = "users"; | |
324 | ||
325 | flags = need_ident; | |
326 | }; | |
327 | ||
328 | /* operator {}: defines ircd operators. (OLD O:) | |
329 | * charybdis no longer supports local operators, privileges are | |
330 | * controlled via flags. | |
331 | */ | |
332 | operator "god" { | |
333 | /* name: the name of the oper must go above */ | |
334 | ||
335 | /* user: the user@host required for this operator. CIDR *is* | |
336 | * supported now. auth{} spoofs work here, other spoofs do not. | |
337 | * multiple user="" lines are supported. | |
338 | */ | |
339 | user = "*god@*"; | |
340 | user = "*@127.0.0.1"; | |
341 | ||
342 | /* password: the password required to oper. Unless ~encrypted is | |
343 | * contained in flags = ...; this will need to be encrypted using | |
344 | * mkpasswd, MD5 is supported | |
345 | */ | |
346 | password = "etcnjl8juSU1E"; | |
347 | ||
348 | /* rsa key: the public key for this oper when using Challenge. | |
349 | * A password should not be defined when this is used, see | |
350 | * doc/challenge.txt for more information. | |
351 | */ | |
352 | #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub"; | |
353 | ||
354 | /* umodes: the specific umodes this oper gets when they oper. | |
355 | * If this is specified an oper will not be given oper_umodes | |
356 | * These are described above oper_only_umodes in general {}; | |
357 | */ | |
358 | #umodes = locops, servnotice, operwall, wallop; | |
359 | ||
360 | /* snomask: specific server notice mask on oper up. | |
361 | * If this is specified an oper will not be given oper_snomask. | |
362 | */ | |
363 | snomask = "+Zbfkrsuy"; | |
364 | ||
365 | /* privileges: controls the activities and commands an oper is | |
366 | * allowed to do on the server. You may prefix an option with ~ to | |
367 | * disable it, ie ~operwall | |
368 | * | |
369 | * Default flags are operwall, remoteban and encrypted. | |
370 | * | |
371 | * Available options: | |
372 | * | |
373 | * encrypted: the password above is encrypted [DEFAULT] | |
374 | * local_kill: allows local users to be /KILL'd | |
375 | * global_kill: allows local and remote users to be | |
376 | * /KILL'd (OLD 'O' flag) | |
377 | * remote: allows remote SQUIT and CONNECT (OLD 'R' flag) | |
378 | * kline: allows KILL, KLINE and DLINE (OLD 'K' flag) | |
379 | * unkline: allows UNKLINE and UNDLINE (OLD 'U' flag) | |
380 | * gline: allows GLINE (OLD 'G' flag) | |
381 | * nick_changes: allows oper to see nickchanges (OLD 'N' flag) | |
382 | * via usermode +n | |
383 | * rehash: allows oper to REHASH config (OLD 'H' flag) | |
384 | * die: allows DIE and RESTART (OLD 'D' flag) | |
385 | * admin: gives admin privileges. admins | |
386 | * may (un)load modules and see the | |
387 | * real IPs of servers. | |
388 | * hidden_admin: gives admin privileges except | |
389 | * will not have the admin lines in | |
390 | * stats p and whois. | |
391 | * xline: allows use of /quote xline/unxline | |
392 | * operwall: allows the oper to send operwalls [DEFAULT] | |
393 | * oper_spy: allows 'operspy' features to see through +s | |
394 | * channels etc. see /quote help operspy | |
395 | * hidden_oper: hides the oper from /stats p (OLD UMODE +p) | |
396 | * remoteban: allows remote kline etc [DEFAULT] | |
397 | */ | |
398 | flags = global_kill, remote, kline, unkline, gline, | |
399 | die, rehash, admin, xline, operwall; | |
400 | }; | |
401 | ||
402 | /* connect {}: controls servers we connect to (OLD C:, N:, H:, L:) */ | |
403 | connect "irc.uplink.com" { | |
404 | /* the name must go above */ | |
405 | ||
406 | /* host: the host or IP to connect to. If a hostname is used it | |
407 | * must match the reverse dns of the server. | |
408 | */ | |
409 | host = "192.168.0.1"; | |
410 | ||
411 | /* vhost: the host or IP to bind to for this connection. If this | |
412 | * is not specified, the default vhost (in serverinfo {}) is used. | |
413 | */ | |
414 | #vhost = "192.168.0.50"; | |
415 | ||
416 | /* passwords: the passwords we send (OLD C:) and accept (OLD N:). | |
417 | * The remote server will have these passwords reversed. | |
418 | */ | |
419 | send_password = "password"; | |
420 | accept_password = "anotherpassword"; | |
421 | ||
422 | /* port: the port to connect to this server on */ | |
423 | port = 6666; | |
424 | ||
425 | /* hub mask: the mask of servers that this server may hub. Multiple | |
426 | * entries are permitted | |
427 | */ | |
428 | hub_mask = "*"; | |
429 | ||
430 | /* leaf mask: the mask of servers this server may not hub. Multiple | |
431 | * entries are permitted. Useful for forbidding EU -> US -> EU routes. | |
432 | */ | |
433 | #leaf_mask = "*.uk"; | |
434 | ||
435 | /* class: the class this server is in */ | |
436 | class = "server"; | |
437 | ||
438 | /* flags: controls special options for this server | |
439 | * encrypted - marks the accept_password as being crypt()'d | |
440 | * autoconn - automatically connect to this server | |
441 | * compressed - compress traffic via ziplinks | |
442 | * topicburst - burst topics between servers | |
443 | */ | |
444 | flags = compressed, topicburst; | |
445 | }; | |
446 | ||
447 | connect "ipv6.some.server" { | |
448 | host = "3ffd:dead:beef::1"; | |
449 | send_password = "password"; | |
450 | accept_password = "password"; | |
451 | port = 6666; | |
452 | ||
453 | /* aftype: controls whether the connection uses "ipv4" or "ipv6". | |
454 | * Default is ipv4. | |
455 | */ | |
456 | aftype = ipv6; | |
457 | class = "server"; | |
458 | }; | |
459 | ||
460 | /* cluster {}; servers that we propagate things to automatically. | |
461 | * NOTE: This does NOT grant them privileges to apply anything locally, | |
462 | * you must add a seperate shared block for that. Clustering will | |
463 | * only be done for actions by LOCAL opers, that arent directed | |
464 | * remotely. | |
465 | */ | |
466 | cluster { | |
467 | /* name: the server to share with, this can be a wildcard and may be | |
468 | * stacked. | |
469 | */ | |
470 | /* flags: list of what to share, all the name lines above this (up | |
471 | * until another flags entry) will receive these flags. | |
472 | * | |
473 | * kline - share perm klines | |
474 | * tkline - share temp klines | |
475 | * unkline - share unklines | |
476 | * locops - share locops | |
477 | * xline - share perm xlines | |
478 | * txline - share temp xlines | |
479 | * unxline - share unxlines | |
480 | * resv - share perm resvs | |
481 | * tresv - share temp resvs | |
482 | * unresv - share unresvs | |
483 | * all - share all of the above | |
484 | */ | |
485 | ||
486 | /* share klines/unklines/xlines with *.lan */ | |
487 | name = "*.lan"; | |
488 | flags = kline, unkline, xline; | |
489 | ||
490 | /* share locops with irc.ircd-ratbox.org and ircd.ircd-ratbox.org */ | |
491 | name = "irc.ircd-ratbox.org"; | |
492 | name = "ircd.ircd-ratbox.org"; | |
493 | flags = locops; | |
494 | }; | |
495 | ||
496 | /* service{}: privileged servers (services). These servers have extra | |
497 | * privileges such as setting login names on users and introducing clients | |
498 | * with umode +S (unkickable, hide channels, etc). This does not allow them | |
499 | * to set bans, you need a separate shared{} for that. | |
500 | * Do not place normal servers here. | |
501 | * There may be only one service{} block. | |
502 | */ | |
503 | service { | |
504 | /* name: the server name. These may be stacked. */ | |
505 | name = "services.int"; | |
506 | }; | |
507 | ||
508 | /* shared {}: users that are allowed to place remote bans on our server. | |
509 | * NOTE: These are ordered top down. The first one the user@host and server | |
510 | * matches will be used. Their access will then be decided on that | |
511 | * block and will not fall back to another block that matches. | |
512 | */ | |
513 | shared { | |
514 | /* oper: the user@host and server the user must be on to set klines. | |
515 | * The first field must be a user@host, the second field is an | |
516 | * optional server. These may be stacked. | |
517 | */ | |
518 | /* flags: list of what to allow them to place, all the oper lines | |
519 | * above this (up until another flags entry) will receive these | |
520 | * flags. This *must* be present. | |
521 | * | |
522 | * kline - allow setting perm/temp klines | |
523 | * tkline - allow setting temp klines | |
524 | * unkline - allow removing klines | |
525 | * xline - allow setting perm/temp xlines | |
526 | * txline - allow setting temp xlines | |
527 | * unxline - allow removing xlines | |
528 | * resv - allow setting perm/temp resvs | |
529 | * tresv - allow setting temp resvs | |
530 | * unresv - allow removing xlines | |
531 | * all - allow oper/server to do all of above. | |
532 | * locops - allow locops - only used for servers who cluster | |
533 | * rehash - allow rehashing | |
534 | * none - disallow everything | |
535 | */ | |
536 | ||
537 | /* allow flame@*.leeh.co.uk on server irc.ircd-ratbox.org and | |
538 | * allow leeh@*.leeh.co.uk on server ircd.ircd-ratbox.org to kline | |
539 | */ | |
540 | oper = "flame@*.leeh.co.uk", "irc.ircd-ratbox.org"; | |
541 | oper = "leeh@*.leeh.co.uk", "ircd.ircd-ratbox.org"; | |
542 | flags = kline; | |
543 | ||
544 | /* you may forbid certain opers/servers from doing anything */ | |
545 | oper = "irc@vanity.oper", "*"; | |
546 | oper = "*@*", "irc.vanity.server"; | |
547 | oper = "irc@another.vanity.oper", "bigger.vanity.server"; | |
548 | flags = none; | |
549 | ||
550 | /* or allow everyone to place temp klines */ | |
551 | oper = "*@*"; | |
552 | flags = tkline; | |
553 | }; | |
554 | ||
555 | /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */ | |
556 | exempt { | |
557 | ip = "192.168.0.0/16"; | |
558 | ||
559 | /* these may be stacked */ | |
560 | ip = "127.0.0.1"; | |
561 | ip = "10.0.0.0/8"; | |
562 | }; | |
563 | ||
564 | /* The channel block contains options pertaining to channels */ | |
565 | channel { | |
566 | /* invex: Enable/disable channel mode +I, a n!u@h list of masks | |
567 | * that can join a +i channel without an invite. | |
568 | */ | |
569 | use_invex = yes; | |
570 | ||
571 | /* except: Enable/disable channel mode +e, a n!u@h list of masks | |
572 | * that can join a channel through a ban (+b). | |
573 | */ | |
574 | use_except = yes; | |
575 | ||
576 | /* forward: Enable/disable channel mode +f, a channel to forward | |
577 | * users to if they can't join because of +i etc. | |
578 | */ | |
579 | use_forward = yes; | |
580 | ||
581 | /* knock: Allows users to request an invite to a channel that | |
582 | * is locked somehow (+ikl). If the channel is +p or you are banned | |
583 | * the knock will not be sent. | |
584 | */ | |
585 | use_knock = yes; | |
586 | ||
587 | /* knock delay: The amount of time a user must wait between issuing | |
588 | * the knock command. | |
589 | */ | |
590 | knock_delay = 5 minutes; | |
591 | ||
592 | /* knock channel delay: How often a knock to any specific channel | |
593 | * is permitted, regardless of the user sending the knock. | |
594 | */ | |
595 | knock_delay_channel = 1 minute; | |
596 | ||
597 | /* max chans: The maximum number of channels a user can join/be on. */ | |
598 | max_chans_per_user = 15; | |
599 | ||
600 | /* max bans: maximum number of +b/e/I/q modes in a channel */ | |
601 | max_bans = 25; | |
602 | ||
603 | /* max bans: maximum number of +b/e/I/q modes in a +L channel */ | |
604 | max_bans_large = 500; | |
605 | ||
606 | /* splitcode: split users, split servers and either no join on split | |
607 | * or no create on split must be enabled for split checking. | |
608 | * splitmode will be entered on either split users or split servers | |
609 | * dropping below the limit. | |
610 | * | |
611 | * you may force splitmode to be permanent by /quote set splitmode on | |
612 | */ | |
613 | ||
614 | /* split users: when the usercount is lower than this level, consider | |
615 | * ourselves split. this must be set for automatic splitmode | |
616 | */ | |
617 | default_split_user_count = 0; | |
618 | ||
619 | /* split servers: when the amount of servers that have acknowledged | |
620 | * theyve finished bursting is lower than this, consider ourselves | |
621 | * split. this must be set for automatic splitmode | |
622 | */ | |
623 | default_split_server_count = 0; | |
624 | ||
625 | /* split: no create: disallow users creating channels on split */ | |
626 | no_create_on_split = no; | |
627 | ||
628 | /* split: no join: disallow users joining channels at all on a split */ | |
629 | no_join_on_split = no; | |
630 | ||
631 | /* burst topicwho: when bursting topics, also burst the topic setter */ | |
632 | burst_topicwho = yes; | |
633 | ||
634 | /* kick on split riding: kick users riding splits to join +i or +k | |
635 | * channels. more precisely, if a bursting server sends an SJOIN | |
636 | * for a channel with a lower TS with either a +i mode or a +k | |
637 | * mode with a different key, kick all local users. | |
638 | * | |
639 | * note: this does not take +r, +b, +e and +I into account. | |
640 | * | |
641 | * warning: if there are any TS5 servers on the network, this | |
642 | * will cause ban desyncs if they send such an SJOIN and the | |
643 | * splitriders added any bans (our side will lose them, the TS5 | |
644 | * side will accept them). we will send a notice to the channel | |
645 | * if this happens. most services do not send such SJOINs but | |
646 | * ratbox-services does. | |
647 | */ | |
648 | kick_on_split_riding = no; | |
649 | }; | |
650 | ||
651 | ||
652 | /* The serverhide block contains the options regarding serverhiding */ | |
653 | serverhide { | |
654 | /* flatten links: this option will show all servers in /links appear | |
655 | * that they are linked to this current server | |
656 | */ | |
657 | flatten_links = no; | |
658 | ||
659 | /* links delay: how often to update the links file when it is | |
660 | * flattened. | |
661 | */ | |
662 | links_delay = 5 minutes; | |
663 | ||
664 | /* hidden: hide this server from a /links output on servers that | |
665 | * support it. this allows hub servers to be hidden etc. | |
666 | */ | |
667 | hidden = no; | |
668 | ||
669 | /* disable hidden: prevent servers hiding themselves from a | |
670 | * /links ouput. | |
671 | */ | |
672 | disable_hidden = no; | |
673 | }; | |
674 | ||
675 | /* These are the blacklist settings. | |
676 | * You can have multiple combinations of host and rejection reasons. | |
677 | * They are used in pairs of one host/rejection reason, or multiple hosts/rejection reason. | |
678 | * | |
679 | * These settings should be adequate for most networks, and are (presently) | |
680 | * required for use on AthemeNet. | |
681 | * | |
682 | * Word to the wise: Do not use blacklists like SPEWS for blocking IRC | |
683 | * connections. | |
684 | * | |
685 | * As of charybdis 2.2, you can do some keyword substitution on the rejection | |
686 | * reason. The available keyword substitutions are: | |
687 | * | |
688 | * ${ip} - the user's IP | |
689 | * ${host} - the user's canonical hostname | |
690 | * ${dnsbl-host} - the dnsbl hostname the lookup was done against | |
691 | * ${nick} - the user's nickname | |
692 | * ${network-name} - the name of the network | |
693 | * | |
694 | * Note: AHBL (the providers of the below *.ahbl.org BLs) request that they be | |
695 | * contacted, via email, at admins@2mbit.com before using these BLs. | |
696 | * See <http://www.ahbl.org/services.php> for more information. | |
697 | */ | |
698 | blacklist { | |
699 | host = "dnsbl.dronebl.org"; | |
700 | reject_reason = "${nick}, your IP (${ip}) is listed in DroneBL. For assistance, see http://dronebl.org/lookup_branded.do?ip=${ip}&network=${network-name}"; | |
701 | ||
702 | # host = "ircbl.ahbl.org"; | |
703 | # 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."; | |
704 | # | |
705 | # host = "tor.ahbl.org"; | |
706 | # 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."; | |
707 | }; | |
708 | ||
709 | /* | |
710 | * Alias blocks allow you to define custom commands. (Old m_sshortcut.c) | |
711 | * They send PRIVMSG to the given target. A real command takes | |
712 | * precedence above an alias. | |
713 | */ | |
714 | alias "NickServ" { | |
715 | /* the name must go above */ | |
716 | ||
717 | /* target: the target nick (must be a network service) or | |
718 | * user@server (cannot be this server, only opers can use | |
719 | * user starting with "opers" reliably, interpreted on the target | |
720 | * server only so you may need to use nick@server instead) | |
721 | */ | |
722 | target = "NickServ"; | |
723 | }; | |
724 | ||
725 | alias "ChanServ" { | |
726 | target = "ChanServ"; | |
727 | }; | |
728 | ||
729 | alias "OperServ" { | |
730 | target = "OperServ"; | |
731 | }; | |
732 | ||
733 | alias "MemoServ" { | |
734 | target = "MemoServ"; | |
735 | }; | |
736 | ||
737 | alias "NS" { | |
738 | target = "NickServ"; | |
739 | }; | |
740 | ||
741 | alias "CS" { | |
742 | target = "ChanServ"; | |
743 | }; | |
744 | ||
745 | alias "OS" { | |
746 | target = "OperServ"; | |
747 | }; | |
748 | ||
749 | alias "MS" { | |
750 | target = "MemoServ"; | |
751 | }; | |
752 | ||
753 | /* The general block contains many of the options that were once compiled | |
754 | * in options in config.h. The general block is read at start time. | |
755 | */ | |
756 | general { | |
757 | /* hide error messages: defines whether error messages from | |
758 | * servers are hidden or not. These can sometimes contain IPs and | |
759 | * can have an adverse effect on server ip hiding. Set to: | |
760 | * yes: hide from opers and admin | |
761 | * opers: hide from opers only | |
762 | * no: do not hide error messages | |
763 | */ | |
764 | hide_error_messages = opers; | |
765 | ||
766 | /* hide spoof ips: hide the real ips of auth{} spoofed users | |
767 | * If disabled, local opers can see them. | |
768 | * Dynamic spoofs (e.g. set by services) are unaffected by this; | |
769 | * any oper (local and remote) can see the real ip. | |
770 | * Warning: for whowas, this is checked when the client exits, | |
771 | * not when the IP is shown. | |
772 | */ | |
773 | hide_spoof_ips = yes; | |
774 | ||
775 | /* default umodes: umodes to set upon connection | |
776 | * If you have enabled the ip_cloaking extension, and you wish for | |
777 | * incoming clients to be set +h upon connection, add +h to the umode | |
778 | * string below. | |
779 | */ | |
780 | default_umodes = "+i"; | |
781 | ||
782 | /* default operstring: defines the default oper response | |
783 | * in /whois queries, eg "is an IRC Operator". | |
784 | * After startup use /quote set operstring to change. | |
785 | */ | |
786 | default_operstring = "is an IRC Operator"; | |
787 | ||
788 | /* default adminstring: defines the default admin response | |
789 | * in /whois queries, eg "is a Server Administrator". | |
790 | * After startup use /quote set adminstring to change. | |
791 | */ | |
792 | default_adminstring = "is a Server Administrator"; | |
793 | ||
794 | /* servicestring: defines the response for opered services (+S) | |
795 | * in /whois queries, eg "is a Network Service". | |
796 | * This is updated on rehash. | |
797 | */ | |
798 | servicestring = "is a Network Service"; | |
799 | ||
800 | /* disable fake channels: disable local users joining fake versions | |
801 | * of channels, eg #foo^B^B. Disables bold, mirc colour, reverse, | |
802 | * underline and hard space. (ASCII 2, 3, 22, 31, 160 respectively). | |
803 | */ | |
804 | disable_fake_channels = no; | |
805 | ||
806 | /* tkline_expire_notices: give a notice to opers when a tkline | |
807 | * expires | |
808 | */ | |
809 | tkline_expire_notices = no; | |
810 | ||
811 | /* floodcount: the default value of floodcount that is configurable | |
812 | * via /quote set floodcount. This is the amount of lines a user | |
813 | * may send to any other user/channel in one second. | |
814 | */ | |
815 | default_floodcount = 10; | |
816 | ||
817 | /* failed oper notice: send a notice to all opers on the server when | |
818 | * someone tries to OPER and uses the wrong password, host or ident. | |
819 | */ | |
820 | failed_oper_notice = yes; | |
821 | ||
822 | /* dots in ident: the amount of '.' characters permitted in an ident | |
823 | * reply before the user is rejected. | |
824 | */ | |
825 | dots_in_ident=2; | |
826 | ||
827 | /* dot in ipv6: ircd-hybrid-6.0 and earlier will disallow hosts | |
828 | * without a '.' in them. this will add one to the end. only needed | |
829 | * for older servers. | |
830 | */ | |
831 | dot_in_ip6_addr = no; | |
832 | ||
833 | /* min nonwildcard: the minimum non wildcard characters in k/d/g lines | |
834 | * placed via the server. klines hand placed are exempt from limits. | |
835 | * wildcard chars: '.' '*' '?' '@' | |
836 | */ | |
837 | min_nonwildcard = 4; | |
838 | ||
839 | /* min nonwildcard simple: the minimum non wildcard characters in | |
840 | * xlines/resvs placed via the server. | |
841 | * wildcard chars: '*' '?' | |
842 | */ | |
843 | min_nonwildcard_simple = 3; | |
844 | ||
845 | /* max accept: maximum allowed /accept's for +g usermode */ | |
846 | max_accept = 20; | |
847 | ||
848 | /* max monitor: the maximum amount of nicknames a client may have in | |
849 | * their monitor (server-side notify) list. | |
850 | */ | |
851 | max_monitor = 100; | |
852 | ||
853 | /* nick flood: enable the nickflood control code */ | |
854 | anti_nick_flood = yes; | |
855 | ||
856 | /* nick flood: the nick changes allowed in the specified period */ | |
857 | max_nick_time = 20 seconds; | |
858 | max_nick_changes = 5; | |
859 | ||
860 | /* anti spam time: the minimum time a user must be connected before | |
861 | * custom quit messages are allowed. | |
862 | */ | |
863 | anti_spam_exit_message_time = 5 minutes; | |
864 | ||
865 | /* ts delta: the time delta allowed between server clocks before | |
866 | * a warning is given, or before the link is dropped. all servers | |
867 | * should run ntpdate/rdate to keep clocks in sync | |
868 | */ | |
869 | ts_warn_delta = 30 seconds; | |
870 | ts_max_delta = 5 minutes; | |
871 | ||
872 | /* client exit: prepend a users quit message with "Client exit: " */ | |
873 | client_exit = yes; | |
874 | ||
875 | /* collision fnc: change user's nick to their UID instead of | |
876 | * killing them, if possible. This setting only applies to nick | |
877 | * collisions detected on this server. Only enable this if | |
878 | * all servers on the network allow remote nicks to start with | |
879 | * a digit. | |
880 | */ | |
881 | collision_fnc = yes; | |
882 | ||
883 | /* global snotices: send out certain snotices (most +b, +f, +y, | |
884 | * some +s) to other servers via ENCAP SNOTE. Received SNOTEs are | |
885 | * displayed unconditionally. | |
886 | */ | |
887 | global_snotices = yes; | |
888 | ||
889 | /* dline reason: show the user the dline reason when they connect | |
890 | * and are dlined. | |
891 | */ | |
892 | dline_with_reason = yes; | |
893 | ||
894 | /* kline delay: delay the checking of klines until a specified time. | |
895 | * Useful if large kline lists are applied often to prevent the | |
896 | * server eating CPU. | |
897 | */ | |
898 | kline_delay = 0 seconds; | |
899 | ||
900 | /* kline reason: show the user the reason why they are k/d/glined | |
901 | * on exit. may give away who set k/dline when set via tcm. | |
902 | */ | |
903 | kline_with_reason = yes; | |
904 | ||
905 | /* kline reason: make the users quit message on channels this | |
906 | * reason instead of the oper's reason. | |
907 | */ | |
908 | kline_reason = "Connection closed"; | |
909 | ||
910 | /* identify to services via server password | |
911 | * if auth{} block had no password but the user specified a | |
912 | * server password anyway, send a PRIVMSG to <identify_service> | |
913 | * with as text <identify_command> <password>. | |
914 | */ | |
915 | identify_service = "NickServ@services.int"; | |
916 | identify_command = "IDENTIFY"; | |
917 | ||
918 | /* non redundant klines: flag and ignore redundant klines */ | |
919 | non_redundant_klines = yes; | |
920 | ||
921 | /* warn no nline: warn opers about servers that try to connect but | |
922 | * we dont have a connect {} block for. Twits with misconfigured | |
923 | * servers can get really annoying with this enabled. | |
924 | */ | |
925 | warn_no_nline = yes; | |
926 | ||
927 | /* stats e disabled: disable stats e. useful if server ips are | |
928 | * exempted and you dont want them listing on irc. | |
929 | */ | |
930 | stats_e_disabled = no; | |
931 | ||
932 | /* stats c oper only: make stats c (connect {}) oper only */ | |
933 | stats_c_oper_only=no; | |
934 | ||
935 | /* stats h oper only: make stats h (hub_mask/leaf_mask) oper only */ | |
936 | stats_h_oper_only=no; | |
937 | ||
938 | /* stats y oper only: make stats y (class {}) oper only */ | |
939 | stats_y_oper_only=no; | |
940 | ||
941 | /* stats o oper only: make stats o (opers) oper only */ | |
942 | stats_o_oper_only=yes; | |
943 | ||
944 | /* stats P oper only: make stats P (ports) oper only | |
945 | * NOTE: users doing stats P will never be given the ips that the | |
946 | * server listens on, simply the ports. | |
947 | */ | |
948 | stats_P_oper_only=no; | |
949 | ||
950 | /* stats i oper only: make stats i (auth {}) oper only. set to: | |
951 | * yes: show users no auth blocks, made oper only. | |
952 | * masked: show users first matching auth block | |
953 | * no: show users all auth blocks. | |
954 | */ | |
955 | stats_i_oper_only=masked; | |
956 | ||
957 | /* stats k/K oper only: make stats k/K (klines) oper only. set to: | |
958 | * yes: show users no auth blocks, made oper only | |
959 | * masked: show users first matching auth block | |
960 | * no: show users all auth blocks. | |
961 | */ | |
962 | stats_k_oper_only=masked; | |
963 | ||
964 | /* map oper only: make /map oper only */ | |
965 | map_oper_only = no; | |
966 | ||
967 | /* operspy admin only: make operspy notices to +Z admin only */ | |
968 | operspy_admin_only = no; | |
969 | ||
970 | /* operspy dont care user info: treat /who mask as if there was | |
971 | * an '!' always; do not log or server notice about operspy | |
972 | * /who mask, /masktrace and /scan. channel information is still | |
973 | * protected. */ | |
974 | operspy_dont_care_user_info = no; | |
975 | ||
976 | /* caller id wait: time between notifying a +g user that somebody | |
977 | * is messaging them. | |
978 | */ | |
979 | caller_id_wait = 1 minute; | |
980 | ||
981 | /* pace wait simple: time between use of less intensive commands | |
982 | * (HELP, remote WHOIS, WHOWAS) | |
983 | */ | |
984 | pace_wait_simple = 1 second; | |
985 | ||
986 | /* pace wait: time between more intensive commands | |
987 | * (ADMIN, INFO, LIST, LUSERS, MOTD, STATS, VERSION) | |
988 | */ | |
989 | pace_wait = 10 seconds; | |
990 | ||
991 | /* short motd: send clients a notice telling them to read the motd | |
992 | * instead of forcing a motd to clients who may simply ignore it. | |
993 | */ | |
994 | short_motd = no; | |
995 | ||
996 | /* ping cookies: require clients to respond exactly to a ping command, | |
997 | * can help block certain types of drones and FTP PASV mode spoofing. | |
998 | */ | |
999 | ping_cookie = no; | |
1000 | ||
1001 | /* connect timeout: sets how long we should wait for a connection | |
1002 | * request to succeed | |
1003 | */ | |
1004 | connect_timeout = 30 seconds; | |
1005 | ||
1006 | /* disable auth: disables identd checking */ | |
1007 | disable_auth = no; | |
1008 | ||
1009 | /* no oper flood: increase flood limits for opers. */ | |
1010 | no_oper_flood = yes; | |
1011 | ||
1012 | /* glines: enable glines, network wide temp klines */ | |
1013 | glines = no; | |
1014 | ||
1015 | /* gline time: the amount of time a gline will remain before expiring */ | |
1016 | gline_time = 1 day; | |
1017 | ||
1018 | /* gline_min_cidr: If using a CIDR gline, the minimum length the | |
1019 | * mask must be | |
1020 | */ | |
1021 | gline_min_cidr = 16; | |
1022 | ||
1023 | /* idletime: the maximum amount of time a user may idle before | |
1024 | * they are disconnected | |
1025 | */ | |
1026 | idletime = 0; | |
1027 | ||
1028 | /* REMOVE ME. The following line checks you've been reading. */ | |
1029 | havent_read_conf = yes; | |
1030 | ||
1031 | /* max targets: the maximum amount of targets in a single | |
1032 | * PRIVMSG/NOTICE. set to 999 NOT 0 for unlimited. | |
1033 | */ | |
1034 | max_targets = 4; | |
1035 | ||
1036 | /* client flood: maximum number of lines in a clients queue before | |
1037 | * they are dropped for flooding. | |
1038 | */ | |
1039 | client_flood = 20; | |
1040 | ||
1041 | /* use_whois_actually: send clients requesting a whois a numeric | |
1042 | * giving the real IP of non-spoofed clients to prevent DNS abuse. | |
1043 | */ | |
1044 | use_whois_actually = yes; | |
1045 | ||
1046 | /* usermodes configurable: a list of usermodes for the options below | |
1047 | * | |
1048 | * +g - callerid - Server Side Ignore | |
1049 | * +D - deaf - Don't see channel messages | |
1050 | * +i - invisible - Not shown in NAMES or WHO unless you share a | |
1051 | * a channel | |
1052 | * +l - locops - See LOCOPS messages | |
1053 | * +Q - noforward - Unaffected by channel forwarding | |
1054 | * +R - regonlymsg - No messages from unindentified | |
1055 | * +s - servnotice - See server notices | |
1056 | * +w - wallop - See oper and server generated WALLOPS | |
1057 | * +z - operwall - See operwalls | |
1058 | */ | |
1059 | ||
1060 | /* oper only umodes: usermodes only opers may set */ | |
1061 | oper_only_umodes = operwall, locops, servnotice; | |
1062 | ||
1063 | /* oper umodes: default usermodes opers get when they /oper */ | |
1064 | oper_umodes = locops, servnotice, operwall, wallop; | |
1065 | ||
1066 | /* oper snomask: default snomask opers get when they /oper, | |
1067 | * provided they have umode +s set */ | |
1068 | oper_snomask = "+s"; | |
1069 | ||
1070 | /* servlink path: path to 'servlink' program used by ircd to handle | |
1071 | * encrypted/compressed server <-> server links. | |
1072 | * | |
1073 | * only define if servlink is not in same directory as ircd itself. | |
1074 | */ | |
1075 | #servlink_path = "/usr/local/ircd/bin/servlink"; | |
1076 | ||
1077 | /* use egd: if your system does not have *random devices yet you | |
1078 | * want to use OpenSSL and encrypted links, enable this. Beware - | |
1079 | * EGD is *very* CPU intensive when gathering data for its pool | |
1080 | */ | |
1081 | #use_egd = yes; | |
1082 | ||
1083 | /* egdpool path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7 | |
1084 | * which automatically finds the path. | |
1085 | */ | |
1086 | #egdpool_path = "/var/run/egd-pool"; | |
1087 | ||
1088 | ||
1089 | /* compression level: level of compression for compressed links between | |
1090 | * servers. | |
1091 | * | |
1092 | * values are between: 1 (least compression, fastest) | |
1093 | * and: 9 (most compression, slowest). | |
1094 | */ | |
1095 | #compression_level = 6; | |
1096 | ||
1097 | /* burst_away: This enables bursting away messages to servers. | |
1098 | * With this disabled, we will only propogate AWAY messages | |
1099 | * as users send them, but never burst them. Be warned though | |
1100 | * enabling this could increase the size of a burst significantly | |
1101 | * for a large network, like EFnet. | |
1102 | */ | |
1103 | burst_away = yes; | |
1104 | ||
1105 | /* nick delay: This locks nicks of split clients for the given time | |
1106 | * or until a remote client uses the nick. This significantly | |
1107 | * reduces nick collisions on short splits but it can be annoying. | |
1108 | * To make things as fair as possible, this should be the same on | |
1109 | * all servers. If you enable this, the suggested value is 15 minutes. | |
1110 | */ | |
1111 | nick_delay = 0 seconds; | |
1112 | ||
1113 | /* reject time: the amount of rejections through klines/dlines etc | |
1114 | * allowed in the given time before the rejection is cached and | |
1115 | * a pseudo temp dline is placed | |
1116 | */ | |
1117 | reject_ban_time = 1 minute; | |
1118 | reject_after_count = 3; | |
1119 | ||
1120 | /* reject duration: the amount of time to cache the rejection */ | |
1121 | reject_duration = 5 minutes; | |
1122 | ||
1123 | /* max_unknown_ip: maximum number of pending connections to the server | |
1124 | * that are allowed per IP address | |
1125 | */ | |
1126 | max_unknown_ip = 2; | |
1127 | }; | |
1128 | ||
1129 | modules { | |
1130 | /* module path: paths to search for modules specified below and | |
1131 | * in /modload. | |
1132 | */ | |
1133 | path = "/usr/local/ircd/modules"; | |
1134 | path = "/usr/local/ircd/modules/autoload"; | |
1135 | ||
1136 | /* module: the name of a module to load on startup/rehash */ | |
1137 | #module = "some_module.so"; | |
1138 | }; |