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