]>
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 | ||
59 | /* ssld_count: number of ssld processes you want to start, if you have a really busy | |
60 | * server, using N-1 where N is the number of cpu/cpu cores you have might be useful | |
61 | */ | |
62 | ssld_count = 1; | |
63 | ||
64 | /* default max clients: the default maximum number of clients | |
65 | * allowed to connect. This can be changed once ircd has started by | |
66 | * issuing: | |
67 | * /quote set maxclients <limit> | |
c2d96fcb | 68 | */ |
101db4c4 | 69 | default_max_clients = 1024; |
212380e3 AC |
70 | }; |
71 | ||
72 | admin { | |
73 | name = "Lazy admin (lazya)"; | |
74 | description = "AthemeNET client server"; | |
75 | email = "nobody@127.0.0.1"; | |
76 | }; | |
77 | ||
78 | log { | |
79 | fname_userlog = "logs/userlog"; | |
80 | #fname_fuserlog = "logs/fuserlog"; | |
81 | fname_operlog = "logs/operlog"; | |
82 | #fname_foperlog = "logs/foperlog"; | |
83 | fname_serverlog = "logs/serverlog"; | |
212380e3 AC |
84 | #fname_klinelog = "logs/klinelog"; |
85 | fname_killlog = "logs/killlog"; | |
86 | fname_operspylog = "logs/operspylog"; | |
87 | #fname_ioerrorlog = "logs/ioerror"; | |
88 | }; | |
89 | ||
90 | /* class {} blocks MUST be specified before anything that uses them. That | |
91 | * means they must be defined before auth {} and before connect {}. | |
92 | */ | |
93 | class "users" { | |
94 | ping_time = 2 minutes; | |
95 | number_per_ident = 10; | |
96 | number_per_ip = 10; | |
97 | number_per_ip_global = 50; | |
98 | cidr_bitlen = 64; | |
99 | number_per_cidr = 8; | |
100 | max_number = 3000; | |
101 | sendq = 400 kbytes; | |
102 | }; | |
103 | ||
104 | class "opers" { | |
105 | ping_time = 5 minutes; | |
106 | number_per_ip = 10; | |
107 | max_number = 1000; | |
108 | sendq = 1 megabyte; | |
109 | }; | |
110 | ||
111 | class "server" { | |
112 | ping_time = 5 minutes; | |
113 | connectfreq = 5 minutes; | |
114 | max_number = 1; | |
115 | sendq = 4 megabytes; | |
116 | }; | |
117 | ||
118 | listen { | |
119 | /* If you want to listen on a specific IP only, specify host. | |
120 | * host definitions apply only to the following port line. | |
121 | */ | |
122 | #host = "192.169.0.1"; | |
123 | port = 5000, 6665 .. 6669; | |
b8730cbf | 124 | sslport = 9999; |
212380e3 AC |
125 | |
126 | /* Listen on IPv6 (if you used host= above). */ | |
127 | #host = "3ffe:1234:a:b:c::d"; | |
128 | #port = 5000, 6665 .. 6669; | |
b8730cbf | 129 | #sslport = 9999; |
212380e3 AC |
130 | }; |
131 | ||
132 | /* auth {}: allow users to connect to the ircd (OLD I:) | |
133 | * auth {} blocks MUST be specified in order of precedence. The first one | |
134 | * that matches a user will be used. So place spoofs first, then specials, | |
135 | * then general access, then restricted. | |
136 | */ | |
137 | auth { | |
b0dc8e03 JT |
138 | /* user: the user@host allowed to connect. Multiple IPv4/IPv6 user |
139 | * lines are permitted per auth block. This is matched against the | |
140 | * hostname and IP address (using :: shortening for IPv6 and | |
141 | * prepending a 0 if it starts with a colon) and can also use CIDR | |
142 | * masks. | |
212380e3 AC |
143 | */ |
144 | user = "*@172.16.0.0/12"; | |
145 | user = "*test@123D:B567:*"; | |
146 | ||
147 | /* password: an optional password that is required to use this block. | |
148 | * By default this is not encrypted, specify the flag "encrypted" in | |
149 | * flags = ...; below if it is. | |
150 | */ | |
151 | password = "letmein"; | |
152 | ||
153 | /* spoof: fake the users user@host to be be this. You may either | |
154 | * specify a host or a user@host to spoof to. This is free-form, | |
155 | * just do everyone a favour and dont abuse it. (OLD I: = flag) | |
156 | */ | |
157 | spoof = "I.still.hate.packets"; | |
158 | ||
159 | /* Possible flags in auth: | |
160 | * | |
161 | * encrypted | password is encrypted with mkpasswd | |
162 | * spoof_notice | give a notice when spoofing hosts | |
163 | * exceed_limit (old > flag) | allow user to exceed class user limits | |
164 | * kline_exempt (old ^ flag) | exempt this user from k/g/xlines&dnsbls | |
165 | * dnsbl_exempt | exempt this user from dnsbls | |
212380e3 AC |
166 | * spambot_exempt | exempt this user from spambot checks |
167 | * shide_exempt | exempt this user from serverhiding | |
168 | * jupe_exempt | exempt this user from generating | |
169 | * warnings joining juped channels | |
170 | * resv_exempt | exempt this user from resvs | |
171 | * flood_exempt | exempt this user from flood limits | |
172 | * USE WITH CAUTION. | |
173 | * no_tilde (old - flag) | don't prefix ~ to username if no ident | |
174 | * need_ident (old + flag) | require ident for user in this class | |
175 | * need_sasl | require SASL id for user in this class | |
176 | */ | |
177 | flags = kline_exempt, exceed_limit; | |
178 | ||
179 | /* class: the class the user is placed in */ | |
180 | class = "opers"; | |
181 | }; | |
182 | ||
183 | auth { | |
184 | user = "*@*"; | |
185 | class = "users"; | |
186 | }; | |
187 | ||
188 | operator "god" { | |
189 | /* name: the name of the oper must go above */ | |
190 | ||
191 | /* user: the user@host required for this operator. CIDR *is* | |
192 | * supported now. auth{} spoofs work here, other spoofs do not. | |
193 | * multiple user="" lines are supported. | |
194 | */ | |
195 | user = "*god@127.0.0.1"; | |
196 | ||
197 | /* password: the password required to oper. Unless ~encrypted is | |
198 | * contained in flags = ...; this will need to be encrypted using | |
199 | * mkpasswd, MD5 is supported | |
200 | */ | |
201 | password = "etcnjl8juSU1E"; | |
202 | ||
203 | /* rsa key: the public key for this oper when using Challenge. | |
204 | * A password should not be defined when this is used, see | |
205 | * doc/challenge.txt for more information. | |
206 | */ | |
207 | #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub"; | |
208 | ||
209 | /* umodes: the specific umodes this oper gets when they oper. | |
210 | * If this is specified an oper will not be given oper_umodes | |
211 | * These are described above oper_only_umodes in general {}; | |
212 | */ | |
213 | #umodes = locops, servnotice, operwall, wallop; | |
214 | ||
215 | /* snomask: specific server notice mask on oper up. | |
216 | * If this is specified an oper will not be given oper_snomask. | |
217 | */ | |
218 | snomask = "+Zbfkrsuy"; | |
219 | ||
220 | /* privileges: controls the activities and commands an oper is | |
221 | * allowed to do on the server. You may prefix an option with ~ to | |
222 | * disable it, ie ~operwall | |
223 | * | |
224 | * Default flags are operwall, remoteban and encrypted. | |
225 | * | |
226 | * Available options: | |
227 | * | |
228 | * encrypted: the password above is encrypted [DEFAULT] | |
229 | * local_kill: allows local users to be /KILL'd | |
230 | * global_kill: allows local and remote users to be | |
231 | * /KILL'd (OLD 'O' flag) | |
232 | * remote: allows remote SQUIT and CONNECT (OLD 'R' flag) | |
407b1826 | 233 | * kline: allows KLINE and DLINE (OLD 'K' flag) |
212380e3 | 234 | * unkline: allows UNKLINE and UNDLINE (OLD 'U' flag) |
212380e3 | 235 | * nick_changes: allows oper to see nickchanges (OLD 'N' flag) |
407b1826 | 236 | * via snomask +n |
212380e3 AC |
237 | * rehash: allows oper to REHASH config (OLD 'H' flag) |
238 | * die: allows DIE and RESTART (OLD 'D' flag) | |
239 | * admin: gives admin privileges. admins | |
240 | * may (un)load modules and see the | |
241 | * real IPs of servers. | |
242 | * hidden_admin: gives admin privileges except | |
243 | * will not have the admin lines in | |
244 | * stats p and whois. | |
245 | * xline: allows use of /quote xline/unxline | |
1ef5b430 | 246 | * resv: allows /quote resv/unresv and cmode +LP [DEFAULT] |
407b1826 | 247 | * operwall: allows the oper to send/receive operwalls [DEFAULT] |
212380e3 AC |
248 | * oper_spy: allows 'operspy' features to see through +s |
249 | * channels etc. see /quote help operspy | |
250 | * hidden_oper: hides the oper from /stats p (OLD UMODE +p) | |
251 | * remoteban: allows remote kline etc [DEFAULT] | |
a6f4368b | 252 | * mass_notice: allows sending wallops and mass notices [DEFAULT] |
212380e3 | 253 | */ |
170703fe | 254 | flags = global_kill, remote, kline, unkline, |
212380e3 AC |
255 | die, rehash, admin, xline, operwall; |
256 | }; | |
257 | ||
258 | connect "irc.uplink.com" { | |
259 | host = "192.168.0.1"; | |
260 | send_password = "password"; | |
261 | accept_password = "anotherpassword"; | |
262 | port = 6666; | |
263 | hub_mask = "*"; | |
264 | class = "server"; | |
265 | flags = compressed, topicburst; | |
266 | ||
b0dc8e03 JT |
267 | /* If the connection is IPv6, uncomment below. |
268 | * Use 0::1, not ::1, for IPv6 localhost. */ | |
212380e3 AC |
269 | #aftype = ipv6; |
270 | }; | |
271 | ||
b8730cbf VY |
272 | connect "ssl.uplink.com" { |
273 | host = "192.168.0.1"; | |
274 | send_password = "password"; | |
275 | accept_password = "anotherpassword"; | |
276 | port = 9999; | |
277 | hub_mask = "*"; | |
278 | class = "server"; | |
279 | flags = ssl, topicburst; | |
280 | }; | |
281 | ||
212380e3 AC |
282 | service { |
283 | name = "services.int"; | |
284 | }; | |
285 | ||
286 | cluster { | |
287 | name = "*"; | |
288 | flags = kline, tkline, unkline, xline, txline, unxline, resv, tresv, unresv; | |
289 | }; | |
290 | ||
291 | shared { | |
292 | oper = "*@*", "*"; | |
293 | flags = all, rehash; | |
294 | }; | |
295 | ||
b808adf9 | 296 | /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */ |
212380e3 AC |
297 | exempt { |
298 | ip = "127.0.0.1"; | |
299 | }; | |
300 | ||
301 | channel { | |
302 | use_invex = yes; | |
303 | use_except = yes; | |
304 | use_knock = yes; | |
305 | use_forward = yes; | |
212380e3 AC |
306 | knock_delay = 5 minutes; |
307 | knock_delay_channel = 1 minute; | |
308 | max_chans_per_user = 15; | |
309 | max_bans = 100; | |
310 | max_bans_large = 500; | |
311 | default_split_user_count = 0; | |
312 | default_split_server_count = 0; | |
313 | no_create_on_split = no; | |
314 | no_join_on_split = no; | |
315 | burst_topicwho = yes; | |
316 | kick_on_split_riding = no; | |
317 | }; | |
318 | ||
319 | serverhide { | |
320 | flatten_links = yes; | |
321 | links_delay = 5 minutes; | |
322 | hidden = no; | |
323 | disable_hidden = no; | |
324 | }; | |
325 | ||
326 | /* These are the blacklist settings. | |
327 | * You can have multiple combinations of host and rejection reasons. | |
92fb5c31 | 328 | * They are used in pairs of one host/rejection reason, or multiple hosts/rejection reason. |
212380e3 AC |
329 | * |
330 | * These settings should be adequate for most networks, and are (presently) | |
331 | * required for use on AthemeNet. | |
332 | * | |
333 | * Word to the wise: Do not use blacklists like SPEWS for blocking IRC | |
334 | * connections. | |
335 | * | |
1e56e993 | 336 | * As of charybdis 2.1.3, you can do some keyword substitution on the rejection |
92fb5c31 AC |
337 | * reason. The available keyword substitutions are: |
338 | * | |
339 | * ${ip} - the user's IP | |
340 | * ${host} - the user's canonical hostname | |
341 | * ${dnsbl-host} - the dnsbl hostname the lookup was done against | |
342 | * ${nick} - the user's nickname | |
343 | * ${network-name} - the name of the network | |
344 | * | |
57b8cb0f | 345 | * Note: AHBL (the providers of the below *.ahbl.org BLs) request that they be |
212380e3 AC |
346 | * contacted, via email, at admins@2mbit.com before using these BLs. |
347 | * See <http://www.ahbl.org/services.php> for more information. | |
348 | */ | |
57b8cb0f AC |
349 | blacklist { |
350 | host = "dnsbl.dronebl.org"; | |
351 | reject_reason = "${nick}, your IP (${ip}) is listed in DroneBL. For assistance, see http://dronebl.org/lookup_branded.do?ip=${ip}&network=${network-name}"; | |
352 | ||
212380e3 | 353 | # host = "ircbl.ahbl.org"; |
92fb5c31 | 354 | # 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 |
355 | # |
356 | # host = "tor.ahbl.org"; | |
92fb5c31 | 357 | # 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 | 358 | }; |
212380e3 AC |
359 | |
360 | alias "NickServ" { | |
361 | target = "NickServ"; | |
362 | }; | |
363 | ||
364 | alias "ChanServ" { | |
365 | target = "ChanServ"; | |
366 | }; | |
367 | ||
368 | alias "OperServ" { | |
369 | target = "OperServ"; | |
370 | }; | |
371 | ||
372 | alias "MemoServ" { | |
373 | target = "MemoServ"; | |
374 | }; | |
375 | ||
376 | alias "NS" { | |
377 | target = "NickServ"; | |
378 | }; | |
379 | ||
380 | alias "CS" { | |
381 | target = "ChanServ"; | |
382 | }; | |
383 | ||
384 | alias "OS" { | |
385 | target = "OperServ"; | |
386 | }; | |
387 | ||
388 | alias "MS" { | |
389 | target = "MemoServ"; | |
390 | }; | |
391 | ||
392 | general { | |
393 | hide_error_messages = opers; | |
394 | hide_spoof_ips = yes; | |
395 | ||
396 | /* | |
397 | * default_umodes: umodes to enable on connect. | |
398 | * If you have enabled the ip_cloaking module, and you want | |
399 | * to make use of it, add +h to this option, i.e.: | |
400 | * default_umodes = "+ih"; | |
401 | */ | |
402 | default_umodes = "+i"; | |
403 | ||
404 | default_operstring = "is an IRC Operator"; | |
405 | default_adminstring = "is a Server Administrator"; | |
406 | servicestring = "is a Network Service"; | |
407 | disable_fake_channels = no; | |
408 | tkline_expire_notices = no; | |
409 | default_floodcount = 10; | |
410 | failed_oper_notice = yes; | |
411 | dots_in_ident=2; | |
212380e3 AC |
412 | min_nonwildcard = 4; |
413 | min_nonwildcard_simple = 3; | |
414 | max_accept = 100; | |
415 | max_monitor = 100; | |
416 | anti_nick_flood = yes; | |
417 | max_nick_time = 20 seconds; | |
418 | max_nick_changes = 5; | |
419 | anti_spam_exit_message_time = 5 minutes; | |
420 | ts_warn_delta = 30 seconds; | |
421 | ts_max_delta = 5 minutes; | |
422 | client_exit = yes; | |
423 | collision_fnc = yes; | |
424 | global_snotices = yes; | |
425 | dline_with_reason = yes; | |
426 | kline_delay = 0 seconds; | |
427 | kline_with_reason = yes; | |
428 | kline_reason = "K-Lined"; | |
429 | identify_service = "NickServ@services.int"; | |
430 | identify_command = "IDENTIFY"; | |
431 | non_redundant_klines = yes; | |
432 | warn_no_nline = yes; | |
433 | stats_e_disabled = no; | |
434 | stats_c_oper_only=no; | |
435 | stats_h_oper_only=no; | |
436 | stats_y_oper_only=no; | |
437 | stats_o_oper_only=yes; | |
438 | stats_P_oper_only=no; | |
439 | stats_i_oper_only=masked; | |
440 | stats_k_oper_only=masked; | |
441 | map_oper_only = no; | |
442 | operspy_admin_only = no; | |
443 | operspy_dont_care_user_info = no; | |
444 | caller_id_wait = 1 minute; | |
445 | pace_wait_simple = 1 second; | |
446 | pace_wait = 10 seconds; | |
447 | short_motd = no; | |
448 | ping_cookie = no; | |
449 | connect_timeout = 30 seconds; | |
450 | disable_auth = no; | |
451 | no_oper_flood = yes; | |
212380e3 AC |
452 | max_targets = 4; |
453 | client_flood = 20; | |
454 | use_whois_actually = no; | |
455 | oper_only_umodes = operwall, locops, servnotice; | |
456 | oper_umodes = locops, servnotice, operwall, wallop; | |
457 | oper_snomask = "+s"; | |
458 | burst_away = yes; | |
459 | nick_delay = 0 seconds; # 15 minutes if you want to enable this | |
460 | reject_ban_time = 1 minute; | |
461 | reject_after_count = 3; | |
462 | reject_duration = 5 minutes; | |
54015b5f | 463 | max_unknown_ip = 2; |
212380e3 AC |
464 | }; |
465 | ||
466 | modules { | |
467 | path = "modules"; | |
468 | path = "modules/autoload"; | |
469 | }; |