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