]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | /* doc/example.conf - brief example configuration file |
2 | * | |
3 | * Copyright (C) 2000-2002 Hybrid Development Team | |
4 | * Copyright (C) 2002-2005 ircd-ratbox development team | |
5 | * Copyright (C) 2005-2006 charybdis development team | |
6 | * | |
407b1826 | 7 | * $Id: example.conf 3582 2007-11-17 21:55:48Z jilles $ |
212380e3 AC |
8 | * |
9 | * See reference.conf for more information. | |
10 | */ | |
11 | ||
12 | /* Extensions */ | |
dbbe26fa VY |
13 | #loadmodule "extensions/chm_operonly_compat.so"; |
14 | #loadmodule "extensions/chm_quietunreg_compat.so"; | |
15 | #loadmodule "extensions/chm_sslonly_compat.so"; | |
212380e3 AC |
16 | #loadmodule "extensions/createauthonly.so"; |
17 | #loadmodule "extensions/extb_account.so"; | |
18 | #loadmodule "extensions/extb_canjoin.so"; | |
19 | #loadmodule "extensions/extb_channel.so"; | |
20 | #loadmodule "extensions/extb_extgecos.so"; | |
21 | #loadmodule "extensions/extb_oper.so"; | |
22 | #loadmodule "extensions/extb_realname.so"; | |
23 | #loadmodule "extensions/extb_server.so"; | |
dbbe26fa | 24 | #loadmodule "extensions/extb_ssl.so"; |
212380e3 AC |
25 | #loadmodule "extensions/hurt.so"; |
26 | #loadmodule "extensions/ip_cloaking.so"; | |
27 | #loadmodule "extensions/m_findforwards.so"; | |
28 | #loadmodule "extensions/m_identify.so"; | |
29 | #loadmodule "extensions/no_oper_invis.so"; | |
30 | #loadmodule "extensions/sno_farconnect.so"; | |
31 | #loadmodule "extensions/sno_globalkline.so"; | |
32 | #loadmodule "extensions/sno_globaloper.so"; | |
446d88dd | 33 | #loadmodule "extensions/sno_whois.so"; |
212380e3 AC |
34 | |
35 | serverinfo { | |
36 | name = "hades.arpa"; | |
212380e3 AC |
37 | sid = "42X"; |
38 | description = "charybdis test server"; | |
39 | network_name = "AthemeNET"; | |
40 | network_desc = "Your IRC network."; | |
41 | hub = yes; | |
42 | ||
43 | /* On multi-homed hosts you may need the following. These define | |
44 | * the addresses we connect from to other servers. */ | |
45 | /* for IPv4 */ | |
46 | #vhost = "192.169.0.1"; | |
47 | /* for IPv6 */ | |
48 | #vhost6 = "3ffe:80e8:546::2"; | |
c6d72037 | 49 | |
b8730cbf VY |
50 | /* ssl_private_key: our ssl private key */ |
51 | ssl_private_key = "etc/test.key"; | |
52 | ||
53 | /* ssl_cert: certificate for our ssl server */ | |
54 | ssl_cert = "etc/test.cert"; | |
55 | ||
56 | /* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 1024 */ | |
57 | ssl_dh_params = "etc/dh.pem"; | |
58 | ||
fa1a7bef JT |
59 | /* ssld_count: number of ssld processes you want to start, if you |
60 | * have a really busy server, using N-1 where N is the number of | |
61 | * cpu/cpu cores you have might be useful. A number greater than one | |
62 | * can also be useful in case of bugs in ssld and because ssld needs | |
63 | * two file descriptors per SSL connection. | |
b8730cbf VY |
64 | */ |
65 | ssld_count = 1; | |
66 | ||
67 | /* default max clients: the default maximum number of clients | |
68 | * allowed to connect. This can be changed once ircd has started by | |
69 | * issuing: | |
70 | * /quote set maxclients <limit> | |
c2d96fcb | 71 | */ |
101db4c4 | 72 | default_max_clients = 1024; |
212380e3 AC |
73 | }; |
74 | ||
75 | admin { | |
76 | name = "Lazy admin (lazya)"; | |
77 | description = "AthemeNET client server"; | |
78 | email = "nobody@127.0.0.1"; | |
79 | }; | |
80 | ||
81 | log { | |
82 | fname_userlog = "logs/userlog"; | |
83 | #fname_fuserlog = "logs/fuserlog"; | |
84 | fname_operlog = "logs/operlog"; | |
85 | #fname_foperlog = "logs/foperlog"; | |
86 | fname_serverlog = "logs/serverlog"; | |
212380e3 AC |
87 | #fname_klinelog = "logs/klinelog"; |
88 | fname_killlog = "logs/killlog"; | |
89 | fname_operspylog = "logs/operspylog"; | |
90 | #fname_ioerrorlog = "logs/ioerror"; | |
91 | }; | |
92 | ||
93 | /* class {} blocks MUST be specified before anything that uses them. That | |
94 | * means they must be defined before auth {} and before connect {}. | |
95 | */ | |
96 | class "users" { | |
97 | ping_time = 2 minutes; | |
dffb83aa JT |
98 | number_per_ident = 10; |
99 | number_per_ip = 10; | |
100 | number_per_ip_global = 50; | |
e33e589c JT |
101 | cidr_ipv4_bitlen = 24; |
102 | cidr_ipv6_bitlen = 64; | |
dffb83aa | 103 | number_per_cidr = 200; |
212380e3 AC |
104 | max_number = 3000; |
105 | sendq = 400 kbytes; | |
106 | }; | |
107 | ||
108 | class "opers" { | |
109 | ping_time = 5 minutes; | |
110 | number_per_ip = 10; | |
111 | max_number = 1000; | |
112 | sendq = 1 megabyte; | |
113 | }; | |
114 | ||
115 | class "server" { | |
116 | ping_time = 5 minutes; | |
117 | connectfreq = 5 minutes; | |
118 | max_number = 1; | |
119 | sendq = 4 megabytes; | |
120 | }; | |
121 | ||
122 | listen { | |
123 | /* If you want to listen on a specific IP only, specify host. | |
124 | * host definitions apply only to the following port line. | |
125 | */ | |
126 | #host = "192.169.0.1"; | |
127 | port = 5000, 6665 .. 6669; | |
b8730cbf | 128 | sslport = 9999; |
212380e3 AC |
129 | |
130 | /* Listen on IPv6 (if you used host= above). */ | |
131 | #host = "3ffe:1234:a:b:c::d"; | |
132 | #port = 5000, 6665 .. 6669; | |
b8730cbf | 133 | #sslport = 9999; |
212380e3 AC |
134 | }; |
135 | ||
136 | /* auth {}: allow users to connect to the ircd (OLD I:) | |
137 | * auth {} blocks MUST be specified in order of precedence. The first one | |
138 | * that matches a user will be used. So place spoofs first, then specials, | |
139 | * then general access, then restricted. | |
140 | */ | |
141 | auth { | |
b0dc8e03 JT |
142 | /* user: the user@host allowed to connect. Multiple IPv4/IPv6 user |
143 | * lines are permitted per auth block. This is matched against the | |
144 | * hostname and IP address (using :: shortening for IPv6 and | |
145 | * prepending a 0 if it starts with a colon) and can also use CIDR | |
146 | * masks. | |
212380e3 AC |
147 | */ |
148 | user = "*@172.16.0.0/12"; | |
149 | user = "*test@123D:B567:*"; | |
150 | ||
151 | /* password: an optional password that is required to use this block. | |
152 | * By default this is not encrypted, specify the flag "encrypted" in | |
153 | * flags = ...; below if it is. | |
154 | */ | |
155 | password = "letmein"; | |
156 | ||
157 | /* spoof: fake the users user@host to be be this. You may either | |
158 | * specify a host or a user@host to spoof to. This is free-form, | |
159 | * just do everyone a favour and dont abuse it. (OLD I: = flag) | |
160 | */ | |
161 | spoof = "I.still.hate.packets"; | |
162 | ||
163 | /* Possible flags in auth: | |
164 | * | |
165 | * encrypted | password is encrypted with mkpasswd | |
166 | * spoof_notice | give a notice when spoofing hosts | |
167 | * exceed_limit (old > flag) | allow user to exceed class user limits | |
168 | * kline_exempt (old ^ flag) | exempt this user from k/g/xlines&dnsbls | |
169 | * dnsbl_exempt | exempt this user from dnsbls | |
212380e3 AC |
170 | * spambot_exempt | exempt this user from spambot checks |
171 | * shide_exempt | exempt this user from serverhiding | |
172 | * jupe_exempt | exempt this user from generating | |
173 | * warnings joining juped channels | |
174 | * resv_exempt | exempt this user from resvs | |
175 | * flood_exempt | exempt this user from flood limits | |
176 | * USE WITH CAUTION. | |
177 | * no_tilde (old - flag) | don't prefix ~ to username if no ident | |
178 | * need_ident (old + flag) | require ident for user in this class | |
3e664be3 | 179 | * need_ssl | require SSL/TLS for user in this class |
212380e3 AC |
180 | * need_sasl | require SASL id for user in this class |
181 | */ | |
182 | flags = kline_exempt, exceed_limit; | |
183 | ||
184 | /* class: the class the user is placed in */ | |
185 | class = "opers"; | |
186 | }; | |
187 | ||
188 | auth { | |
189 | user = "*@*"; | |
190 | class = "users"; | |
191 | }; | |
192 | ||
da77b103 JT |
193 | /* privset {} blocks MUST be specified before anything that uses them. That |
194 | * means they must be defined before operator {}. | |
195 | */ | |
be525828 AC |
196 | privset "local_op" { |
197 | privs = oper:local_kill, oper:operwall; | |
198 | }; | |
199 | ||
b5010970 AC |
200 | privset "server_bot" { |
201 | extends = "local_op"; | |
d9e7ca49 | 202 | privs = oper:kline, oper:remoteban, snomask:nick_changes; |
b5010970 AC |
203 | }; |
204 | ||
be525828 AC |
205 | privset "global_op" { |
206 | extends = "local_op"; | |
207 | privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline, | |
477dc2e9 | 208 | oper:resv, oper:mass_notice, oper:remoteban; |
be525828 AC |
209 | }; |
210 | ||
211 | privset "admin" { | |
212 | extends = "global_op"; | |
3fe1c728 | 213 | privs = oper:admin, oper:die, oper:rehash, oper:spy; |
be525828 AC |
214 | }; |
215 | ||
212380e3 AC |
216 | operator "god" { |
217 | /* name: the name of the oper must go above */ | |
218 | ||
219 | /* user: the user@host required for this operator. CIDR *is* | |
220 | * supported now. auth{} spoofs work here, other spoofs do not. | |
221 | * multiple user="" lines are supported. | |
222 | */ | |
223 | user = "*god@127.0.0.1"; | |
224 | ||
225 | /* password: the password required to oper. Unless ~encrypted is | |
226 | * contained in flags = ...; this will need to be encrypted using | |
227 | * mkpasswd, MD5 is supported | |
228 | */ | |
229 | password = "etcnjl8juSU1E"; | |
230 | ||
231 | /* rsa key: the public key for this oper when using Challenge. | |
232 | * A password should not be defined when this is used, see | |
233 | * doc/challenge.txt for more information. | |
234 | */ | |
235 | #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub"; | |
236 | ||
237 | /* umodes: the specific umodes this oper gets when they oper. | |
238 | * If this is specified an oper will not be given oper_umodes | |
239 | * These are described above oper_only_umodes in general {}; | |
240 | */ | |
241 | #umodes = locops, servnotice, operwall, wallop; | |
242 | ||
243 | /* snomask: specific server notice mask on oper up. | |
244 | * If this is specified an oper will not be given oper_snomask. | |
245 | */ | |
246 | snomask = "+Zbfkrsuy"; | |
247 | ||
da77b103 JT |
248 | /* flags: misc options for the operator. You may prefix an option |
249 | * with ~ to disable it, e.g. ~encrypted. | |
212380e3 | 250 | * |
10847f65 | 251 | * Default flags are encrypted. |
212380e3 AC |
252 | * |
253 | * Available options: | |
254 | * | |
255 | * encrypted: the password above is encrypted [DEFAULT] | |
3e664be3 | 256 | * need_ssl: must be using SSL/TLS to oper up |
212380e3 | 257 | */ |
da77b103 | 258 | flags = encrypted; |
be525828 | 259 | |
da77b103 | 260 | /* privset: privileges set to grant */ |
be525828 | 261 | privset = "admin"; |
212380e3 AC |
262 | }; |
263 | ||
264 | connect "irc.uplink.com" { | |
265 | host = "192.168.0.1"; | |
266 | send_password = "password"; | |
267 | accept_password = "anotherpassword"; | |
268 | port = 6666; | |
269 | hub_mask = "*"; | |
270 | class = "server"; | |
271 | flags = compressed, topicburst; | |
272 | ||
b0dc8e03 JT |
273 | /* If the connection is IPv6, uncomment below. |
274 | * Use 0::1, not ::1, for IPv6 localhost. */ | |
212380e3 AC |
275 | #aftype = ipv6; |
276 | }; | |
277 | ||
b8730cbf VY |
278 | connect "ssl.uplink.com" { |
279 | host = "192.168.0.1"; | |
280 | send_password = "password"; | |
281 | accept_password = "anotherpassword"; | |
282 | port = 9999; | |
283 | hub_mask = "*"; | |
284 | class = "server"; | |
285 | flags = ssl, topicburst; | |
286 | }; | |
287 | ||
212380e3 AC |
288 | service { |
289 | name = "services.int"; | |
290 | }; | |
291 | ||
292 | cluster { | |
293 | name = "*"; | |
294 | flags = kline, tkline, unkline, xline, txline, unxline, resv, tresv, unresv; | |
295 | }; | |
296 | ||
297 | shared { | |
298 | oper = "*@*", "*"; | |
299 | flags = all, rehash; | |
300 | }; | |
301 | ||
b808adf9 | 302 | /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */ |
212380e3 AC |
303 | exempt { |
304 | ip = "127.0.0.1"; | |
305 | }; | |
306 | ||
307 | channel { | |
308 | use_invex = yes; | |
309 | use_except = yes; | |
310 | use_knock = yes; | |
311 | use_forward = yes; | |
212380e3 AC |
312 | knock_delay = 5 minutes; |
313 | knock_delay_channel = 1 minute; | |
314 | max_chans_per_user = 15; | |
315 | max_bans = 100; | |
316 | max_bans_large = 500; | |
317 | default_split_user_count = 0; | |
318 | default_split_server_count = 0; | |
319 | no_create_on_split = no; | |
320 | no_join_on_split = no; | |
321 | burst_topicwho = yes; | |
322 | kick_on_split_riding = no; | |
6865c0b0 | 323 | only_ascii_channels = no; |
c2c25552 | 324 | resv_forcepart = yes; |
212380e3 AC |
325 | }; |
326 | ||
327 | serverhide { | |
328 | flatten_links = yes; | |
329 | links_delay = 5 minutes; | |
330 | hidden = no; | |
331 | disable_hidden = no; | |
332 | }; | |
333 | ||
334 | /* These are the blacklist settings. | |
335 | * You can have multiple combinations of host and rejection reasons. | |
b2324470 | 336 | * They are used in pairs of one host/rejection reason. |
212380e3 AC |
337 | * |
338 | * These settings should be adequate for most networks, and are (presently) | |
339 | * required for use on AthemeNet. | |
340 | * | |
341 | * Word to the wise: Do not use blacklists like SPEWS for blocking IRC | |
342 | * connections. | |
343 | * | |
1e56e993 | 344 | * As of charybdis 2.1.3, you can do some keyword substitution on the rejection |
92fb5c31 AC |
345 | * reason. The available keyword substitutions are: |
346 | * | |
347 | * ${ip} - the user's IP | |
348 | * ${host} - the user's canonical hostname | |
349 | * ${dnsbl-host} - the dnsbl hostname the lookup was done against | |
350 | * ${nick} - the user's nickname | |
351 | * ${network-name} - the name of the network | |
352 | * | |
57b8cb0f | 353 | * Note: AHBL (the providers of the below *.ahbl.org BLs) request that they be |
212380e3 AC |
354 | * contacted, via email, at admins@2mbit.com before using these BLs. |
355 | * See <http://www.ahbl.org/services.php> for more information. | |
356 | */ | |
57b8cb0f AC |
357 | blacklist { |
358 | host = "dnsbl.dronebl.org"; | |
359 | reject_reason = "${nick}, your IP (${ip}) is listed in DroneBL. For assistance, see http://dronebl.org/lookup_branded.do?ip=${ip}&network=${network-name}"; | |
360 | ||
212380e3 | 361 | # host = "ircbl.ahbl.org"; |
92fb5c31 | 362 | # reject_reason = "${nick}, your IP (${ip}) is listed in ${dnsbl-host} for having an open proxy. In order to protect ${network-name} from abuse, we are not allowing connections with open proxies to connect."; |
212380e3 AC |
363 | # |
364 | # host = "tor.ahbl.org"; | |
92fb5c31 | 365 | # reject_reason = "${nick}, your IP (${ip}) is listed as a TOR exit node. In order to protect ${network-name} from tor-based abuse, we are not allowing TOR exit nodes to connect to our network."; |
57b8cb0f | 366 | }; |
212380e3 AC |
367 | |
368 | alias "NickServ" { | |
369 | target = "NickServ"; | |
370 | }; | |
371 | ||
372 | alias "ChanServ" { | |
373 | target = "ChanServ"; | |
374 | }; | |
375 | ||
376 | alias "OperServ" { | |
377 | target = "OperServ"; | |
378 | }; | |
379 | ||
380 | alias "MemoServ" { | |
381 | target = "MemoServ"; | |
382 | }; | |
383 | ||
384 | alias "NS" { | |
385 | target = "NickServ"; | |
386 | }; | |
387 | ||
388 | alias "CS" { | |
389 | target = "ChanServ"; | |
390 | }; | |
391 | ||
392 | alias "OS" { | |
393 | target = "OperServ"; | |
394 | }; | |
395 | ||
396 | alias "MS" { | |
397 | target = "MemoServ"; | |
398 | }; | |
399 | ||
400 | general { | |
401 | hide_error_messages = opers; | |
402 | hide_spoof_ips = yes; | |
403 | ||
404 | /* | |
405 | * default_umodes: umodes to enable on connect. | |
406 | * If you have enabled the ip_cloaking module, and you want | |
407 | * to make use of it, add +h to this option, i.e.: | |
408 | * default_umodes = "+ih"; | |
409 | */ | |
410 | default_umodes = "+i"; | |
411 | ||
412 | default_operstring = "is an IRC Operator"; | |
413 | default_adminstring = "is a Server Administrator"; | |
414 | servicestring = "is a Network Service"; | |
415 | disable_fake_channels = no; | |
416 | tkline_expire_notices = no; | |
417 | default_floodcount = 10; | |
418 | failed_oper_notice = yes; | |
419 | dots_in_ident=2; | |
212380e3 AC |
420 | min_nonwildcard = 4; |
421 | min_nonwildcard_simple = 3; | |
422 | max_accept = 100; | |
423 | max_monitor = 100; | |
424 | anti_nick_flood = yes; | |
425 | max_nick_time = 20 seconds; | |
426 | max_nick_changes = 5; | |
427 | anti_spam_exit_message_time = 5 minutes; | |
428 | ts_warn_delta = 30 seconds; | |
429 | ts_max_delta = 5 minutes; | |
430 | client_exit = yes; | |
431 | collision_fnc = yes; | |
432 | global_snotices = yes; | |
433 | dline_with_reason = yes; | |
434 | kline_delay = 0 seconds; | |
435 | kline_with_reason = yes; | |
436 | kline_reason = "K-Lined"; | |
437 | identify_service = "NickServ@services.int"; | |
438 | identify_command = "IDENTIFY"; | |
439 | non_redundant_klines = yes; | |
440 | warn_no_nline = yes; | |
441 | stats_e_disabled = no; | |
442 | stats_c_oper_only=no; | |
443 | stats_h_oper_only=no; | |
444 | stats_y_oper_only=no; | |
445 | stats_o_oper_only=yes; | |
446 | stats_P_oper_only=no; | |
447 | stats_i_oper_only=masked; | |
448 | stats_k_oper_only=masked; | |
449 | map_oper_only = no; | |
450 | operspy_admin_only = no; | |
451 | operspy_dont_care_user_info = no; | |
452 | caller_id_wait = 1 minute; | |
453 | pace_wait_simple = 1 second; | |
454 | pace_wait = 10 seconds; | |
455 | short_motd = no; | |
456 | ping_cookie = no; | |
457 | connect_timeout = 30 seconds; | |
458 | disable_auth = no; | |
459 | no_oper_flood = yes; | |
212380e3 AC |
460 | max_targets = 4; |
461 | client_flood = 20; | |
462 | use_whois_actually = no; | |
463 | oper_only_umodes = operwall, locops, servnotice; | |
464 | oper_umodes = locops, servnotice, operwall, wallop; | |
465 | oper_snomask = "+s"; | |
466 | burst_away = yes; | |
467 | nick_delay = 0 seconds; # 15 minutes if you want to enable this | |
468 | reject_ban_time = 1 minute; | |
469 | reject_after_count = 3; | |
470 | reject_duration = 5 minutes; | |
cc49daee JT |
471 | throttle_duration = 60; |
472 | throttle_count = 4; | |
212380e3 AC |
473 | }; |
474 | ||
475 | modules { | |
476 | path = "modules"; | |
477 | path = "modules/autoload"; | |
478 | }; |