]>
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 3582 2007-11-17 21:55:48Z jilles $ | |
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 | * privset {} blocks MUST be specified before anything that uses them. That | |
22 | * means they must be defined before operator {}. | |
23 | * | |
24 | * Both shell style (#) and C style comments are supported. | |
25 | * | |
26 | * Files may be included by either: | |
27 | * .include "filename" | |
28 | * .include <filename> | |
29 | * | |
30 | * Times/durations are written as: | |
31 | * 12 hours 30 minutes 1 second | |
32 | * | |
33 | * Valid units of time: | |
34 | * month, week, day, hour, minute, second | |
35 | * | |
36 | * Valid units of size: | |
37 | * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte | |
38 | * | |
39 | * Sizes and times may be singular or plural. | |
40 | */ | |
41 | ||
42 | /* Extensions: | |
43 | * | |
44 | * Charybdis contains several extensions that are not enabled by default. | |
45 | * To use them, uncomment the lines below. | |
46 | * | |
47 | * Channel mode +-A (admin only) -- chm_adminonly.so | |
48 | * Channel mode +-O (oper only) -- chm_operonly.so | |
49 | * Channel mode +-S (ssl only) -- chm_sslonly.so | |
50 | * Emulates channel mode +-O (oper only) (+-iI $o) -- chm_operonly_compat.so | |
51 | * Emulates channel mode +-R (quiet unreg) (+-q $~a) -- chm_quietunreg_compat.so | |
52 | * Emulates channel mode +-S (ssl only) (+-b $~z) -- chm_sslonly_compat.so | |
53 | * Restrict channel creation to logged in users -- createauthonly.so | |
54 | * Account bans (+b $a[:mask]) -- extb_account.so | |
55 | * Banned from another channel (+b $j:mask) -- extb_canjoin.so | |
56 | * Other-channel bans (+b $c:mask) -- extb_channel.so | |
57 | * Combination extbans -- extb_combi.so | |
58 | * Extended ban (+b $x:mask) -- extb_extgecos.so | |
59 | * Hostmask bans (for combination extbans) -- extb_hostmask.so | |
60 | * Oper bans (+b $o) -- extb_oper.so | |
61 | * Realname (gecos) bans (+b $r:mask) -- extb_realname.so | |
62 | * Server bans (+b $s:mask) -- extb_server.so | |
63 | * SSL bans (+b $z) -- extb_ssl.so | |
64 | * HURT system -- hurt.so | |
65 | * New host mangling (umode +x) -- ip_cloaking_4.0.so | |
66 | * Old host mangling (umode +h) -- ip_cloaking.so | |
67 | * Find channel forwards -- m_findforwards.so | |
68 | * /identify support -- m_identify.so | |
69 | * Opers cannot be invisible (umode +i) -- no_oper_invis.so | |
70 | * Far connection notices (snomask +F) -- sno_farconnect.so | |
71 | * Remote k/d/x line active notices -- sno_globalkline.so | |
72 | * Remote oper up notices -- sno_globaloper.so | |
73 | * /whois notifications (snomask +W) -- sno_whois.so | |
74 | * Oper-override (modehacking only) -- override.so | |
75 | * Stop services kills -- no_kill_services.so | |
76 | */ | |
77 | #loadmodule "extensions/chm_adminonly.so"; | |
78 | #loadmodule "extensions/chm_operonly.so"; | |
79 | #loadmodule "extensions/chm_sslonly.so"; | |
80 | #loadmodule "extensions/chm_operonly_compat.so"; | |
81 | #loadmodule "extensions/chm_quietunreg_compat.so"; | |
82 | #loadmodule "extensions/chm_sslonly_compat.so"; | |
83 | #loadmodule "extensions/createauthonly.so"; | |
84 | #loadmodule "extensions/extb_account.so"; | |
85 | #loadmodule "extensions/extb_canjoin.so"; | |
86 | #loadmodule "extensions/extb_channel.so"; | |
87 | #loadmodule "extensions/extb_combi.so"; | |
88 | #loadmodule "extensions/extb_extgecos.so"; | |
89 | #loadmodule "extensions/extb_hostmask.so"; | |
90 | #loadmodule "extensions/extb_oper.so"; | |
91 | #loadmodule "extensions/extb_realname.so"; | |
92 | #loadmodule "extensions/extb_server.so"; | |
93 | #loadmodule "extensions/extb_ssl.so"; | |
94 | #loadmodule "extensions/hurt.so"; | |
95 | #loadmodule "extensions/ip_cloaking_4.0.so"; | |
96 | #loadmodule "extensions/ip_cloaking.so"; | |
97 | #loadmodule "extensions/m_findforwards.so"; | |
98 | #loadmodule "extensions/m_identify.so"; | |
99 | #loadmodule "extensions/no_oper_invis.so"; | |
100 | #loadmodule "extensions/sno_farconnect.so"; | |
101 | #loadmodule "extensions/sno_globalkline.so"; | |
102 | #loadmodule "extensions/sno_globaloper.so"; | |
103 | #loadmodule "extensions/sno_whois.so"; | |
104 | #loadmodule "extensions/override.so"; | |
105 | #loadmodule "extensions/no_kill_services.so"; | |
106 | ||
107 | /* serverinfo {}: Contains information about the server. (OLD M:) */ | |
108 | serverinfo { | |
109 | /* name: the name of our server */ | |
110 | name = "hades.arpa"; | |
111 | ||
112 | /* sid: the unique server id of our server. This must be three | |
113 | * characters long. The first character must be a digit [0-9], the | |
114 | * remaining two chars may be letters [A-Z] or digits [0-9]. | |
115 | * | |
116 | * This parameter must be specified for the server to start. | |
117 | */ | |
118 | sid = "42X"; | |
119 | ||
120 | /* description: the description of our server. '[' and ']' may not | |
121 | * be used here for compatibility with older servers. | |
122 | */ | |
123 | description = "charybdis test server"; | |
124 | ||
125 | /* network info: the name and description of the network this server | |
126 | * is on. Shown in the 005 reply and used with serverhiding. | |
127 | */ | |
128 | network_name = "MyNet"; | |
129 | ||
130 | /* hub: allow this server to act as a hub and have multiple servers | |
131 | * connected to it. | |
132 | */ | |
133 | hub = no; | |
134 | ||
135 | /* vhost: the IP to bind to when we connect outward to ipv4 servers. | |
136 | * This should be an ipv4 IP only. | |
137 | */ | |
138 | #vhost = "192.0.2.6"; | |
139 | ||
140 | /* vhost6: the IP to bind to when we connect outward to ipv6 servers. | |
141 | * This should be an ipv6 IP only. | |
142 | */ | |
143 | #vhost6 = "2001:db7:2::6"; | |
144 | ||
145 | /* ssl_private_key: our ssl private key */ | |
146 | ssl_private_key = "etc/ssl.key"; | |
147 | ||
148 | /* ssl_cert: certificate for our ssl server */ | |
149 | ssl_cert = "etc/ssl.pem"; | |
150 | ||
151 | /* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 1024 */ | |
152 | ssl_dh_params = "etc/dh.pem"; | |
153 | ||
154 | /* ssl_cipher_list: A list of ciphers, dependent on your TLS backend */ | |
155 | #ssl_cipher_list = "EECDH+HIGH:EDH+HIGH:HIGH:!aNULL"; | |
156 | ||
157 | /* ssld_count: number of ssld processes you want to start, if you | |
158 | * have a really busy server, using N-1 where N is the number of | |
159 | * cpu/cpu cores you have might be useful. A number greater than one | |
160 | * can also be useful in case of bugs in ssld and because ssld needs | |
161 | * two file descriptors per SSL connection. | |
162 | */ | |
163 | ssld_count = 1; | |
164 | ||
165 | /* default max clients: the default maximum number of clients | |
166 | * allowed to connect. This can be changed once ircd has started by | |
167 | * issuing: | |
168 | * /quote set maxclients <limit> | |
169 | */ | |
170 | default_max_clients = 1024; | |
171 | ||
172 | /* nicklen: enforced nickname length (for this server only; must not | |
173 | * be longer than the maximum length set while building). | |
174 | */ | |
175 | nicklen = 30; | |
176 | }; | |
177 | ||
178 | /* admin {}: contains admin information about the server. (OLD A:) */ | |
179 | admin { | |
180 | name = "Smurf target"; | |
181 | description = "Main Server Administrator"; | |
182 | email = "<syn@packets.r.us>"; | |
183 | }; | |
184 | ||
185 | /* log {}: contains information about logfiles. */ | |
186 | log { | |
187 | /* logfiles: the logfiles to use for specific activity. if these | |
188 | * paths are defined, then ircd will log to them, otherwise it wont. | |
189 | * | |
190 | * The confs are, in order: | |
191 | * - userlog: user exits | |
192 | * - fuserlog: failed user connections | |
193 | * - operlog: /oper usage | |
194 | * - foperlog: failed /oper usage | |
195 | * - serverlog: server connects/disconnects | |
196 | * - klinelog: klines, etc | |
197 | * - killlog: kills | |
198 | * - operspylog: operspy usage | |
199 | * - ioerrorlog: IO errors | |
200 | */ | |
201 | fname_userlog = "logs/userlog"; | |
202 | #fname_fuserlog = "logs/fuserlog"; | |
203 | fname_operlog = "logs/operlog"; | |
204 | #fname_foperlog = "logs/foperlog"; | |
205 | fname_serverlog = "logs/serverlog"; | |
206 | #fname_klinelog = "logs/klinelog"; | |
207 | fname_killlog = "logs/killlog"; | |
208 | fname_operspylog = "logs/operspylog"; | |
209 | #fname_ioerrorlog = "logs/ioerror"; | |
210 | }; | |
211 | ||
212 | /* class {}: contain information about classes for users (OLD Y:) */ | |
213 | class "users" { | |
214 | /* class name must go above */ | |
215 | ||
216 | /* ping time: how often a client must reply to a PING from the | |
217 | * server before they are dropped. | |
218 | */ | |
219 | ping_time = 2 minutes; | |
220 | ||
221 | /* number per ident: the number of users per user@host networkwide | |
222 | * allowed to connect. Unidented connections are classified as | |
223 | * the same ident. | |
224 | */ | |
225 | number_per_ident = 2; | |
226 | ||
227 | /* number per ip: the number of local users per host allowed */ | |
228 | number_per_ip = 3; | |
229 | ||
230 | /* number per ip global: the number of network wide connections | |
231 | * per host allowed for a user, including connections to the | |
232 | * local server. | |
233 | */ | |
234 | number_per_ip_global = 5; | |
235 | ||
236 | /* cidr_ipv4_bitlen: Limits numbers of connections from a subnet size | |
237 | */ | |
238 | cidr_ipv4_bitlen = 24; | |
239 | ||
240 | /* cidr_ipv6_bitlen: Limits numbers of connections from a subnet size | |
241 | * the following example makes the subnet /64 this is useful | |
242 | * for IPv6 connections in particular | |
243 | */ | |
244 | cidr_ipv6_bitlen = 64; | |
245 | ||
246 | /* number_per_cidr: Number of connections to allow from a subnet of the | |
247 | * size given in cidr_ipv4_bitlen/cidr_ipv6_bitlen. | |
248 | * 4 seems to be a good default to me. | |
249 | */ | |
250 | number_per_cidr = 4; | |
251 | ||
252 | /* max number: the maximum number of users allowed in this class */ | |
253 | max_number = 100; | |
254 | ||
255 | /* sendq: the amount of data allowed in a clients queue before | |
256 | * they are dropped. | |
257 | */ | |
258 | sendq = 100 kbytes; | |
259 | }; | |
260 | ||
261 | class "restricted" { | |
262 | ping_time = 1 minute 30 seconds; | |
263 | number_per_ip = 1; | |
264 | max_number = 100; | |
265 | sendq = 60kb; | |
266 | }; | |
267 | ||
268 | class "opers" { | |
269 | ping_time = 5 minutes; | |
270 | number_per_ip = 10; | |
271 | max_number = 100; | |
272 | sendq = 100kbytes; | |
273 | }; | |
274 | ||
275 | class "server" { | |
276 | ping_time = 5 minutes; | |
277 | ||
278 | /* connectfreq: only used in server classes. specifies the delay | |
279 | * between autoconnecting to servers. | |
280 | */ | |
281 | connectfreq = 5 minutes; | |
282 | ||
283 | /* max number: the amount of servers to autoconnect to. if the number | |
284 | * of servers in the class is or exceeds this, no more servers in the | |
285 | * class are autoconnected. oper initiated connects are unaffected. | |
286 | * this should usually be set to either 0 or 1. (autoconnecting from | |
287 | * hubs to leaves may cause leaves to function as hubs by having | |
288 | * multiple servers connected to them.) | |
289 | */ | |
290 | max_number = 1; | |
291 | ||
292 | /* sendq: servers need a higher sendq as they are sent more data */ | |
293 | sendq=2 megabytes; | |
294 | }; | |
295 | ||
296 | /* listen {}: contain information about the ports ircd listens on (OLD P:) */ | |
297 | listen { | |
298 | /* defer_accept: wait for clients to send IRC handshake data before | |
299 | * accepting them. if you intend to use software which depends on the | |
300 | * server replying first, such as BOPM, you should disable this feature. | |
301 | * otherwise, you probably want to leave it on. | |
302 | */ | |
303 | defer_accept = yes; | |
304 | ||
305 | /* port: the specific port to listen on. if no host is specified | |
306 | * before, it will listen on all available IPs. | |
307 | * | |
308 | * sslport: the specific port to listen ssl connections on. if no | |
309 | * host is specified before, it will listen on all available IPs. | |
310 | * | |
311 | * ports are seperated via a comma, a range may be specified using ".." | |
312 | */ | |
313 | ||
314 | /* port: listen on all available IPs, ports 5000 and 6665 to 6669 */ | |
315 | port = 5000, 6665 .. 6669; | |
316 | ||
317 | /* sslport: listen for ssl connections on all available IPs, port 9999 */ | |
318 | sslport = 9999; | |
319 | ||
320 | /* host: set a specific IP/host the ports after the line will listen | |
321 | * on. This may be ipv4 or ipv6. | |
322 | */ | |
323 | host = "192.0.2.6"; | |
324 | port = 7000, 7001; | |
325 | sslport = 9000, 9001; | |
326 | ||
327 | host = "2001:db8:2::6"; | |
328 | port = 7002; | |
329 | sslport = 9002; | |
330 | }; | |
331 | ||
332 | /* auth {}: allow users to connect to the ircd (OLD I:) */ | |
333 | auth { | |
334 | /* user: the user@host allowed to connect. Multiple IPv4/IPv6 user | |
335 | * lines are permitted per auth block. This is matched against the | |
336 | * hostname and IP address (using :: shortening for IPv6 and | |
337 | * prepending a 0 if it starts with a colon) and can also use CIDR | |
338 | * masks. | |
339 | */ | |
340 | user = "*@198.51.100.0/24"; | |
341 | user = "*test@2001:db8:1:*"; | |
342 | ||
343 | /* auth_user: This allows specifying a username:password instead of | |
344 | * just a password in PASS, so that a fixed user@host is not | |
345 | * necessary for a specific auth{} block. | |
346 | */ | |
347 | #auth_user = "SomeUser"; | |
348 | ||
349 | /* password: an optional password that is required to use this block. | |
350 | * By default this is not encrypted, specify the flag "encrypted" in | |
351 | * flags = ...; below if it is. | |
352 | */ | |
353 | password = "letmein"; | |
354 | ||
355 | /* spoof: fake the users user@host to be be this. You may either | |
356 | * specify a host or a user@host to spoof to. This is free-form, | |
357 | * just do everyone a favour and dont abuse it. (OLD I: = flag) | |
358 | */ | |
359 | spoof = "I.still.hate.packets"; | |
360 | ||
361 | /* Possible flags in auth: | |
362 | * | |
363 | * encrypted | password is encrypted with mkpasswd | |
364 | * spoof_notice | give a notice when spoofing hosts | |
365 | * exceed_limit (old > flag) | allow user to exceed class user limits | |
366 | * kline_exempt (old ^ flag) | exempt this user from k/g/xlines&dnsbls | |
367 | * dnsbl_exempt | exempt this user from dnsbls | |
368 | * spambot_exempt | exempt this user from spambot checks | |
369 | * shide_exempt | exempt this user from serverhiding | |
370 | * jupe_exempt | exempt this user from generating | |
371 | * warnings joining juped channels | |
372 | * resv_exempt | exempt this user from resvs | |
373 | * flood_exempt | exempt this user from flood limits | |
374 | * USE WITH CAUTION. | |
375 | * no_tilde (old - flag) | don't prefix ~ to username if no ident | |
376 | * need_ident (old + flag) | require ident for user in this class | |
377 | * need_ssl | require SSL/TLS for user in this class | |
378 | * need_sasl | require SASL id for user in this class | |
379 | */ | |
380 | flags = kline_exempt, exceed_limit; | |
381 | ||
382 | /* class: the class the user is placed in */ | |
383 | class = "opers"; | |
384 | }; | |
385 | ||
386 | auth { | |
387 | /* redirect: the server and port to redirect a user to. A user does | |
388 | * not have to obey the redirection, the ircd just suggests to them | |
389 | * an alternative server. | |
390 | */ | |
391 | redirserv = "irc.example.net"; | |
392 | redirport = 6667; | |
393 | ||
394 | user = "*.example.com"; | |
395 | ||
396 | /* class: a class is required even though it is not used */ | |
397 | class = "users"; | |
398 | }; | |
399 | ||
400 | auth { | |
401 | user = "*@*"; | |
402 | class = "users"; | |
403 | }; | |
404 | ||
405 | /* privset{}: defines operator privilege sets. */ | |
406 | privset "local_op" { | |
407 | /* privs: controls the activities and commands an oper is | |
408 | * allowed to do on the server | |
409 | * | |
410 | * Available options: | |
411 | * | |
412 | * oper:local_kill: allows local users to be /KILL'd | |
413 | * oper:global_kill: allows local and remote users to be /KILL'd | |
414 | * oper:routing: allows remote SQUIT and CONNECT | |
415 | * oper:kline: allows KLINE and DLINE | |
416 | * oper:unkline: allows UNKLINE and UNDLINE | |
417 | * snomask:nick_changes: allows oper to see nickchanges via snomask +n | |
418 | * oper:rehash: allows oper to REHASH config | |
419 | * oper:die: allows DIE and RESTART | |
420 | * oper:admin: gives admin privileges. admins | |
421 | * may (un)load modules and see various | |
422 | * additional information. | |
423 | * oper:hidden_admin: gives admin privileges except | |
424 | * will not have the admin lines in | |
425 | * whois. | |
426 | * oper:xline: allows use of /quote xline/unxline | |
427 | * oper:resv: allows /quote resv/unresv and cmode +LP | |
428 | * oper:operwall: allows the oper to send/receive operwalls | |
429 | * oper:spy: allows 'operspy' features to see through +s | |
430 | * channels etc. see /quote help operspy | |
431 | * oper:hidden: hides the oper from /stats p | |
432 | * oper:remoteban: allows remote kline etc | |
433 | * oper:mass_notice: allows sending wallops and mass notices | |
434 | */ | |
435 | privs = oper:local_kill, oper:operwall; | |
436 | }; | |
437 | ||
438 | privset "server_bot" { | |
439 | /* extends: a privset to inherit in this privset */ | |
440 | extends = "local_op"; | |
441 | privs = oper:kline, oper:remoteban, snomask:nick_changes; | |
442 | }; | |
443 | ||
444 | privset "global_op" { | |
445 | extends = "local_op"; | |
446 | privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline, | |
447 | oper:resv, oper:mass_notice, oper:remoteban; | |
448 | }; | |
449 | ||
450 | privset "admin" { | |
451 | extends = "global_op"; | |
452 | privs = oper:admin, oper:die, oper:rehash, oper:spy; | |
453 | }; | |
454 | ||
455 | /* operator {}: defines ircd operators. (OLD O:) */ | |
456 | operator "god" { | |
457 | /* name: the name of the oper must go above */ | |
458 | ||
459 | /* user: the user@host required for this operator. CIDR *is* | |
460 | * supported now. auth{} spoofs work here, other spoofs do not. | |
461 | * multiple user="" lines are supported. | |
462 | */ | |
463 | user = "*god@*"; | |
464 | user = "*@127.0.0.1"; | |
465 | ||
466 | /* password: the password required to oper. Unless ~encrypted is | |
467 | * contained in flags = ...; this will need to be encrypted using | |
468 | * mkpasswd, MD5 is supported | |
469 | */ | |
470 | password = "etcnjl8juSU1E"; | |
471 | ||
472 | /* rsa key: the public key for this oper when using Challenge. | |
473 | * A password should not be defined when this is used, see | |
474 | * doc/challenge.txt for more information. | |
475 | */ | |
476 | #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub"; | |
477 | ||
478 | /* fingerprint: if specified, the oper's client certificate | |
479 | * fingerprint will be checked against the specified fingerprint | |
480 | * below. | |
481 | */ | |
482 | #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b"; | |
483 | ||
484 | /* umodes: the specific umodes this oper gets when they oper. | |
485 | * If this is specified an oper will not be given oper_umodes | |
486 | * These are described above oper_only_umodes in general {}; | |
487 | */ | |
488 | #umodes = locops, servnotice, operwall, wallop; | |
489 | ||
490 | /* snomask: specific server notice mask on oper up. | |
491 | * If this is specified an oper will not be given oper_snomask. | |
492 | */ | |
493 | snomask = "+Zbfkrsuy"; | |
494 | ||
495 | /* flags: misc options for the operator. You may prefix an option | |
496 | * with ~ to disable it, e.g. ~encrypted. | |
497 | * | |
498 | * Default flags are encrypted. | |
499 | * | |
500 | * Available options: | |
501 | * | |
502 | * encrypted: the password above is encrypted [DEFAULT] | |
503 | * need_ssl: must be using SSL/TLS to oper up | |
504 | */ | |
505 | flags = encrypted; | |
506 | ||
507 | /* privset: privileges set to grant */ | |
508 | privset = "admin"; | |
509 | }; | |
510 | ||
511 | /* connect {}: controls servers we connect to (OLD C:, N:, H:, L:) */ | |
512 | connect "irc.uplink.com" { | |
513 | /* the name must go above */ | |
514 | ||
515 | /* host: the host or IP to connect to. If a hostname is used it | |
516 | * must match the reverse dns of the server. | |
517 | */ | |
518 | host = "203.0.113.3"; | |
519 | ||
520 | /* vhost: the host or IP to bind to for this connection. If this | |
521 | * is not specified, the default vhost (in serverinfo {}) is used. | |
522 | */ | |
523 | #vhost = "192.0.2.131"; | |
524 | ||
525 | /* passwords: the passwords we send (OLD C:) and accept (OLD N:). | |
526 | * The remote server will have these passwords reversed. | |
527 | */ | |
528 | send_password = "password"; | |
529 | accept_password = "anotherpassword"; | |
530 | ||
531 | /* fingerprint: if specified, the server's client certificate | |
532 | * fingerprint will be checked against the specified fingerprint | |
533 | * below. | |
534 | */ | |
535 | #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b"; | |
536 | ||
537 | /* port: the port to connect to this server on */ | |
538 | port = 6666; | |
539 | ||
540 | /* hub mask: the mask of servers that this server may hub. Multiple | |
541 | * entries are permitted | |
542 | */ | |
543 | hub_mask = "*"; | |
544 | ||
545 | /* leaf mask: the mask of servers this server may not hub. Multiple | |
546 | * entries are permitted. Useful for forbidding EU -> US -> EU routes. | |
547 | */ | |
548 | #leaf_mask = "*.uk"; | |
549 | ||
550 | /* class: the class this server is in */ | |
551 | class = "server"; | |
552 | ||
553 | /* flags: controls special options for this server | |
554 | * encrypted - marks the accept_password as being crypt()'d | |
555 | * autoconn - automatically connect to this server | |
556 | * compressed - compress traffic via ziplinks | |
557 | * topicburst - burst topics between servers | |
558 | * ssl - ssl/tls encrypted server connections | |
559 | */ | |
560 | flags = compressed, topicburst; | |
561 | }; | |
562 | ||
563 | connect "ipv6.some.server" { | |
564 | /* Hosts that are IPv6 addresses must be in :: shortened form | |
565 | * if applicable. Addresses starting with a colon get an extra | |
566 | * zero prepended, for example: 0::1 | |
567 | */ | |
568 | host = "2001:db8:3::8"; | |
569 | send_password = "password"; | |
570 | accept_password = "password"; | |
571 | port = 6666; | |
572 | ||
573 | /* aftype: controls whether the connection uses "ipv4" or "ipv6". | |
574 | * Default is ipv4. | |
575 | */ | |
576 | aftype = ipv6; | |
577 | class = "server"; | |
578 | }; | |
579 | ||
580 | connect "ssl.uplink.com" { | |
581 | /* Example of ssl server-to-server connection, ssl flag doesn't need | |
582 | * compressed flag, 'cause it uses own compression | |
583 | */ | |
584 | host = "203.0.113.129"; | |
585 | send_password = "password"; | |
586 | accept_password = "anotherpassword"; | |
587 | port = 9999; | |
588 | hub_mask = "*"; | |
589 | class = "server"; | |
590 | flags = ssl, topicburst; | |
591 | }; | |
592 | ||
593 | /* cluster {}; servers that we propagate things to automatically. | |
594 | * NOTE: This does NOT grant them privileges to apply anything locally, | |
595 | * you must add a seperate shared block for that. Clustering will | |
596 | * only be done for actions by LOCAL opers, that arent directed | |
597 | * remotely. | |
598 | */ | |
599 | cluster { | |
600 | /* name: the server to share with, this can be a wildcard and may be | |
601 | * stacked. | |
602 | */ | |
603 | /* flags: list of what to share, all the name lines above this (up | |
604 | * until another flags entry) will receive these flags. | |
605 | * | |
606 | * kline - share perm klines | |
607 | * tkline - share temp klines | |
608 | * unkline - share unklines | |
609 | * locops - share locops | |
610 | * xline - share perm xlines | |
611 | * txline - share temp xlines | |
612 | * unxline - share unxlines | |
613 | * resv - share perm resvs | |
614 | * tresv - share temp resvs | |
615 | * unresv - share unresvs | |
616 | * all - share all of the above | |
617 | */ | |
618 | ||
619 | /* share klines/unklines/xlines with *.lan */ | |
620 | name = "*.lan"; | |
621 | flags = kline, unkline, xline; | |
622 | ||
623 | /* share locops with irc.ircd-ratbox.org and ircd.ircd-ratbox.org */ | |
624 | name = "irc.ircd-ratbox.org"; | |
625 | name = "ircd.ircd-ratbox.org"; | |
626 | flags = locops; | |
627 | }; | |
628 | ||
629 | /* service{}: privileged servers (services). These servers have extra | |
630 | * privileges such as setting login names on users and introducing clients | |
631 | * with umode +S (unkickable, hide channels, etc). This does not allow them | |
632 | * to set bans, you need a separate shared{} for that. | |
633 | * Do not place normal servers here. | |
634 | * There may be only one service{} block. | |
635 | */ | |
636 | service { | |
637 | /* name: the server name. These may be stacked. */ | |
638 | name = "services.int"; | |
639 | }; | |
640 | ||
641 | /* shared {}: users that are allowed to place remote bans on our server. | |
642 | * NOTE: These are ordered top down. The first one the user@host and server | |
643 | * matches will be used. Their access will then be decided on that | |
644 | * block and will not fall back to another block that matches. | |
645 | */ | |
646 | shared { | |
647 | /* oper: the user@host and server the user must be on to set klines. | |
648 | * The first field must be a user@host, the second field is an | |
649 | * optional server. These may be stacked. | |
650 | */ | |
651 | /* flags: list of what to allow them to place, all the oper lines | |
652 | * above this (up until another flags entry) will receive these | |
653 | * flags. This *must* be present. | |
654 | * | |
655 | * kline - allow setting perm/temp klines | |
656 | * tkline - allow setting temp klines | |
657 | * unkline - allow removing klines | |
658 | * xline - allow setting perm/temp xlines | |
659 | * txline - allow setting temp xlines | |
660 | * unxline - allow removing xlines | |
661 | * resv - allow setting perm/temp resvs | |
662 | * tresv - allow setting temp resvs | |
663 | * unresv - allow removing xlines | |
664 | * all - allow oper/server to do all of above. | |
665 | * locops - allow locops - only used for servers who cluster | |
666 | * rehash - allow rehashing | |
667 | * dline - allow setting perm/temp dlines | |
668 | * tdline - allow setting temp dlines | |
669 | * undline - allow removing dlines | |
670 | * none - disallow everything | |
671 | */ | |
672 | ||
673 | /* allow flame@*.leeh.co.uk on server irc.ircd-ratbox.org and | |
674 | * allow leeh@*.leeh.co.uk on server ircd.ircd-ratbox.org to kline | |
675 | */ | |
676 | oper = "flame@*.leeh.co.uk", "irc.ircd-ratbox.org"; | |
677 | oper = "leeh@*.leeh.co.uk", "ircd.ircd-ratbox.org"; | |
678 | flags = kline; | |
679 | ||
680 | /* you may forbid certain opers/servers from doing anything */ | |
681 | oper = "irc@vanity.oper", "*"; | |
682 | oper = "*@*", "irc.vanity.server"; | |
683 | oper = "irc@another.vanity.oper", "bigger.vanity.server"; | |
684 | flags = none; | |
685 | ||
686 | /* or allow everyone to place temp klines */ | |
687 | oper = "*@*"; | |
688 | flags = tkline; | |
689 | }; | |
690 | ||
691 | /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */ | |
692 | exempt { | |
693 | ip = "192.0.2.0/24"; | |
694 | ||
695 | /* these may be stacked */ | |
696 | ip = "127.0.0.1"; | |
697 | }; | |
698 | ||
699 | /* The channel block contains options pertaining to channels */ | |
700 | channel { | |
701 | /* invex: Enable/disable channel mode +I, a n!u@h list of masks | |
702 | * that can join a +i channel without an invite. | |
703 | */ | |
704 | use_invex = yes; | |
705 | ||
706 | /* except: Enable/disable channel mode +e, a n!u@h list of masks | |
707 | * that can join a channel through a ban (+b). | |
708 | */ | |
709 | use_except = yes; | |
710 | ||
711 | /* forward: Enable/disable channel mode +f, a channel to forward | |
712 | * users to if they can't join because of +i etc. Also enables ban | |
713 | * forwarding, <mask>$<channel>. | |
714 | */ | |
715 | use_forward = yes; | |
716 | ||
717 | /* knock: Allows users to request an invite to a channel that | |
718 | * is locked somehow (+ikl). If the channel is +p or you are banned | |
719 | * the knock will not be sent. | |
720 | */ | |
721 | use_knock = yes; | |
722 | ||
723 | /* knock delay: The amount of time a user must wait between issuing | |
724 | * the knock command. | |
725 | */ | |
726 | knock_delay = 5 minutes; | |
727 | ||
728 | /* knock channel delay: How often a knock to any specific channel | |
729 | * is permitted, regardless of the user sending the knock. | |
730 | */ | |
731 | knock_delay_channel = 1 minute; | |
732 | ||
733 | /* max chans: The maximum number of channels a user can join/be on. */ | |
734 | max_chans_per_user = 15; | |
735 | ||
736 | /* max bans: maximum number of +b/e/I/q modes in a channel */ | |
737 | max_bans = 100; | |
738 | ||
739 | /* max bans: maximum number of +b/e/I/q modes in a +L channel */ | |
740 | max_bans_large = 500; | |
741 | ||
742 | /* splitcode: split users, split servers and either no join on split | |
743 | * or no create on split must be enabled for split checking. | |
744 | * splitmode will be entered on either split users or split servers | |
745 | * dropping below the limit. | |
746 | * | |
747 | * you may force splitmode to be permanent by /quote set splitmode on | |
748 | */ | |
749 | ||
750 | /* split users: when the usercount is lower than this level, consider | |
751 | * ourselves split. this must be set for automatic splitmode | |
752 | */ | |
753 | default_split_user_count = 0; | |
754 | ||
755 | /* split servers: when the amount of servers that have acknowledged | |
756 | * theyve finished bursting is lower than this, consider ourselves | |
757 | * split. this must be set for automatic splitmode | |
758 | */ | |
759 | default_split_server_count = 0; | |
760 | ||
761 | /* split: no create: disallow users creating channels on split */ | |
762 | no_create_on_split = no; | |
763 | ||
764 | /* split: no join: disallow users joining channels at all on a split */ | |
765 | no_join_on_split = no; | |
766 | ||
767 | /* burst topicwho: when bursting topics, also burst the topic setter */ | |
768 | burst_topicwho = yes; | |
769 | ||
770 | /* kick on split riding: kick users riding splits to join +i or +k | |
771 | * channels. more precisely, if a bursting server sends an SJOIN | |
772 | * for a channel with a lower TS with either a +i mode or a +k | |
773 | * mode with a different key, kick all local users. | |
774 | * | |
775 | * note: this does not take +r, +b, +e and +I into account. | |
776 | */ | |
777 | kick_on_split_riding = no; | |
778 | ||
779 | /* only ascii channels: disable local users joining channels | |
780 | * containing characters outside the range 33-126 (non-printable | |
781 | * or non-ASCII). | |
782 | */ | |
783 | only_ascii_channels = no; | |
784 | ||
785 | /* resv_forcepart: force any local users to part a channel | |
786 | * when a RESV is issued. | |
787 | */ | |
788 | resv_forcepart = yes; | |
789 | ||
790 | /* channel target change: restrict how many channels users can | |
791 | * message per unit of time. IRC operators, channel operators and | |
792 | * voiced users are exempt. | |
793 | */ | |
794 | channel_target_change = yes; | |
795 | ||
796 | /* disable local channels: if yes, then local channels will not be | |
797 | * supported. | |
798 | */ | |
799 | disable_local_channels = no; | |
800 | ||
801 | /* autochanmodes: the channel modes that should be automatically set | |
802 | * when a channel is created. | |
803 | */ | |
804 | autochanmodes = "+nt"; | |
805 | ||
806 | /* displayed_usercount: the minimum amount of users on a channel before it | |
807 | * is displayed in LIST. this parameter can be overridden using ELIST parameters, | |
808 | * such as LIST >0. | |
809 | */ | |
810 | displayed_usercount = 3; | |
811 | }; | |
812 | ||
813 | ||
814 | /* The serverhide block contains the options regarding serverhiding */ | |
815 | serverhide { | |
816 | /* flatten links: this option will hide various routing information | |
817 | * and make all servers in /links appear that they are linked to | |
818 | * this server. | |
819 | */ | |
820 | flatten_links = no; | |
821 | ||
822 | /* links delay: how long to wait before showing splits or new | |
823 | * servers in a flattened /links output. | |
824 | */ | |
825 | links_delay = 5 minutes; | |
826 | ||
827 | /* hidden: hide this server from a /links output on servers with | |
828 | * flatten_links enabled. this allows hub servers to be hidden etc. | |
829 | */ | |
830 | hidden = no; | |
831 | ||
832 | /* disable hidden: prevent servers hiding themselves from a | |
833 | * /links ouput. | |
834 | */ | |
835 | disable_hidden = no; | |
836 | }; | |
837 | ||
838 | /* These are the blacklist settings. | |
839 | * You can have multiple combinations of host and rejection reasons. | |
840 | * They are used in pairs of one host/rejection reason. | |
841 | * | |
842 | * These settings should be adequate for most networks, and are (presently) | |
843 | * required for use on StaticBox. | |
844 | * | |
845 | * Word to the wise: Do not use blacklists like SPEWS for blocking IRC | |
846 | * connections. | |
847 | * | |
848 | * As of charybdis 2.2, you can do some keyword substitution on the rejection | |
849 | * reason. The available keyword substitutions are: | |
850 | * | |
851 | * ${ip} - the user's IP | |
852 | * ${host} - the user's canonical hostname | |
853 | * ${dnsbl-host} - the dnsbl hostname the lookup was done against | |
854 | * ${nick} - the user's nickname | |
855 | * ${network-name} - the name of the network | |
856 | * | |
857 | * As of charybdis 3.4, a type parameter is supported, which specifies the | |
858 | * address families the blacklist supports. IPv4 and IPv6 are supported. | |
859 | * IPv4 is currently the default as few blacklists support IPv6 operation | |
860 | * as of this writing. | |
861 | * | |
862 | * As of charybdis 3.5, a matches parameter is allowed; if omitted, any result | |
863 | * is considered a match. If included, a comma-separated list of *quoted* | |
864 | * strings is allowed to match queries. They may be of the format "0" to "255" | |
865 | * to match the final octet (e.g. 127.0.0.1) or "127.x.y.z" to explicitly match | |
866 | * an A record. The blacklist is only applied if it matches anything in the | |
867 | * list. You may freely mix full IP's and final octets. | |
868 | * | |
869 | * Consult your blacklist provider for the meaning of these parameters; they | |
870 | * are usually used to denote different ban types. | |
871 | */ | |
872 | blacklist { | |
873 | host = "rbl.efnetrbl.org"; | |
874 | type = ipv4; | |
875 | reject_reason = "${nick}, your IP (${ip}) is listed in EFnet's RBL. For assistance, see http://efnetrbl.org/?i=${ip}"; | |
876 | ||
877 | /* Example of a blacklist that supports both IPv4 and IPv6 and using matches */ | |
878 | # host = "foobl.blacklist.invalid"; | |
879 | # matches = "4", "6", "127.0.0.10"; | |
880 | # type = ipv4, ipv6; | |
881 | # 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"; | |
882 | }; | |
883 | ||
884 | /* | |
885 | * Alias blocks allow you to define custom commands. (Old m_sshortcut.c) | |
886 | * They send PRIVMSG to the given target. A real command takes | |
887 | * precedence above an alias. | |
888 | */ | |
889 | alias "NickServ" { | |
890 | /* the name must go above */ | |
891 | ||
892 | /* target: the target nick (must be a network service) or | |
893 | * user@server (cannot be this server, only opers can use | |
894 | * user starting with "opers" reliably, interpreted on the target | |
895 | * server only so you may need to use nick@server instead) | |
896 | */ | |
897 | target = "NickServ"; | |
898 | }; | |
899 | ||
900 | alias "ChanServ" { | |
901 | target = "ChanServ"; | |
902 | }; | |
903 | ||
904 | alias "OperServ" { | |
905 | target = "OperServ"; | |
906 | }; | |
907 | ||
908 | alias "MemoServ" { | |
909 | target = "MemoServ"; | |
910 | }; | |
911 | ||
912 | alias "NS" { | |
913 | target = "NickServ"; | |
914 | }; | |
915 | ||
916 | alias "CS" { | |
917 | target = "ChanServ"; | |
918 | }; | |
919 | ||
920 | alias "OS" { | |
921 | target = "OperServ"; | |
922 | }; | |
923 | ||
924 | alias "MS" { | |
925 | target = "MemoServ"; | |
926 | }; | |
927 | ||
928 | /* The general block contains many of the options that were once compiled | |
929 | * in options in config.h. The general block is read at start time. | |
930 | */ | |
931 | general { | |
932 | /* hide error messages: defines whether error messages from | |
933 | * servers that are not deemed fully safe are hidden or not. | |
934 | * These can sometimes contain IPs and can have an adverse | |
935 | * effect on server ip hiding. Set to: | |
936 | * yes: hide from opers and admin | |
937 | * opers: hide from opers only | |
938 | * no: do not hide error messages | |
939 | * Admins on other servers count as opers. | |
940 | */ | |
941 | hide_error_messages = opers; | |
942 | ||
943 | /* hide spoof ips: hide the real ips of auth{} spoofed users | |
944 | * If disabled, local opers can see them. | |
945 | * Dynamic spoofs (e.g. set by services) are unaffected by this; | |
946 | * any oper (local and remote) can see the real ip. | |
947 | */ | |
948 | hide_spoof_ips = yes; | |
949 | ||
950 | /* default umodes: umodes to set upon connection | |
951 | * If you have enabled the ip_cloaking extension, and you wish for | |
952 | * incoming clients to be set +h or +x upon connection, add +h or +x to the umode | |
953 | * string below. | |
954 | */ | |
955 | default_umodes = "+i"; | |
956 | ||
957 | /* default operstring: defines the default oper response | |
958 | * in /whois queries, eg "is an IRC Operator". | |
959 | * After startup use /quote set operstring to change. | |
960 | */ | |
961 | default_operstring = "is an IRC Operator"; | |
962 | ||
963 | /* default adminstring: defines the default admin response | |
964 | * in /whois queries, eg "is a Server Administrator". | |
965 | * After startup use /quote set adminstring to change. | |
966 | */ | |
967 | default_adminstring = "is a Server Administrator"; | |
968 | ||
969 | /* servicestring: defines the response for opered services (+S) | |
970 | * in /whois queries, eg "is a Network Service". | |
971 | * This is updated on rehash. | |
972 | */ | |
973 | servicestring = "is a Network Service"; | |
974 | ||
975 | /* | |
976 | * Nick of the network's SASL agent. Used to check whether services are here, | |
977 | * SASL credentials are only sent to its server. Needs to be a service. | |
978 | * | |
979 | * Defaults to SaslServ if unspecified. | |
980 | */ | |
981 | sasl_service = "SaslServ"; | |
982 | ||
983 | /* disable fake channels: disable local users joining fake versions | |
984 | * of channels, eg #foo^B^B. Disables bold, mirc colour, reverse, | |
985 | * underline and hard space. (ASCII 2, 3, 22, 31, 160 respectively). | |
986 | */ | |
987 | disable_fake_channels = no; | |
988 | ||
989 | /* tkline_expire_notices: give a notice to opers when a tkline | |
990 | * expires | |
991 | */ | |
992 | tkline_expire_notices = no; | |
993 | ||
994 | /* floodcount: the default value of floodcount that is configurable | |
995 | * via /quote set floodcount. This is the amount of lines a user | |
996 | * may send to any other user/channel in one second. | |
997 | */ | |
998 | default_floodcount = 10; | |
999 | ||
1000 | /* failed oper notice: send a notice to all opers on the server when | |
1001 | * someone tries to OPER and uses the wrong password, host or ident. | |
1002 | */ | |
1003 | failed_oper_notice = yes; | |
1004 | ||
1005 | /* dots in ident: the amount of '.' characters permitted in an ident | |
1006 | * reply before the user is rejected. | |
1007 | */ | |
1008 | dots_in_ident=2; | |
1009 | ||
1010 | /* min nonwildcard: the minimum non wildcard characters in k/d/g lines | |
1011 | * placed via the server. klines hand placed are exempt from limits. | |
1012 | * wildcard chars: '.' '*' '?' '@' | |
1013 | */ | |
1014 | min_nonwildcard = 4; | |
1015 | ||
1016 | /* min nonwildcard simple: the minimum non wildcard characters in | |
1017 | * xlines/resvs placed via the server. | |
1018 | * wildcard chars: '*' '?' | |
1019 | */ | |
1020 | min_nonwildcard_simple = 3; | |
1021 | ||
1022 | /* max accept: maximum allowed /accept's for +g usermode */ | |
1023 | max_accept = 20; | |
1024 | ||
1025 | /* max monitor: the maximum amount of nicknames a client may have in | |
1026 | * their monitor (server-side notify) list. | |
1027 | */ | |
1028 | max_monitor = 100; | |
1029 | ||
1030 | /* nick flood: enable the nickflood control code */ | |
1031 | anti_nick_flood = yes; | |
1032 | ||
1033 | /* nick flood: the nick changes allowed in the specified period */ | |
1034 | max_nick_time = 20 seconds; | |
1035 | max_nick_changes = 5; | |
1036 | ||
1037 | /* anti spam time: the minimum time a user must be connected before | |
1038 | * custom quit messages are allowed. | |
1039 | */ | |
1040 | anti_spam_exit_message_time = 5 minutes; | |
1041 | ||
1042 | /* ts delta: the time delta allowed between server clocks before | |
1043 | * a warning is given, or before the link is dropped. all servers | |
1044 | * should run ntpdate/rdate to keep clocks in sync | |
1045 | */ | |
1046 | ts_warn_delta = 30 seconds; | |
1047 | ts_max_delta = 5 minutes; | |
1048 | ||
1049 | /* client exit: prepend a user's quit message with "Quit: " */ | |
1050 | client_exit = yes; | |
1051 | ||
1052 | /* collision fnc: change user's nick to their UID instead of | |
1053 | * killing them, if possible. This setting only applies to nick | |
1054 | * collisions detected on this server. Only enable this if | |
1055 | * all servers on the network allow remote nicks to start with | |
1056 | * a digit. | |
1057 | */ | |
1058 | collision_fnc = yes; | |
1059 | ||
1060 | /* resv fnc: change a user's nick to a nick they have recently used | |
1061 | * (or their UID, if no such nick can be found) when a resv matching | |
1062 | * them is set by services. Only enable this if all servers on the | |
1063 | * network allow remote nicks to start with a digit. | |
1064 | */ | |
1065 | resv_fnc = yes; | |
1066 | ||
1067 | /* global snotices: send out certain snotices (most +b, +f, +y, | |
1068 | * some +s) to other servers via ENCAP SNOTE. Received SNOTEs are | |
1069 | * displayed unconditionally. | |
1070 | */ | |
1071 | global_snotices = yes; | |
1072 | ||
1073 | /* dline reason: show the user the dline reason when they connect | |
1074 | * and are dlined. | |
1075 | */ | |
1076 | dline_with_reason = yes; | |
1077 | ||
1078 | /* kline delay: delay the checking of klines until a specified time. | |
1079 | * Useful if large kline lists are applied often to prevent the | |
1080 | * server eating CPU. | |
1081 | */ | |
1082 | kline_delay = 0 seconds; | |
1083 | ||
1084 | /* kline reason: show the user the reason why they are k/dlined | |
1085 | * on exit. may give away who set k/dline when set via tcm. | |
1086 | */ | |
1087 | kline_with_reason = yes; | |
1088 | ||
1089 | /* kline reason: make the users quit message on channels this | |
1090 | * reason instead of the oper's reason. | |
1091 | */ | |
1092 | kline_reason = "Connection closed"; | |
1093 | ||
1094 | /* identify to services via server password | |
1095 | * if auth{} block had no password but the user specified a | |
1096 | * server password anyway, send a PRIVMSG to <identify_service> | |
1097 | * with as text <identify_command> <password>. | |
1098 | */ | |
1099 | identify_service = "NickServ@services.int"; | |
1100 | identify_command = "IDENTIFY"; | |
1101 | ||
1102 | /* non redundant klines: flag and ignore redundant klines */ | |
1103 | non_redundant_klines = yes; | |
1104 | ||
1105 | /* warn no nline: warn opers about servers that try to connect but | |
1106 | * we dont have a connect {} block for. Twits with misconfigured | |
1107 | * servers can get really annoying with this enabled. | |
1108 | */ | |
1109 | warn_no_nline = yes; | |
1110 | ||
1111 | /* use propagated bans: KLINE, XLINE and RESV set fully propagated bans. | |
1112 | * That means the bans are part of the netburst and restarted/split | |
1113 | * servers will get them, but they will not apply to 3.2 and older | |
1114 | * servers at all. | |
1115 | */ | |
1116 | use_propagated_bans = yes; | |
1117 | ||
1118 | /* stats e disabled: disable stats e. useful if server ips are | |
1119 | * exempted and you dont want them listing on irc. | |
1120 | */ | |
1121 | stats_e_disabled = no; | |
1122 | ||
1123 | /* stats c oper only: make stats c (connect {}) oper only */ | |
1124 | stats_c_oper_only=no; | |
1125 | ||
1126 | /* stats h oper only: make stats h (hub_mask/leaf_mask) oper only */ | |
1127 | stats_h_oper_only=no; | |
1128 | ||
1129 | /* stats y oper only: make stats y (class {}) oper only */ | |
1130 | stats_y_oper_only=no; | |
1131 | ||
1132 | /* stats o oper only: make stats o (opers) oper only */ | |
1133 | stats_o_oper_only=yes; | |
1134 | ||
1135 | /* stats P oper only: make stats P (ports) oper only | |
1136 | * NOTE: users doing stats P will never be given the ips that the | |
1137 | * server listens on, simply the ports. | |
1138 | */ | |
1139 | stats_P_oper_only=no; | |
1140 | ||
1141 | /* stats i oper only: make stats i (auth {}) oper only. set to: | |
1142 | * yes: show users no auth blocks, made oper only. | |
1143 | * masked: show users first matching auth block | |
1144 | * no: show users all auth blocks. | |
1145 | */ | |
1146 | stats_i_oper_only=masked; | |
1147 | ||
1148 | /* stats k/K oper only: make stats k/K (klines) oper only. set to: | |
1149 | * yes: show users no auth blocks, made oper only | |
1150 | * masked: show users first matching auth block | |
1151 | * no: show users all auth blocks. | |
1152 | */ | |
1153 | stats_k_oper_only=masked; | |
1154 | ||
1155 | /* map oper only: make /map oper only */ | |
1156 | map_oper_only = no; | |
1157 | ||
1158 | /* operspy admin only: make operspy notices to +Z admin only */ | |
1159 | operspy_admin_only = no; | |
1160 | ||
1161 | /* operspy dont care user info: treat /who mask as if there was | |
1162 | * an '!' always; do not log or server notice about operspy | |
1163 | * /who mask, /masktrace and /scan. channel information is still | |
1164 | * protected. */ | |
1165 | operspy_dont_care_user_info = no; | |
1166 | ||
1167 | /* caller id wait: time between notifying a +g user that somebody | |
1168 | * is messaging them. | |
1169 | */ | |
1170 | caller_id_wait = 1 minute; | |
1171 | ||
1172 | /* pace wait simple: time between use of less intensive commands | |
1173 | * (HELP, remote WHOIS, WHOWAS) | |
1174 | */ | |
1175 | pace_wait_simple = 1 second; | |
1176 | ||
1177 | /* pace wait: time between more intensive commands | |
1178 | * (ADMIN, INFO, LIST, LUSERS, MOTD, STATS, VERSION) | |
1179 | */ | |
1180 | pace_wait = 10 seconds; | |
1181 | ||
1182 | /* short motd: send clients a notice telling them to read the motd | |
1183 | * instead of forcing a motd to clients who may simply ignore it. | |
1184 | */ | |
1185 | short_motd = no; | |
1186 | ||
1187 | /* ping cookies: require clients to respond exactly to a ping command, | |
1188 | * can help block certain types of drones and FTP PASV mode spoofing. | |
1189 | */ | |
1190 | ping_cookie = no; | |
1191 | ||
1192 | /* connect timeout: sets how long we should wait for a connection | |
1193 | * request to succeed | |
1194 | */ | |
1195 | connect_timeout = 30 seconds; | |
1196 | ||
1197 | /* ident timeout: Amount of time (in seconds) that the IRCd will | |
1198 | * wait for a user to respond to an ident request. | |
1199 | */ | |
1200 | default_ident_timeout = 5; | |
1201 | ||
1202 | /* disable auth: disables identd checking */ | |
1203 | disable_auth = no; | |
1204 | ||
1205 | /* no oper flood: increase flood limits for opers. */ | |
1206 | no_oper_flood = yes; | |
1207 | ||
1208 | /* REMOVE ME. The following line checks you've been reading. */ | |
1209 | havent_read_conf = yes; | |
1210 | ||
1211 | /* max targets: the maximum amount of targets in a single | |
1212 | * PRIVMSG/NOTICE. set to 999 NOT 0 for unlimited. | |
1213 | */ | |
1214 | max_targets = 4; | |
1215 | ||
1216 | /* use_whois_actually: send clients requesting a whois a numeric | |
1217 | * giving the real IP of non-spoofed clients to prevent DNS abuse. | |
1218 | */ | |
1219 | use_whois_actually = yes; | |
1220 | ||
1221 | /* usermodes configurable: a list of usermodes for the options below | |
1222 | * | |
1223 | * +g - callerid - Server Side Ignore | |
1224 | * +D - deaf - Don't see channel messages | |
1225 | * +i - invisible - Not shown in NAMES or WHO unless you share a | |
1226 | * a channel | |
1227 | * +l - locops - See LOCOPS messages | |
1228 | * +Q - noforward - Unaffected by channel forwarding | |
1229 | * +R - regonlymsg - No messages from unindentified | |
1230 | * +s - servnotice - See server notices | |
1231 | * +w - wallop - See oper and server generated WALLOPS | |
1232 | * +z - operwall - See operwalls | |
1233 | */ | |
1234 | ||
1235 | /* oper only umodes: usermodes only opers may set */ | |
1236 | oper_only_umodes = operwall, locops, servnotice; | |
1237 | ||
1238 | /* oper umodes: default usermodes opers get when they /oper */ | |
1239 | oper_umodes = locops, servnotice, operwall, wallop; | |
1240 | ||
1241 | /* oper snomask: default snomask opers get when they /oper, | |
1242 | * provided they have umode +s set */ | |
1243 | oper_snomask = "+s"; | |
1244 | ||
1245 | /* compression level: level of compression for compressed links between | |
1246 | * servers. | |
1247 | * | |
1248 | * values are between: 1 (least compression, fastest) | |
1249 | * and: 9 (most compression, slowest). | |
1250 | */ | |
1251 | #compression_level = 6; | |
1252 | ||
1253 | /* burst_away: This enables bursting away messages to servers. | |
1254 | * With this disabled, we will only propogate AWAY messages | |
1255 | * as users send them, but never burst them. Be warned though | |
1256 | * enabling this could increase the size of a burst significantly | |
1257 | * for a large network, like EFnet. | |
1258 | */ | |
1259 | burst_away = yes; | |
1260 | ||
1261 | /* nick delay: This locks nicks of split clients for the given time | |
1262 | * or until a remote client uses the nick. This significantly | |
1263 | * reduces nick collisions on short splits but it can be annoying. | |
1264 | * To make things as fair as possible, this should be the same on | |
1265 | * all servers. If you enable this, the suggested value is 15 minutes. | |
1266 | */ | |
1267 | nick_delay = 0 seconds; | |
1268 | ||
1269 | /* reject time: the amount of rejections through klines/dlines etc | |
1270 | * allowed in the given time before the rejection is cached and | |
1271 | * a pseudo temp dline is placed | |
1272 | */ | |
1273 | reject_ban_time = 1 minute; | |
1274 | reject_after_count = 3; | |
1275 | ||
1276 | /* reject duration: the amount of time to cache the rejection */ | |
1277 | reject_duration = 5 minutes; | |
1278 | ||
1279 | /* throttle_duration: Amount of time that throttling will be applied to an IP | |
1280 | * address. | |
1281 | */ | |
1282 | throttle_duration = 60; | |
1283 | ||
1284 | /* throttle_count: Number of connections within throttle_duration that it takes | |
1285 | * for throttling to take effect */ | |
1286 | throttle_count = 4; | |
1287 | ||
1288 | /* client flood_max_lines: maximum number of lines in a clients queue before | |
1289 | * they are dropped for flooding. | |
1290 | */ | |
1291 | client_flood_max_lines = 20; | |
1292 | ||
1293 | /* Flood control settings. DO NOT CHANGE THESE without extensive discussion | |
1294 | * and testing by someone who knows exactly what they do. | |
1295 | * | |
1296 | * These settings replicate charybdis-3.3 behaviour. | |
1297 | */ | |
1298 | client_flood_burst_rate = 40; | |
1299 | client_flood_burst_max = 5; | |
1300 | client_flood_message_time = 1; | |
1301 | client_flood_message_num = 2; | |
1302 | ||
1303 | /* max_ratelimit_tokens: the maximum number of ratelimit tokens that one | |
1304 | * user can accumulate. This attempts to limit the amount of outbound | |
1305 | * bandwidth one user can consume. Do not change unless you know what | |
1306 | * you're doing. | |
1307 | */ | |
1308 | max_ratelimit_tokens = 30; | |
1309 | ||
1310 | /* away_interval: the minimum interval between AWAY commands. One | |
1311 | * additional AWAY command is allowed, and only marking as away | |
1312 | * counts. | |
1313 | */ | |
1314 | away_interval = 30; | |
1315 | ||
1316 | /* certfp_method: the method that should be used for computing certificate fingerprints. | |
1317 | * Acceptable options are sha1, sha256 and sha512. Networks running versions of charybdis | |
1318 | * prior to charybdis 3.5 MUST use sha1 for certfp_method. | |
1319 | */ | |
1320 | certfp_method = sha1; | |
1321 | }; | |
1322 | ||
1323 | modules { | |
1324 | /* module path: paths to search for modules specified below and | |
1325 | * in /modload. | |
1326 | */ | |
1327 | path = "/usr/local/ircd/modules"; | |
1328 | path = "/usr/local/ircd/modules/autoload"; | |
1329 | ||
1330 | /* module: the name of a module to load on startup/rehash */ | |
1331 | #module = "some_module.so"; | |
1332 | }; |