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