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