1 /* doc/example.conf - brief example configuration file
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
7 * $Id: example.conf 3582 2007-11-17 21:55:48Z jilles $
9 * See reference.conf for more information.
13 #loadmodule "extensions/chm_operonly_compat.so";
14 #loadmodule "extensions/chm_quietunreg_compat.so";
15 #loadmodule "extensions/chm_sslonly_compat.so";
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";
24 #loadmodule "extensions/extb_ssl.so";
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";
33 #loadmodule "extensions/sno_whois.so";
38 description = "charybdis test server";
39 network_name = "AthemeNET";
40 network_desc = "Your IRC network.";
43 /* On multi-homed hosts you may need the following. These define
44 * the addresses we connect from to other servers. */
46 #vhost = "192.169.0.1";
48 #vhost6 = "3ffe:80e8:546::2";
50 /* ssl_private_key: our ssl private key */
51 ssl_private_key = "etc/test.key";
53 /* ssl_cert: certificate for our ssl server */
54 ssl_cert = "etc/test.cert";
56 /* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 1024 */
57 ssl_dh_params = "etc/dh.pem";
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
64 /* default max clients: the default maximum number of clients
65 * allowed to connect. This can be changed once ircd has started by
67 * /quote set maxclients <limit>
69 default_max_clients = 1024;
73 name = "Lazy admin (lazya)";
74 description = "AthemeNET client server";
75 email = "nobody@127.0.0.1";
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_klinelog = "logs/klinelog";
85 fname_killlog = "logs/killlog";
86 fname_operspylog = "logs/operspylog";
87 #fname_ioerrorlog = "logs/ioerror";
90 /* class {} blocks MUST be specified before anything that uses them. That
91 * means they must be defined before auth {} and before connect {}.
94 ping_time = 2 minutes;
95 number_per_ident = 10;
97 number_per_ip_global = 50;
105 ping_time = 5 minutes;
112 ping_time = 5 minutes;
113 connectfreq = 5 minutes;
119 /* If you want to listen on a specific IP only, specify host.
120 * host definitions apply only to the following port line.
122 #host = "192.169.0.1";
123 port = 5000, 6665 .. 6669;
126 /* Listen on IPv6 (if you used host= above). */
127 #host = "3ffe:1234:a:b:c::d";
128 #port = 5000, 6665 .. 6669;
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.
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
144 user = "*@172.16.0.0/12";
145 user = "*test@123D:B567:*";
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.
151 password = "letmein";
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)
157 spoof = "I.still.hate.packets";
159 /* Possible flags in auth:
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
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
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_ssl | require SSL/TLS for user in this class
176 * need_sasl | require SASL id for user in this class
178 flags = kline_exempt, exceed_limit;
180 /* class: the class the user is placed in */
189 /* privset {} blocks MUST be specified before anything that uses them. That
190 * means they must be defined before operator {}.
193 privs = oper:local_kill, oper:operwall;
196 privset "server_bot" {
197 extends = "local_op";
198 privs = oper:global_kill, oper:kline, oper:remoteban, snomask:nick_changes;
201 privset "global_op" {
202 extends = "local_op";
203 privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline,
204 oper:resv, oper:mass_notice, oper:remoteban;
208 extends = "global_op";
209 privs = oper:admin, oper:die, oper:rehash, oper:spy;
213 /* name: the name of the oper must go above */
215 /* user: the user@host required for this operator. CIDR *is*
216 * supported now. auth{} spoofs work here, other spoofs do not.
217 * multiple user="" lines are supported.
219 user = "*god@127.0.0.1";
221 /* password: the password required to oper. Unless ~encrypted is
222 * contained in flags = ...; this will need to be encrypted using
223 * mkpasswd, MD5 is supported
225 password = "etcnjl8juSU1E";
227 /* rsa key: the public key for this oper when using Challenge.
228 * A password should not be defined when this is used, see
229 * doc/challenge.txt for more information.
231 #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
233 /* umodes: the specific umodes this oper gets when they oper.
234 * If this is specified an oper will not be given oper_umodes
235 * These are described above oper_only_umodes in general {};
237 #umodes = locops, servnotice, operwall, wallop;
239 /* snomask: specific server notice mask on oper up.
240 * If this is specified an oper will not be given oper_snomask.
242 snomask = "+Zbfkrsuy";
244 /* flags: misc options for the operator. You may prefix an option
245 * with ~ to disable it, e.g. ~encrypted.
247 * Default flags are encrypted.
251 * encrypted: the password above is encrypted [DEFAULT]
252 * need_ssl: must be using SSL/TLS to oper up
256 /* privset: privileges set to grant */
260 connect "irc.uplink.com" {
261 host = "192.168.0.1";
262 send_password = "password";
263 accept_password = "anotherpassword";
267 flags = compressed, topicburst;
269 /* If the connection is IPv6, uncomment below.
270 * Use 0::1, not ::1, for IPv6 localhost. */
274 connect "ssl.uplink.com" {
275 host = "192.168.0.1";
276 send_password = "password";
277 accept_password = "anotherpassword";
281 flags = ssl, topicburst;
285 name = "services.int";
290 flags = kline, tkline, unkline, xline, txline, unxline, resv, tresv, unresv;
298 /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */
308 knock_delay = 5 minutes;
309 knock_delay_channel = 1 minute;
310 max_chans_per_user = 15;
312 max_bans_large = 500;
313 default_split_user_count = 0;
314 default_split_server_count = 0;
315 no_create_on_split = no;
316 no_join_on_split = no;
317 burst_topicwho = yes;
318 kick_on_split_riding = no;
323 links_delay = 5 minutes;
328 /* These are the blacklist settings.
329 * You can have multiple combinations of host and rejection reasons.
330 * They are used in pairs of one host/rejection reason, or multiple hosts/rejection reason.
332 * These settings should be adequate for most networks, and are (presently)
333 * required for use on AthemeNet.
335 * Word to the wise: Do not use blacklists like SPEWS for blocking IRC
338 * As of charybdis 2.1.3, you can do some keyword substitution on the rejection
339 * reason. The available keyword substitutions are:
341 * ${ip} - the user's IP
342 * ${host} - the user's canonical hostname
343 * ${dnsbl-host} - the dnsbl hostname the lookup was done against
344 * ${nick} - the user's nickname
345 * ${network-name} - the name of the network
347 * Note: AHBL (the providers of the below *.ahbl.org BLs) request that they be
348 * contacted, via email, at admins@2mbit.com before using these BLs.
349 * See <http://www.ahbl.org/services.php> for more information.
352 host = "dnsbl.dronebl.org";
353 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 # host = "ircbl.ahbl.org";
356 # 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.";
358 # host = "tor.ahbl.org";
359 # 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.";
395 hide_error_messages = opers;
396 hide_spoof_ips = yes;
399 * default_umodes: umodes to enable on connect.
400 * If you have enabled the ip_cloaking module, and you want
401 * to make use of it, add +h to this option, i.e.:
402 * default_umodes = "+ih";
404 default_umodes = "+i";
406 default_operstring = "is an IRC Operator";
407 default_adminstring = "is a Server Administrator";
408 servicestring = "is a Network Service";
409 disable_fake_channels = no;
410 tkline_expire_notices = no;
411 default_floodcount = 10;
412 failed_oper_notice = yes;
415 min_nonwildcard_simple = 3;
418 anti_nick_flood = yes;
419 max_nick_time = 20 seconds;
420 max_nick_changes = 5;
421 anti_spam_exit_message_time = 5 minutes;
422 ts_warn_delta = 30 seconds;
423 ts_max_delta = 5 minutes;
426 global_snotices = yes;
427 dline_with_reason = yes;
428 kline_delay = 0 seconds;
429 kline_with_reason = yes;
430 kline_reason = "K-Lined";
431 identify_service = "NickServ@services.int";
432 identify_command = "IDENTIFY";
433 non_redundant_klines = yes;
435 stats_e_disabled = no;
436 stats_c_oper_only=no;
437 stats_h_oper_only=no;
438 stats_y_oper_only=no;
439 stats_o_oper_only=yes;
440 stats_P_oper_only=no;
441 stats_i_oper_only=masked;
442 stats_k_oper_only=masked;
444 operspy_admin_only = no;
445 operspy_dont_care_user_info = no;
446 caller_id_wait = 1 minute;
447 pace_wait_simple = 1 second;
448 pace_wait = 10 seconds;
451 connect_timeout = 30 seconds;
456 use_whois_actually = no;
457 oper_only_umodes = operwall, locops, servnotice;
458 oper_umodes = locops, servnotice, operwall, wallop;
461 nick_delay = 0 seconds; # 15 minutes if you want to enable this
462 reject_ban_time = 1 minute;
463 reject_after_count = 3;
464 reject_duration = 5 minutes;
465 throttle_duration = 60;
471 path = "modules/autoload";