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