]> jfr.im git - irc/rqf/shadowircd.git/blame - doc/example.conf
[svn] Remove invite_ops_only, forcing it to YES.
[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 *
307328bb 7 * $Id: example.conf 3257 2007-03-13 16:09:28Z jilles $
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";
26#loadmodule "extensions/sno_farconnect.so";
27#loadmodule "extensions/sno_globalkline.so";
28#loadmodule "extensions/sno_globaloper.so";
29
30serverinfo {
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
46 /* max_clients: This should be set to the amount of connections
47 * the server can handle.
48 */
49 max_clients = 1024;
212380e3 50};
51
52admin {
53 name = "Lazy admin (lazya)";
54 description = "AthemeNET client server";
55 email = "nobody@127.0.0.1";
56};
57
58log {
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 */
74class "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
85class "opers" {
86 ping_time = 5 minutes;
87 number_per_ip = 10;
88 max_number = 1000;
89 sendq = 1 megabyte;
90};
91
92class "server" {
93 ping_time = 5 minutes;
94 connectfreq = 5 minutes;
95 max_number = 1;
96 sendq = 4 megabytes;
97};
98
99listen {
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 */
116auth {
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
160auth {
161 user = "*@*";
162 class = "users";
163};
164
165operator "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
234connect "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
247service {
248 name = "services.int";
249};
250
251cluster {
252 name = "*";
253 flags = kline, tkline, unkline, xline, txline, unxline, resv, tresv, unresv;
254};
255
256shared {
257 oper = "*@*", "*";
258 flags = all, rehash;
259};
260
261/* exempt {}: IPs that are exempt from Dlines. (OLD d:) */
262exempt {
263 ip = "127.0.0.1";
264};
265
266channel {
267 use_invex = yes;
268 use_except = yes;
269 use_knock = yes;
270 use_forward = yes;
212380e3 271 knock_delay = 5 minutes;
272 knock_delay_channel = 1 minute;
273 max_chans_per_user = 15;
274 max_bans = 100;
275 max_bans_large = 500;
276 default_split_user_count = 0;
277 default_split_server_count = 0;
278 no_create_on_split = no;
279 no_join_on_split = no;
280 burst_topicwho = yes;
281 kick_on_split_riding = no;
282};
283
284serverhide {
285 flatten_links = yes;
286 links_delay = 5 minutes;
287 hidden = no;
288 disable_hidden = no;
289};
290
291/* These are the blacklist settings.
292 * You can have multiple combinations of host and rejection reasons.
92fb5c31 293 * They are used in pairs of one host/rejection reason, or multiple hosts/rejection reason.
212380e3 294 *
295 * These settings should be adequate for most networks, and are (presently)
296 * required for use on AthemeNet.
297 *
298 * Word to the wise: Do not use blacklists like SPEWS for blocking IRC
299 * connections.
300 *
1e56e993 301 * As of charybdis 2.1.3, you can do some keyword substitution on the rejection
92fb5c31 302 * reason. The available keyword substitutions are:
303 *
304 * ${ip} - the user's IP
305 * ${host} - the user's canonical hostname
306 * ${dnsbl-host} - the dnsbl hostname the lookup was done against
307 * ${nick} - the user's nickname
308 * ${network-name} - the name of the network
309 *
212380e3 310 * Note: AHBL (the providers of the below BLs) request that they be
311 * contacted, via email, at admins@2mbit.com before using these BLs.
312 * See <http://www.ahbl.org/services.php> for more information.
313 */
314#blacklist {
315# host = "ircbl.ahbl.org";
92fb5c31 316# 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 317#
318# host = "tor.ahbl.org";
92fb5c31 319# 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 320#};
321
322alias "NickServ" {
323 target = "NickServ";
324};
325
326alias "ChanServ" {
327 target = "ChanServ";
328};
329
330alias "OperServ" {
331 target = "OperServ";
332};
333
334alias "MemoServ" {
335 target = "MemoServ";
336};
337
338alias "NS" {
339 target = "NickServ";
340};
341
342alias "CS" {
343 target = "ChanServ";
344};
345
346alias "OS" {
347 target = "OperServ";
348};
349
350alias "MS" {
351 target = "MemoServ";
352};
353
354general {
355 hide_error_messages = opers;
356 hide_spoof_ips = yes;
357
358 /*
359 * default_umodes: umodes to enable on connect.
360 * If you have enabled the ip_cloaking module, and you want
361 * to make use of it, add +h to this option, i.e.:
362 * default_umodes = "+ih";
363 */
364 default_umodes = "+i";
365
366 default_operstring = "is an IRC Operator";
367 default_adminstring = "is a Server Administrator";
368 servicestring = "is a Network Service";
369 disable_fake_channels = no;
370 tkline_expire_notices = no;
371 default_floodcount = 10;
372 failed_oper_notice = yes;
373 dots_in_ident=2;
374 dot_in_ip6_addr = no;
375 min_nonwildcard = 4;
376 min_nonwildcard_simple = 3;
377 max_accept = 100;
378 max_monitor = 100;
379 anti_nick_flood = yes;
380 max_nick_time = 20 seconds;
381 max_nick_changes = 5;
382 anti_spam_exit_message_time = 5 minutes;
383 ts_warn_delta = 30 seconds;
384 ts_max_delta = 5 minutes;
385 client_exit = yes;
386 collision_fnc = yes;
387 global_snotices = yes;
388 dline_with_reason = yes;
389 kline_delay = 0 seconds;
390 kline_with_reason = yes;
391 kline_reason = "K-Lined";
392 identify_service = "NickServ@services.int";
393 identify_command = "IDENTIFY";
394 non_redundant_klines = yes;
395 warn_no_nline = yes;
396 stats_e_disabled = no;
397 stats_c_oper_only=no;
398 stats_h_oper_only=no;
399 stats_y_oper_only=no;
400 stats_o_oper_only=yes;
401 stats_P_oper_only=no;
402 stats_i_oper_only=masked;
403 stats_k_oper_only=masked;
404 map_oper_only = no;
405 operspy_admin_only = no;
406 operspy_dont_care_user_info = no;
407 caller_id_wait = 1 minute;
408 pace_wait_simple = 1 second;
409 pace_wait = 10 seconds;
410 short_motd = no;
411 ping_cookie = no;
412 connect_timeout = 30 seconds;
413 disable_auth = no;
414 no_oper_flood = yes;
415 glines = no;
416 gline_time = 1 day;
417 gline_min_cidr = 16;
418 idletime = 0;
419 max_targets = 4;
420 client_flood = 20;
421 use_whois_actually = no;
422 oper_only_umodes = operwall, locops, servnotice;
423 oper_umodes = locops, servnotice, operwall, wallop;
424 oper_snomask = "+s";
425 burst_away = yes;
426 nick_delay = 0 seconds; # 15 minutes if you want to enable this
427 reject_ban_time = 1 minute;
428 reject_after_count = 3;
429 reject_duration = 5 minutes;
430};
431
432modules {
433 path = "modules";
434 path = "modules/autoload";
435};