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