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