]> jfr.im git - irc/freenode/solanum.git/blame - doc/reference.conf
add ConfigFileEntry.oper_secure_only, to require TLS to oper up (#76)
[irc/freenode/solanum.git] / doc / reference.conf
CommitLineData
a6f63a82 1/* doc/reference.conf - solanum example configuration file
212380e3
WP
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 * Written by ejb, wcampbel, db, leeh and others
8 *
212380e3
WP
9 */
10
11/* IMPORTANT NOTES:
12 *
13 * class {} blocks MUST be specified before anything that uses them. That
14 * means they must be defined before auth {} and before connect {}.
15 *
16 * auth {} blocks MUST be specified in order of precedence. The first one
17 * that matches a user will be used. So place spoofs first, then specials,
18 * then general access, then restricted.
19 *
da77b103
JT
20 * privset {} blocks MUST be specified before anything that uses them. That
21 * means they must be defined before operator {}.
22 *
212380e3
WP
23 * Both shell style (#) and C style comments are supported.
24 *
25 * Files may be included by either:
26 * .include "filename"
27 * .include <filename>
28 *
29 * Times/durations are written as:
30 * 12 hours 30 minutes 1 second
5c0df0e7 31 *
212380e3
WP
32 * Valid units of time:
33 * month, week, day, hour, minute, second
34 *
35 * Valid units of size:
36 * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte
37 *
5c0df0e7
MU
38 * Sizes and times may be singular or plural.
39 */
212380e3
WP
40
41/* Extensions:
42 *
43 * Charybdis contains several extensions that are not enabled by default.
44 * To use them, uncomment the lines below.
45 *
9abdcf1c 46 * Channel mode +-A (admin only) -- chm_adminonly
cdc31cc5 47 * Channel mode +-T (blocks notices) -- chm_nonotice
9abdcf1c
EM
48 * Channel mode +-O (oper only) -- chm_operonly
49 * Channel mode +-S (ssl only) -- chm_sslonly
9abdcf1c
EM
50 * Channel mode +-M (disallow KICK on IRC ops) -- chm_operpeace
51 * Restrict channel creation to logged in users -- createauthonly
52 * Account bans (+b $a[:mask]) -- extb_account
53 * Banned from another channel (+b $j:mask) -- extb_canjoin
54 * Other-channel bans (+b $c:mask) -- extb_channel
55 * Combination extbans -- extb_combi
56 * Extended ban (+b $x:mask) -- extb_extgecos
57 * Hostmask bans (for combination extbans) -- extb_hostmask
58 * Oper bans (+b $o) -- extb_oper
59 * Realname (gecos) bans (+b $r:mask) -- extb_realname
60 * Server bans (+b $s:mask) -- extb_server
61 * SSL bans (+b $z) -- extb_ssl
6c5fa2f6 62 * User mode bans (+b $u:modes) -- extb_usermode
0f8ec938 63 * Helpops system (umode +h) -- helpops
9abdcf1c
EM
64 * HURT system -- hurt
65 * New host mangling (umode +x) -- ip_cloaking_4.0
66 * Old host mangling (umode +h) -- ip_cloaking
67 * Dynamically extend channel limits -- m_extendchans
68 * Find channel forwards -- m_findforwards
69 * /identify support -- m_identify
0ed0a9fe 70 * /locops support -- m_locops
9abdcf1c
EM
71 * Opers cannot be invisible (umode +i) -- no_oper_invis
72 * Far connection notices (snomask +F) -- sno_farconnect
73 * Remote k/d/x line active notices -- sno_globalkline
74 * Remote oper up notices -- sno_globaloper
75 * Global nick-change notices -- sno_globalnickchange
76 * /whois notifications (snomask +W) -- sno_whois
77 * Oper-override (modehacking only) -- override
78 * Stop services kills -- no_kill_services
212380e3 79 */
9abdcf1c 80#loadmodule "extensions/chm_adminonly";
cdc31cc5 81#loadmodule "extensions/chm_nonotice";
9abdcf1c
EM
82#loadmodule "extensions/chm_operonly";
83#loadmodule "extensions/chm_sslonly";
9abdcf1c
EM
84#loadmodule "extensions/chm_operpeace";
85#loadmodule "extensions/createauthonly";
86#loadmodule "extensions/extb_account";
87#loadmodule "extensions/extb_canjoin";
88#loadmodule "extensions/extb_channel";
89#loadmodule "extensions/extb_combi";
90#loadmodule "extensions/extb_extgecos";
91#loadmodule "extensions/extb_hostmask";
92#loadmodule "extensions/extb_oper";
93#loadmodule "extensions/extb_realname";
94#loadmodule "extensions/extb_server";
95#loadmodule "extensions/extb_ssl";
ed2efe76 96#loadmodule "extensions/extb_usermode";
9abdcf1c
EM
97#loadmodule "extensions/helpops";
98#loadmodule "extensions/hurt";
99#loadmodule "extensions/ip_cloaking_4.0";
100#loadmodule "extensions/ip_cloaking";
101#loadmodule "extensions/m_extendchans";
102#loadmodule "extensions/m_findforwards";
103#loadmodule "extensions/m_identify";
0ed0a9fe 104#loadmodule "extensions/m_locops";
9abdcf1c
EM
105#loadmodule "extensions/no_oper_invis";
106#loadmodule "extensions/sno_farconnect";
107#loadmodule "extensions/sno_globalkline";
108#loadmodule "extensions/sno_globalnickchange";
109#loadmodule "extensions/sno_globaloper";
110#loadmodule "extensions/sno_whois";
111#loadmodule "extensions/override";
112#loadmodule "extensions/no_kill_services";
15d7a311 113
212380e3
WP
114/* serverinfo {}: Contains information about the server. (OLD M:) */
115serverinfo {
116 /* name: the name of our server */
117 name = "hades.arpa";
118
212380e3
WP
119 /* sid: the unique server id of our server. This must be three
120 * characters long. The first character must be a digit [0-9], the
121 * remaining two chars may be letters [A-Z] or digits [0-9].
122 *
cda8e9b8 123 * This parameter must be specified for the server to start.
212380e3
WP
124 */
125 sid = "42X";
126
127 /* description: the description of our server. '[' and ']' may not
128 * be used here for compatibility with older servers.
129 */
130 description = "charybdis test server";
131
132 /* network info: the name and description of the network this server
133 * is on. Shown in the 005 reply and used with serverhiding.
134 */
135 network_name = "MyNet";
212380e3 136
212380e3
WP
137 /* vhost: the IP to bind to when we connect outward to ipv4 servers.
138 * This should be an ipv4 IP only.
139 */
cba8bbc3 140 #vhost = "192.0.2.6";
212380e3
WP
141
142 /* vhost6: the IP to bind to when we connect outward to ipv6 servers.
143 * This should be an ipv6 IP only.
144 */
a49b954f 145 #vhost6 = "2001:db8:2::6";
5c0df0e7 146
70a70462 147 /* ssl_cert: certificate (and optionally key) for our ssl server */
b3c4dfd7 148 ssl_cert = "etc/ssl.pem";
b8730cbf 149
70a70462
AJ
150 /* ssl_private_key: our ssl private key (if not contained in ssl_cert file) */
151 #ssl_private_key = "etc/ssl.key";
152
9d6b870d
AJ
153 /* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 2048 */
154 /* If you do not provide parameters, some TLS backends will fail on DHE- ciphers,
155 and some will succeed but use weak, common DH groups! */
b8730cbf
VY
156 ssl_dh_params = "etc/dh.pem";
157
c1725bda
WP
158 /* ssl_cipher_list: A list of ciphers, dependent on your TLS backend */
159 #ssl_cipher_list = "EECDH+HIGH:EDH+HIGH:HIGH:!aNULL";
160
fa1a7bef
JT
161 /* ssld_count: number of ssld processes you want to start, if you
162 * have a really busy server, using N-1 where N is the number of
163 * cpu/cpu cores you have might be useful. A number greater than one
164 * can also be useful in case of bugs in ssld and because ssld needs
165 * two file descriptors per SSL connection.
b8730cbf
VY
166 */
167 ssld_count = 1;
168
169 /* default max clients: the default maximum number of clients
170 * allowed to connect. This can be changed once ircd has started by
171 * issuing:
172 * /quote set maxclients <limit>
c2d96fcb 173 */
101db4c4 174 default_max_clients = 1024;
b583faf9 175
b225bf93
JT
176 /* nicklen: enforced nickname length (for this server only; must not
177 * be longer than the maximum length set while building).
178 */
b583faf9 179 nicklen = 30;
212380e3
WP
180};
181
182/* admin {}: contains admin information about the server. (OLD A:) */
183admin {
184 name = "Smurf target";
185 description = "Main Server Administrator";
186 email = "<syn@packets.r.us>";
187};
188
189/* log {}: contains information about logfiles. */
190log {
191 /* logfiles: the logfiles to use for specific activity. if these
192 * paths are defined, then ircd will log to them, otherwise it wont.
193 *
194 * The confs are, in order:
195 * - userlog: user exits
196 * - fuserlog: failed user connections
197 * - operlog: /oper usage
198 * - foperlog: failed /oper usage
199 * - serverlog: server connects/disconnects
212380e3
WP
200 * - klinelog: klines, etc
201 * - killlog: kills
202 * - operspylog: operspy usage
203 * - ioerrorlog: IO errors
204 */
205 fname_userlog = "logs/userlog";
206 #fname_fuserlog = "logs/fuserlog";
207 fname_operlog = "logs/operlog";
208 #fname_foperlog = "logs/foperlog";
209 fname_serverlog = "logs/serverlog";
212380e3
WP
210 #fname_klinelog = "logs/klinelog";
211 fname_killlog = "logs/killlog";
212 fname_operspylog = "logs/operspylog";
213 #fname_ioerrorlog = "logs/ioerror";
214};
215
216/* class {}: contain information about classes for users (OLD Y:) */
217class "users" {
218 /* class name must go above */
219
220 /* ping time: how often a client must reply to a PING from the
221 * server before they are dropped.
222 */
223 ping_time = 2 minutes;
224
da1b891f
KB
225 /* number per ident: the number of users per user@host networkwide
226 * allowed to connect. Unidented connections are classified as
227 * the same ident.
228 */
229 number_per_ident = 2;
212380e3
WP
230
231 /* number per ip: the number of local users per host allowed */
232 number_per_ip = 3;
233
da1b891f
KB
234 /* number per ip global: the number of network wide connections
235 * per host allowed for a user, including connections to the
236 * local server.
237 */
238 number_per_ip_global = 5;
212380e3 239
bc7c44dc
JT
240 /* cidr_ipv4_bitlen: Limits numbers of connections from a subnet size
241 */
242 cidr_ipv4_bitlen = 24;
243
244 /* cidr_ipv6_bitlen: Limits numbers of connections from a subnet size
212380e3
WP
245 * the following example makes the subnet /64 this is useful
246 * for IPv6 connections in particular
212380e3 247 */
bc7c44dc 248 cidr_ipv6_bitlen = 64;
212380e3 249
5c0df0e7 250 /* number_per_cidr: Number of connections to allow from a subnet of the
bc7c44dc
JT
251 * size given in cidr_ipv4_bitlen/cidr_ipv6_bitlen.
252 * 4 seems to be a good default to me.
212380e3
WP
253 */
254 number_per_cidr = 4;
255
256 /* max number: the maximum number of users allowed in this class */
257 max_number = 100;
258
259 /* sendq: the amount of data allowed in a clients queue before
260 * they are dropped.
261 */
262 sendq = 100 kbytes;
263};
264
265class "restricted" {
266 ping_time = 1 minute 30 seconds;
267 number_per_ip = 1;
268 max_number = 100;
269 sendq = 60kb;
270};
271
272class "opers" {
273 ping_time = 5 minutes;
274 number_per_ip = 10;
275 max_number = 100;
276 sendq = 100kbytes;
277};
278
279class "server" {
280 ping_time = 5 minutes;
281
282 /* connectfreq: only used in server classes. specifies the delay
283 * between autoconnecting to servers.
284 */
285 connectfreq = 5 minutes;
286
7c7065b0 287 /* max_autoconn: the amount of servers to autoconnect to. if the number
2b121c81
JT
288 * of servers in the class is or exceeds this, no more servers in the
289 * class are autoconnected. oper initiated connects are unaffected.
290 * this should usually be set to either 0 or 1. (autoconnecting from
291 * hubs to leaves may cause leaves to function as hubs by having
292 * multiple servers connected to them.)
293 */
7c7065b0 294 max_autoconn = 1;
212380e3 295
19dc1474
EK
296 /* max_number: the maximum number of servers allowed in this class */
297 max_number = 100;
298
212380e3 299 /* sendq: servers need a higher sendq as they are sent more data */
3bb3dcf7 300 sendq = 2 megabytes;
212380e3
WP
301};
302
303/* listen {}: contain information about the ports ircd listens on (OLD P:) */
304listen {
02270e96
WP
305 /* defer_accept: wait for clients to send IRC handshake data before
306 * accepting them. if you intend to use software which depends on the
307 * server replying first, such as BOPM, you should disable this feature.
308 * otherwise, you probably want to leave it on.
309 */
310 defer_accept = yes;
311
212380e3
WP
312 /* port: the specific port to listen on. if no host is specified
313 * before, it will listen on all available IPs.
314 *
5c0df0e7 315 * sslport: the specific port to listen ssl connections on. if no
b8730cbf
VY
316 * host is specified before, it will listen on all available IPs.
317 *
212380e3
WP
318 * ports are seperated via a comma, a range may be specified using ".."
319 */
5c0df0e7 320
212380e3
WP
321 /* port: listen on all available IPs, ports 5000 and 6665 to 6669 */
322 port = 5000, 6665 .. 6669;
5c0df0e7 323
be2447b8
WP
324 /* sslport: listen for ssl connections on all available IPs, port 6697 */
325 sslport = 6697;
212380e3 326
5c0df0e7 327 /* host: set a specific IP/host the ports after the line will listen
212380e3
WP
328 * on. This may be ipv4 or ipv6.
329 */
cba8bbc3 330 host = "192.0.2.6";
212380e3 331 port = 7000, 7001;
b8730cbf 332 sslport = 9000, 9001;
212380e3 333
cba8bbc3 334 host = "2001:db8:2::6";
da1b891f
KB
335 port = 7002;
336 sslport = 9002;
be2447b8
WP
337
338 /* wsock: listeners defined with this option enabled will be websocket listeners,
339 * and will not accept normal clients.
340 */
341 wsock = yes;
342 sslport = 9999;
212380e3
WP
343};
344
345/* auth {}: allow users to connect to the ircd (OLD I:) */
346auth {
b0dc8e03
JT
347 /* user: the user@host allowed to connect. Multiple IPv4/IPv6 user
348 * lines are permitted per auth block. This is matched against the
349 * hostname and IP address (using :: shortening for IPv6 and
350 * prepending a 0 if it starts with a colon) and can also use CIDR
351 * masks.
212380e3 352 */
cba8bbc3
JT
353 user = "*@198.51.100.0/24";
354 user = "*test@2001:db8:1:*";
212380e3 355
f9bb3e0d
CM
356 /* auth_user: This allows specifying a username:password instead of
357 * just a password in PASS, so that a fixed user@host is not
358 * necessary for a specific auth{} block.
359 */
360 #auth_user = "SomeUser";
361
212380e3
WP
362 /* password: an optional password that is required to use this block.
363 * By default this is not encrypted, specify the flag "encrypted" in
364 * flags = ...; below if it is.
365 */
366 password = "letmein";
5c0df0e7 367
212380e3
WP
368 /* spoof: fake the users user@host to be be this. You may either
369 * specify a host or a user@host to spoof to. This is free-form,
370 * just do everyone a favour and dont abuse it. (OLD I: = flag)
371 */
da1b891f 372 spoof = "I.still.hate.packets";
212380e3
WP
373
374 /* Possible flags in auth:
5c0df0e7 375 *
212380e3
WP
376 * encrypted | password is encrypted with mkpasswd
377 * spoof_notice | give a notice when spoofing hosts
378 * exceed_limit (old > flag) | allow user to exceed class user limits
81a05933
EM
379 * kline_exempt (old ^ flag) | exempt this user from k/g/xlines,
380 * | dnsbls, and proxies
212380e3 381 * dnsbl_exempt | exempt this user from dnsbls
81a05933 382 * proxy_exempt | exempt this user from proxies
212380e3
WP
383 * spambot_exempt | exempt this user from spambot checks
384 * shide_exempt | exempt this user from serverhiding
385 * jupe_exempt | exempt this user from generating
386 * warnings joining juped channels
387 * resv_exempt | exempt this user from resvs
da1b891f
KB
388 * flood_exempt | exempt this user from flood limits
389 * USE WITH CAUTION.
212380e3
WP
390 * no_tilde (old - flag) | don't prefix ~ to username if no ident
391 * need_ident (old + flag) | require ident for user in this class
b1594414 392 * need_ssl | require SSL/TLS for user in this class
212380e3 393 * need_sasl | require SASL id for user in this class
a4721f5e 394 * extend_chans | allow this user to join more channels than normal
57657a33
EK
395 * kline_spoof_ip | if this block has a spoof host, klines match only
396 * | the spoof and not the underlying IP
212380e3
WP
397 */
398 flags = kline_exempt, exceed_limit;
5c0df0e7 399
212380e3
WP
400 /* class: the class the user is placed in */
401 class = "opers";
402};
403
404auth {
405 /* redirect: the server and port to redirect a user to. A user does
406 * not have to obey the redirection, the ircd just suggests to them
407 * an alternative server.
408 */
cba8bbc3 409 redirserv = "irc.example.net";
212380e3 410 redirport = 6667;
5c0df0e7 411
cba8bbc3 412 user = "*.example.com";
212380e3
WP
413
414 /* class: a class is required even though it is not used */
415 class = "users";
416};
417
418auth {
419 user = "*@*";
420 class = "users";
212380e3
WP
421};
422
da77b103
JT
423/* privset{}: defines operator privilege sets. */
424privset "local_op" {
425 /* privs: controls the activities and commands an oper is
426 * allowed to do on the server
427 *
428 * Available options:
429 *
d4f7eb4c
EK
430 * oper:general: enable most general oper privileges that came
431 * with +o in older releases
2f68b6e2
EK
432 * auspex:oper: allows the oper to see through oper hiding
433 * auspex:umodes: allows viewing other users' modes
434 * auspex:cmodes: shows privileged cmodes
435 * auspex:hostname: shows hidden hostnames/ips
436 * oper:privs: allows /stats o/O and seeing privset in /whois
58a490f9 437 * oper:testline: allows /testline and /testgecos
7d84719d 438 * oper:kill: allows local and remote users to be /KILL'd
3eae266c 439 * oper:routing: allows remote SQUIT and CONNECT
da77b103
JT
440 * oper:kline: allows KLINE and DLINE
441 * oper:unkline: allows UNKLINE and UNDLINE
442 * snomask:nick_changes: allows oper to see nickchanges via snomask +n
443 * oper:rehash: allows oper to REHASH config
444 * oper:die: allows DIE and RESTART
445 * oper:admin: gives admin privileges. admins
446 * may (un)load modules and see various
447 * additional information.
448 * oper:hidden_admin: gives admin privileges except
2f68b6e2
EK
449 * will not have the admin lines in
450 * whois.
451 * oper:xline: allows use of /quote xline/unxline
452 * oper:resv: allows /quote resv/unresv
453 * oper:cmodes: allows cmode +LP
da77b103 454 * oper:operwall: allows the oper to send/receive operwalls
2f68b6e2
EK
455 * oper:spy: allows 'operspy' features to see through +s
456 * channels etc. see /quote help operspy
da77b103
JT
457 * oper:hidden: hides the oper from /stats p
458 * oper:remoteban: allows remote kline etc
459 * oper:mass_notice: allows sending wallops and mass notices
2f68b6e2 460 * oper:grant: allows using the GRANT command
734e7747 461 * usermode:servnotice: allows setting +s
e06b75d2
EK
462 *
463 * Privileges provided by extensions include:
464 *
465 * oper:dehelper: allows the DEHELPER command (from extensions/helpops)
466 * oper:override: enables oper override via umode +p (from extensions/override)
467 * oper:receive_immunity:
468 * confers the benefits of chmode +M (operpeace) (from extensions/chm_operpeace)
0f8ec938 469 * usermode:helpops allows setting +h (from extensions/helpops)
da77b103 470 */
7d84719d 471 privs = oper:general, oper:privs, oper:testline, oper:kill, oper:operwall, usermode:servnotice,
f590bc6c 472 auspex:oper, auspex:hostname, auspex:umodes, auspex:cmodes;
da77b103
JT
473};
474
475privset "server_bot" {
476 /* extends: a privset to inherit in this privset */
477 extends = "local_op";
d9e7ca49 478 privs = oper:kline, oper:remoteban, snomask:nick_changes;
da77b103
JT
479};
480
481privset "global_op" {
482 extends = "local_op";
7d84719d 483 privs = oper:routing, oper:kline, oper:unkline, oper:xline,
80303ab7 484 oper:resv, oper:cmodes, oper:mass_notice, oper:remoteban;
da77b103
JT
485};
486
487privset "admin" {
488 extends = "global_op";
fe749d37 489 privs = oper:admin, oper:die, oper:rehash, oper:spy, oper:grant;
da77b103
JT
490};
491
492/* operator {}: defines ircd operators. (OLD O:) */
212380e3
WP
493operator "god" {
494 /* name: the name of the oper must go above */
495
496 /* user: the user@host required for this operator. CIDR *is*
497 * supported now. auth{} spoofs work here, other spoofs do not.
da1b891f 498 * multiple user="" lines are supported.
212380e3
WP
499 */
500 user = "*god@*";
501 user = "*@127.0.0.1";
502
503 /* password: the password required to oper. Unless ~encrypted is
5c0df0e7 504 * contained in flags = ...; this will need to be encrypted using
212380e3
WP
505 * mkpasswd, MD5 is supported
506 */
507 password = "etcnjl8juSU1E";
508
509 /* rsa key: the public key for this oper when using Challenge.
5c0df0e7 510 * A password should not be defined when this is used, see
212380e3
WP
511 * doc/challenge.txt for more information.
512 */
513 #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
514
ff31db84
WP
515 /* fingerprint: if specified, the oper's client certificate
516 * fingerprint will be checked against the specified fingerprint
517 * below.
518 */
519 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
520
212380e3
WP
521 /* umodes: the specific umodes this oper gets when they oper.
522 * If this is specified an oper will not be given oper_umodes
523 * These are described above oper_only_umodes in general {};
524 */
525 #umodes = locops, servnotice, operwall, wallop;
526
527 /* snomask: specific server notice mask on oper up.
528 * If this is specified an oper will not be given oper_snomask.
529 */
530 snomask = "+Zbfkrsuy";
531
da77b103
JT
532 /* flags: misc options for the operator. You may prefix an option
533 * with ~ to disable it, e.g. ~encrypted.
212380e3 534 *
da77b103 535 * Default flags are encrypted.
212380e3
WP
536 *
537 * Available options:
538 *
539 * encrypted: the password above is encrypted [DEFAULT]
b1594414 540 * need_ssl: must be using SSL/TLS to oper up
da1b891f 541 */
da77b103
JT
542 flags = encrypted;
543
544 /* privset: privileges set to grant */
545 privset = "admin";
212380e3
WP
546};
547
548/* connect {}: controls servers we connect to (OLD C:, N:, H:, L:) */
549connect "irc.uplink.com" {
550 /* the name must go above */
551
552 /* host: the host or IP to connect to. If a hostname is used it
553 * must match the reverse dns of the server.
554 */
cba8bbc3 555 host = "203.0.113.3";
212380e3
WP
556
557 /* vhost: the host or IP to bind to for this connection. If this
558 * is not specified, the default vhost (in serverinfo {}) is used.
559 */
cba8bbc3 560 #vhost = "192.0.2.131";
212380e3
WP
561
562 /* passwords: the passwords we send (OLD C:) and accept (OLD N:).
563 * The remote server will have these passwords reversed.
564 */
565 send_password = "password";
566 accept_password = "anotherpassword";
567
3cc262f0
AJ
568 /* fingerprint: if flags = ssl is specified, the server's
569 * certificate fingerprint will be checked against the fingerprint
570 * specified below. required if using flags = ssl.
ff0cc1e6
WP
571 */
572 #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
573
212380e3
WP
574 /* port: the port to connect to this server on */
575 port = 6666;
576
212380e3
WP
577 /* class: the class this server is in */
578 class = "server";
579
580 /* flags: controls special options for this server
581 * encrypted - marks the accept_password as being crypt()'d
582 * autoconn - automatically connect to this server
583 * compressed - compress traffic via ziplinks
584 * topicburst - burst topics between servers
b8730cbf 585 * ssl - ssl/tls encrypted server connections
087555a0 586 * no-export - marks the link as a no-export link (not exported to other links)
212380e3
WP
587 */
588 flags = compressed, topicburst;
589};
590
0e1f3667 591connect "ipv6.lame.server" {
d4214e94 592 host = "192.0.2.1";
cba8bbc3 593 host = "2001:db8:3::8";
da1b891f
KB
594 send_password = "password";
595 accept_password = "password";
596 port = 6666;
212380e3 597
d4214e94
SA
598 /* aftype: controls whether the outgoing connection uses "ipv4" or "ipv6".
599 * Default is to try either at random.
212380e3
WP
600 */
601 aftype = ipv6;
da1b891f 602 class = "server";
212380e3
WP
603};
604
b8730cbf
VY
605connect "ssl.uplink.com" {
606 /* Example of ssl server-to-server connection, ssl flag doesn't need
607 * compressed flag, 'cause it uses own compression
608 */
cba8bbc3 609 host = "203.0.113.129";
b8730cbf
VY
610 send_password = "password";
611 accept_password = "anotherpassword";
612 port = 9999;
b8730cbf
VY
613 class = "server";
614 flags = ssl, topicburst;
615};
616
f57d88bc 617/* cluster {}; servers that we propagate things to automatically. */
212380e3
WP
618cluster {
619 /* name: the server to share with, this can be a wildcard and may be
620 * stacked.
621 */
622 /* flags: list of what to share, all the name lines above this (up
623 * until another flags entry) will receive these flags.
624 *
625 * kline - share perm klines
626 * tkline - share temp klines
627 * unkline - share unklines
628 * locops - share locops
629 * xline - share perm xlines
630 * txline - share temp xlines
631 * unxline - share unxlines
632 * resv - share perm resvs
633 * tresv - share temp resvs
634 * unresv - share unresvs
635 * all - share all of the above
636 */
637
0e1f3667
EM
638 /* share klines/unklines/xlines with *.lan */
639 name = "*.lan";
212380e3
WP
640 flags = kline, unkline, xline;
641
642 /* share locops with irc.ircd-ratbox.org and ircd.ircd-ratbox.org */
643 name = "irc.ircd-ratbox.org";
644 name = "ircd.ircd-ratbox.org";
645 flags = locops;
646};
647
648/* service{}: privileged servers (services). These servers have extra
649 * privileges such as setting login names on users and introducing clients
f57d88bc 650 * with umode +S (unkickable, hide channels, etc).
212380e3
WP
651 * Do not place normal servers here.
652 * There may be only one service{} block.
653 */
654service {
655 /* name: the server name. These may be stacked. */
656 name = "services.int";
657};
658
b808adf9 659/* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */
212380e3 660exempt {
cba8bbc3 661 ip = "192.0.2.0/24";
212380e3
WP
662
663 /* these may be stacked */
664 ip = "127.0.0.1";
212380e3
WP
665};
666
d1239f61
EK
667/* secure {}: IPs that are considered to be secure networks, and get
668 * +Z without using TLS */
669secure {
670 ip = "127.0.0.1";
671};
672
212380e3
WP
673/* The channel block contains options pertaining to channels */
674channel {
675 /* invex: Enable/disable channel mode +I, a n!u@h list of masks
676 * that can join a +i channel without an invite.
677 */
678 use_invex = yes;
679
680 /* except: Enable/disable channel mode +e, a n!u@h list of masks
681 * that can join a channel through a ban (+b).
682 */
683 use_except = yes;
684
2da6f6eb
JT
685 /* forward: Enable/disable channel mode +f, a channel to forward
686 * users to if they can't join because of +i etc. Also enables ban
687 * forwarding, <mask>$<channel>.
688 */
689 use_forward = yes;
690
212380e3
WP
691 /* knock: Allows users to request an invite to a channel that
692 * is locked somehow (+ikl). If the channel is +p or you are banned
693 * the knock will not be sent.
694 */
695 use_knock = yes;
696
212380e3
WP
697 /* knock delay: The amount of time a user must wait between issuing
698 * the knock command.
699 */
700 knock_delay = 5 minutes;
701
702 /* knock channel delay: How often a knock to any specific channel
703 * is permitted, regardless of the user sending the knock.
704 */
705 knock_delay_channel = 1 minute;
706
707 /* max chans: The maximum number of channels a user can join/be on. */
708 max_chans_per_user = 15;
709
a4721f5e
WP
710 /* max chans (large): The extended maximum number of channels a user can join. */
711 max_chans_per_user_large = 60;
712
da1b891f
KB
713 /* max bans: maximum number of +b/e/I/q modes in a channel */
714 max_bans = 100;
212380e3 715
da1b891f
KB
716 /* max bans: maximum number of +b/e/I/q modes in a +L channel */
717 max_bans_large = 500;
212380e3 718
da1b891f 719 /* splitcode: split users, split servers and either no join on split
212380e3
WP
720 * or no create on split must be enabled for split checking.
721 * splitmode will be entered on either split users or split servers
722 * dropping below the limit.
723 *
724 * you may force splitmode to be permanent by /quote set splitmode on
725 */
726
727 /* split users: when the usercount is lower than this level, consider
728 * ourselves split. this must be set for automatic splitmode
729 */
730 default_split_user_count = 0;
731
732 /* split servers: when the amount of servers that have acknowledged
5c0df0e7 733 * theyve finished bursting is lower than this, consider ourselves
212380e3
WP
734 * split. this must be set for automatic splitmode
735 */
736 default_split_server_count = 0;
737
738 /* split: no create: disallow users creating channels on split */
739 no_create_on_split = no;
740
741 /* split: no join: disallow users joining channels at all on a split */
742 no_join_on_split = no;
743
744 /* burst topicwho: when bursting topics, also burst the topic setter */
745 burst_topicwho = yes;
746
747 /* kick on split riding: kick users riding splits to join +i or +k
748 * channels. more precisely, if a bursting server sends an SJOIN
749 * for a channel with a lower TS with either a +i mode or a +k
750 * mode with a different key, kick all local users.
751 *
752 * note: this does not take +r, +b, +e and +I into account.
212380e3
WP
753 */
754 kick_on_split_riding = no;
6865c0b0
JT
755
756 /* only ascii channels: disable local users joining channels
757 * containing characters outside the range 33-126 (non-printable
758 * or non-ASCII).
759 */
760 only_ascii_channels = no;
da1b891f 761
c2c25552
JT
762 /* resv_forcepart: force any local users to part a channel
763 * when a RESV is issued.
764 */
765 resv_forcepart = yes;
717238d2
JT
766
767 /* channel target change: restrict how many channels users can
768 * message per unit of time. IRC operators, channel operators and
769 * voiced users are exempt.
770 */
771 channel_target_change = yes;
341f971e
SB
772
773 /* disable local channels: if yes, then local channels will not be
774 * supported.
775 */
776 disable_local_channels = no;
63eb8567
WP
777
778 /* autochanmodes: the channel modes that should be automatically set
779 * when a channel is created.
780 */
781 autochanmodes = "+nt";
d513218a
WP
782
783 /* displayed_usercount: the minimum amount of users on a channel before it
784 * is displayed in LIST. this parameter can be overridden using ELIST parameters,
785 * such as LIST >0.
786 */
787 displayed_usercount = 3;
14482679
WP
788
789 /* strip_topic_colors: whether or not color codes in TOPIC should be stripped. */
790 strip_topic_colors = no;
04e5ed6c
JK
791
792 /* opmod_send_statusmsg: format messages sent to ops due to +z
793 * as PRIVMSG @#channel when sent to clients.
794 */
795 opmod_send_statusmsg = no;
212380e3
WP
796};
797
798
799/* The serverhide block contains the options regarding serverhiding */
800serverhide {
4acf2281
JT
801 /* flatten links: this option will hide various routing information
802 * and make all servers in /links appear that they are linked to
803 * this server.
212380e3
WP
804 */
805 flatten_links = no;
806
994544c2
JT
807 /* links delay: how long to wait before showing splits or new
808 * servers in a flattened /links output.
212380e3
WP
809 */
810 links_delay = 5 minutes;
811
4acf2281
JT
812 /* hidden: hide this server from a /links output on servers with
813 * flatten_links enabled. this allows hub servers to be hidden etc.
212380e3 814 */
da1b891f 815 hidden = no;
212380e3
WP
816
817 /* disable hidden: prevent servers hiding themselves from a
818 * /links ouput.
819 */
820 disable_hidden = no;
821};
822
823/* These are the blacklist settings.
824 * You can have multiple combinations of host and rejection reasons.
b2324470 825 * They are used in pairs of one host/rejection reason.
212380e3 826 *
f105844a 827 * These settings should be adequate for most networks.
212380e3
WP
828 *
829 * Word to the wise: Do not use blacklists like SPEWS for blocking IRC
830 * connections.
831 *
92fb5c31
WP
832 * As of charybdis 2.2, you can do some keyword substitution on the rejection
833 * reason. The available keyword substitutions are:
834 *
835 * ${ip} - the user's IP
836 * ${host} - the user's canonical hostname
837 * ${dnsbl-host} - the dnsbl hostname the lookup was done against
838 * ${nick} - the user's nickname
839 * ${network-name} - the name of the network
840 *
0a1e77c2
EM
841 * As of charybdis 3.4, a type parameter is supported, which specifies the
842 * address families the blacklist supports. IPv4 and IPv6 are supported.
843 * IPv4 is currently the default as few blacklists support IPv6 operation
844 * as of this writing.
845 *
3c93d380
EM
846 * As of charybdis 3.5, a matches parameter is allowed; if omitted, any result
847 * is considered a match. If included, a comma-separated list of *quoted*
848 * strings is allowed to match queries. They may be of the format "0" to "255"
849 * to match the final octet (e.g. 127.0.0.1) or "127.x.y.z" to explicitly match
850 * an A record. The blacklist is only applied if it matches anything in the
f0bce9d9 851 * list. You may freely mix full IP's and final octets.
5c0df0e7 852 *
f0bce9d9
EM
853 * Consult your blacklist provider for the meaning of these parameters; they
854 * are usually used to denote different ban types.
212380e3 855 */
57b8cb0f 856blacklist {
40e92fca 857 host = "rbl.efnetrbl.org";
0a1e77c2 858 type = ipv4;
40e92fca 859 reject_reason = "${nick}, your IP (${ip}) is listed in EFnet's RBL. For assistance, see http://efnetrbl.org/?i=${ip}";
57b8cb0f 860
3c93d380 861 /* Example of a blacklist that supports both IPv4 and IPv6 and using matches */
0a1e77c2 862# host = "foobl.blacklist.invalid";
3c93d380 863# matches = "4", "6", "127.0.0.10";
0a1e77c2
EM
864# type = ipv4, ipv6;
865# reject_reason = "${nick}, your IP (${ip}) is listed in ${dnsbl-host} for some reason. In order to protect ${network-name} from abuse, we are not allowing connections listed in ${dnsbl-host} to connect";
57b8cb0f 866};
212380e3 867
8275e270
EM
868/* These are the OPM settings.
869 * This is similar to the functionality provided by BOPM. It will scan incoming
870 * connections for open proxies by connecting to clients and attempting several
871 * different open proxy handshakes. If they connect back to us (via a dedicated
872 * listening port), and send back the data we send them, they are considered
873 * an open proxy. For politeness reasons (users may be confused by the incoming
874 * connection attempts if they are logging incoming connections), the user is
875 * notified upon connect if they are being scanned.
876 *
877 * WARNING:
cfb92536
EM
878 * These settings are considered experimental. Only the most common proxy types
879 * are checked for (Charybdis is immune from POST and GET proxies). If you are
28f87746 880 * not comfortable with experimental code, do not use this feature.
8275e270 881 */
28f87746 882#opm {
8275e270
EM
883 /* IPv4 address to listen on. This must be a publicly facing IP address
884 * to be effective.
885 * If omitted, it defaults to serverinfo::vhost.
886 */
887 #listen_ipv4 = "127.0.0.1";
888
889 /* IPv4 port to listen on.
890 * This should not be the same as any existing listeners.
891 */
e2a06878 892 #port_v4 = 32000;
8275e270
EM
893
894 /* IPv6 address to listen on. This must be a publicly facing IP address
895 * to be effective.
896 * If omitted, it defaults to serverinfo::vhost6.
897 */
d4214e94 898 #listen_ipv6 = "::1";
8275e270
EM
899
900 /* IPv6 port to listen on.
901 * This should not be the same as any existing listeners.
902 */
e2a06878 903 #port_v6 = 32000;
8275e270 904
4dbed1ed
EM
905 /* You can also set the listen_port directive which will set both the
906 * IPv4 and IPv6 ports at once.
8275e270 907 */
28f87746 908 #listen_port = 32000;
51fa2ab8 909
9bba0f61
EM
910 /* This sets the timeout in seconds before ending open proxy scans.
911 * Values less than 1 or greater than 60 are ignored.
912 * It is advisable to keep it as short as feasible, so clients do not
913 * get held up by excessively long scan times.
914 */
28f87746 915 #timeout = 5;
9bba0f61 916
51fa2ab8
EM
917 /* These are the ports to scan for SOCKS4 proxies on. They may overlap
918 * with other scan types. Sensible defaults are given below.
919 */
28f87746 920 #socks4_ports = 80, 443, 1080, 8000, 8080, 10800;
51fa2ab8
EM
921
922 /* These are the ports to scan for SOCKS5 proxies on. They may overlap
923 * with other scan types. Sensible defaults are given below.
924 */
28f87746 925 #socks5_ports = 80, 443, 1080, 8000, 8080, 10800;
fabe8b94 926
eb0814b3 927 /* These are the ports to scan for HTTP CONNECT proxies on (plaintext).
fabe8b94
EM
928 * They may overlap with other scan types. Sensible defaults are given
929 * below.
930 */
28f87746 931 #httpconnect_ports = 80, 8080, 8000;
eb0814b3
EM
932
933 /* These are the ports to scan for HTTPS CONNECT proxies on (SSL).
934 * They may overlap with other scan types. Sensible defaults are given
935 * below.
936 */
28f87746
AJ
937 #httpsconnect_ports = 443, 4443;
938#};
8275e270 939
212380e3
WP
940/*
941 * Alias blocks allow you to define custom commands. (Old m_sshortcut.c)
942 * They send PRIVMSG to the given target. A real command takes
943 * precedence above an alias.
944 */
945alias "NickServ" {
946 /* the name must go above */
947
948 /* target: the target nick (must be a network service) or
949 * user@server (cannot be this server, only opers can use
950 * user starting with "opers" reliably, interpreted on the target
951 * server only so you may need to use nick@server instead)
952 */
953 target = "NickServ";
954};
955
956alias "ChanServ" {
957 target = "ChanServ";
958};
959
960alias "OperServ" {
961 target = "OperServ";
962};
963
964alias "MemoServ" {
965 target = "MemoServ";
966};
967
968alias "NS" {
969 target = "NickServ";
970};
971
972alias "CS" {
973 target = "ChanServ";
974};
975
976alias "OS" {
977 target = "OperServ";
978};
979
980alias "MS" {
981 target = "MemoServ";
982};
983
984/* The general block contains many of the options that were once compiled
985 * in options in config.h. The general block is read at start time.
986 */
987general {
988 /* hide error messages: defines whether error messages from
922aa826
JT
989 * servers that are not deemed fully safe are hidden or not.
990 * These can sometimes contain IPs and can have an adverse
991 * effect on server ip hiding. Set to:
212380e3
WP
992 * yes: hide from opers and admin
993 * opers: hide from opers only
994 * no: do not hide error messages
922aa826 995 * Admins on other servers count as opers.
212380e3
WP
996 */
997 hide_error_messages = opers;
998
999 /* hide spoof ips: hide the real ips of auth{} spoofed users
1000 * If disabled, local opers can see them.
1001 * Dynamic spoofs (e.g. set by services) are unaffected by this;
1002 * any oper (local and remote) can see the real ip.
212380e3
WP
1003 */
1004 hide_spoof_ips = yes;
1005
1006 /* default umodes: umodes to set upon connection
1007 * If you have enabled the ip_cloaking extension, and you wish for
a8560aff 1008 * incoming clients to be set +h or +x upon connection, add +h or +x to the umode
212380e3
WP
1009 * string below.
1010 */
1011 default_umodes = "+i";
1012
1013 /* default operstring: defines the default oper response
1014 * in /whois queries, eg "is an IRC Operator".
1015 * After startup use /quote set operstring to change.
1016 */
1017 default_operstring = "is an IRC Operator";
1018
1019 /* default adminstring: defines the default admin response
1020 * in /whois queries, eg "is a Server Administrator".
1021 * After startup use /quote set adminstring to change.
1022 */
1023 default_adminstring = "is a Server Administrator";
1024
1025 /* servicestring: defines the response for opered services (+S)
1026 * in /whois queries, eg "is a Network Service".
1027 * This is updated on rehash.
1028 */
1029 servicestring = "is a Network Service";
1030
7d33cce8
MT
1031 /*
1032 * Nick of the network's SASL agent. Used to check whether services are here,
1033 * SASL credentials are only sent to its server. Needs to be a service.
1034 *
1035 * Defaults to SaslServ if unspecified.
1036 */
1037 sasl_service = "SaslServ";
1038
212380e3
WP
1039 /* disable fake channels: disable local users joining fake versions
1040 * of channels, eg #foo^B^B. Disables bold, mirc colour, reverse,
1041 * underline and hard space. (ASCII 2, 3, 22, 31, 160 respectively).
1042 */
1043 disable_fake_channels = no;
1044
da1b891f
KB
1045 /* tkline_expire_notices: give a notice to opers when a tkline
1046 * expires
1047 */
1048 tkline_expire_notices = no;
212380e3
WP
1049
1050 /* floodcount: the default value of floodcount that is configurable
1051 * via /quote set floodcount. This is the amount of lines a user
1052 * may send to any other user/channel in one second.
1053 */
da1b891f 1054 default_floodcount = 10;
212380e3 1055
5c0df0e7 1056 /* failed oper notice: send a notice to all opers on the server when
212380e3
WP
1057 * someone tries to OPER and uses the wrong password, host or ident.
1058 */
1059 failed_oper_notice = yes;
1060
1061 /* dots in ident: the amount of '.' characters permitted in an ident
1062 * reply before the user is rejected.
1063 */
3bb3dcf7 1064 dots_in_ident = 2;
212380e3 1065
da1b891f 1066 /* min nonwildcard: the minimum non wildcard characters in k/d/g lines
212380e3
WP
1067 * placed via the server. klines hand placed are exempt from limits.
1068 * wildcard chars: '.' '*' '?' '@'
1069 */
1070 min_nonwildcard = 4;
1071
1072 /* min nonwildcard simple: the minimum non wildcard characters in
1073 * xlines/resvs placed via the server.
1074 * wildcard chars: '*' '?'
1075 */
1076 min_nonwildcard_simple = 3;
1077
da1b891f
KB
1078 /* max accept: maximum allowed /accept's for +g usermode */
1079 max_accept = 20;
212380e3 1080
5f8fb56d
AW
1081 /* max monitor: the maximum amount of nicknames a client may have in
1082 * their monitor (server-side notify) list.
1083 */
1084 max_monitor = 100;
1085
212380e3
WP
1086 /* nick flood: enable the nickflood control code */
1087 anti_nick_flood = yes;
1088
1089 /* nick flood: the nick changes allowed in the specified period */
1090 max_nick_time = 20 seconds;
1091 max_nick_changes = 5;
1092
da1b891f 1093 /* anti spam time: the minimum time a user must be connected before
212380e3
WP
1094 * custom quit messages are allowed.
1095 */
da1b891f 1096 anti_spam_exit_message_time = 5 minutes;
212380e3
WP
1097
1098 /* ts delta: the time delta allowed between server clocks before
1099 * a warning is given, or before the link is dropped. all servers
1100 * should run ntpdate/rdate to keep clocks in sync
1101 */
1102 ts_warn_delta = 30 seconds;
1103 ts_max_delta = 5 minutes;
1104
f09c28e1 1105 /* client exit: prepend a user's quit message with "Quit: " */
212380e3
WP
1106 client_exit = yes;
1107
1108 /* collision fnc: change user's nick to their UID instead of
1109 * killing them, if possible. This setting only applies to nick
1110 * collisions detected on this server. Only enable this if
1111 * all servers on the network allow remote nicks to start with
1112 * a digit.
1113 */
1114 collision_fnc = yes;
1115
330692a1
KB
1116 /* resv fnc: change a user's nick to a nick they have recently used
1117 * (or their UID, if no such nick can be found) when a resv matching
1118 * them is set by services. Only enable this if all servers on the
1119 * network allow remote nicks to start with a digit.
1120 */
1121 resv_fnc = yes;
1122
212380e3
WP
1123 /* global snotices: send out certain snotices (most +b, +f, +y,
1124 * some +s) to other servers via ENCAP SNOTE. Received SNOTEs are
1125 * displayed unconditionally.
1126 */
1127 global_snotices = yes;
5c0df0e7
MU
1128
1129 /* dline reason: show the user the dline reason when they connect
212380e3
WP
1130 * and are dlined.
1131 */
1132 dline_with_reason = yes;
5c0df0e7 1133
5c0df0e7 1134 /* kline reason: show the user the reason why they are k/dlined
212380e3
WP
1135 * on exit. may give away who set k/dline when set via tcm.
1136 */
1137 kline_with_reason = yes;
1138
6292d72b
EK
1139 /* tkline duration: when showing users their k/dline reason (see
1140 * kline_with_reason), don't add "Temporary K-line 123 min."
1141 */
1142 hide_tkdline_duration = no;
1143
212380e3
WP
1144 /* kline reason: make the users quit message on channels this
1145 * reason instead of the oper's reason.
1146 */
1147 kline_reason = "Connection closed";
1148
1149 /* identify to services via server password
1150 * if auth{} block had no password but the user specified a
1151 * server password anyway, send a PRIVMSG to <identify_service>
1152 * with as text <identify_command> <password>.
1153 */
1154 identify_service = "NickServ@services.int";
1155 identify_command = "IDENTIFY";
1156
1157 /* non redundant klines: flag and ignore redundant klines */
1158 non_redundant_klines = yes;
1159
1160 /* warn no nline: warn opers about servers that try to connect but
5c0df0e7 1161 * we dont have a connect {} block for. Twits with misconfigured
212380e3
WP
1162 * servers can get really annoying with this enabled.
1163 */
1164 warn_no_nline = yes;
1165
dca9e552 1166 /* use propagated bans: KLINE, XLINE and RESV set fully propagated bans.
3cbbfb25
JT
1167 * That means the bans are part of the netburst and restarted/split
1168 * servers will get them, but they will not apply to 3.2 and older
1169 * servers at all.
1702b694
JT
1170 */
1171 use_propagated_bans = yes;
1172
212380e3
WP
1173 /* stats e disabled: disable stats e. useful if server ips are
1174 * exempted and you dont want them listing on irc.
1175 */
1176 stats_e_disabled = no;
1177
1178 /* stats c oper only: make stats c (connect {}) oper only */
3bb3dcf7 1179 stats_c_oper_only = no;
212380e3 1180
212380e3 1181 /* stats y oper only: make stats y (class {}) oper only */
3bb3dcf7 1182 stats_y_oper_only = no;
212380e3
WP
1183
1184 /* stats o oper only: make stats o (opers) oper only */
3bb3dcf7 1185 stats_o_oper_only = yes;
212380e3
WP
1186
1187 /* stats P oper only: make stats P (ports) oper only
5c0df0e7 1188 * NOTE: users doing stats P will never be given the ips that the
212380e3
WP
1189 * server listens on, simply the ports.
1190 */
3bb3dcf7 1191 stats_P_oper_only = no;
212380e3
WP
1192
1193 /* stats i oper only: make stats i (auth {}) oper only. set to:
1194 * yes: show users no auth blocks, made oper only.
1195 * masked: show users first matching auth block
1196 * no: show users all auth blocks.
1197 */
3bb3dcf7 1198 stats_i_oper_only = masked;
212380e3
WP
1199
1200 /* stats k/K oper only: make stats k/K (klines) oper only. set to:
1201 * yes: show users no auth blocks, made oper only
1202 * masked: show users first matching auth block
1203 * no: show users all auth blocks.
1204 */
3bb3dcf7 1205 stats_k_oper_only = masked;
212380e3 1206
eafe4df9
EK
1207 /* stats l/L oper only:
1208 * yes: non-opers can't use this at all
1209 * self: non-opers see only themselves
1210 * no: show targeted users or non-hidden opers to everyone
1211 */
1212 stats_l_oper_only = self;
1213
da1b891f
KB
1214 /* map oper only: make /map oper only */
1215 map_oper_only = no;
212380e3
WP
1216
1217 /* operspy admin only: make operspy notices to +Z admin only */
1218 operspy_admin_only = no;
1219
1220 /* operspy dont care user info: treat /who mask as if there was
1221 * an '!' always; do not log or server notice about operspy
1222 * /who mask, /masktrace and /scan. channel information is still
1223 * protected. */
1224 operspy_dont_care_user_info = no;
1225
1226 /* caller id wait: time between notifying a +g user that somebody
1227 * is messaging them.
1228 */
1229 caller_id_wait = 1 minute;
1230
1231 /* pace wait simple: time between use of less intensive commands
1232 * (HELP, remote WHOIS, WHOWAS)
1233 */
1234 pace_wait_simple = 1 second;
1235
1236 /* pace wait: time between more intensive commands
1237 * (ADMIN, INFO, LIST, LUSERS, MOTD, STATS, VERSION)
1238 */
1239 pace_wait = 10 seconds;
1240
1241 /* short motd: send clients a notice telling them to read the motd
1242 * instead of forcing a motd to clients who may simply ignore it.
1243 */
1244 short_motd = no;
1245
1246 /* ping cookies: require clients to respond exactly to a ping command,
1247 * can help block certain types of drones and FTP PASV mode spoofing.
1248 */
1249 ping_cookie = no;
1250
1251 /* connect timeout: sets how long we should wait for a connection
1252 * request to succeed
1253 */
1254 connect_timeout = 30 seconds;
1255
0ffb8106
JH
1256 /* ident timeout: Amount of time (in seconds) that the IRCd will
1257 * wait for a user to respond to an ident request.
1258 */
944b0584 1259 default_ident_timeout = 5;
0ffb8106 1260
212380e3
WP
1261 /* disable auth: disables identd checking */
1262 disable_auth = no;
1263
1264 /* no oper flood: increase flood limits for opers. */
1265 no_oper_flood = yes;
1266
212380e3
WP
1267 /* REMOVE ME. The following line checks you've been reading. */
1268 havent_read_conf = yes;
5c0df0e7
MU
1269
1270 /* max targets: the maximum amount of targets in a single
212380e3
WP
1271 * PRIVMSG/NOTICE. set to 999 NOT 0 for unlimited.
1272 */
1273 max_targets = 4;
1274
b3a00991
SB
1275 /* post-registration delay: wait this long before processing commands from a newly
1276 * registered user. Used to allow network utility bots to perform any actions
1277 * (such as host changes or proxy scanning) before the user can join channels.
1278 */
1279 post_registration_delay = 2 seconds;
1280
da1b891f
KB
1281 /* use_whois_actually: send clients requesting a whois a numeric
1282 * giving the real IP of non-spoofed clients to prevent DNS abuse.
1283 */
1284 use_whois_actually = yes;
212380e3
WP
1285
1286 /* usermodes configurable: a list of usermodes for the options below
1287 *
b9b28600 1288 * +g - callerid - Server-side private message allow list
212380e3 1289 * +D - deaf - Don't see channel messages
5c0df0e7 1290 * +i - invisible - Not shown in NAMES or WHO unless you share a
212380e3
WP
1291 * a channel
1292 * +l - locops - See LOCOPS messages
1293 * +Q - noforward - Unaffected by channel forwarding
1294 * +R - regonlymsg - No messages from unindentified
1295 * +s - servnotice - See server notices
1296 * +w - wallop - See oper and server generated WALLOPS
1297 * +z - operwall - See operwalls
1298 */
5c0df0e7 1299
212380e3
WP
1300 /* oper only umodes: usermodes only opers may set */
1301 oper_only_umodes = operwall, locops, servnotice;
1302
1303 /* oper umodes: default usermodes opers get when they /oper */
1304 oper_umodes = locops, servnotice, operwall, wallop;
1305
1306 /* oper snomask: default snomask opers get when they /oper,
1307 * provided they have umode +s set */
1308 oper_snomask = "+s";
1309
212380e3 1310 /* compression level: level of compression for compressed links between
5c0df0e7 1311 * servers.
212380e3
WP
1312 *
1313 * values are between: 1 (least compression, fastest)
1314 * and: 9 (most compression, slowest).
1315 */
1316 #compression_level = 6;
1317
da1b891f
KB
1318 /* burst_away: This enables bursting away messages to servers.
1319 * With this disabled, we will only propogate AWAY messages
1320 * as users send them, but never burst them. Be warned though
1321 * enabling this could increase the size of a burst significantly
1322 * for a large network, like EFnet.
1323 */
1324 burst_away = yes;
212380e3
WP
1325
1326 /* nick delay: This locks nicks of split clients for the given time
1327 * or until a remote client uses the nick. This significantly
1328 * reduces nick collisions on short splits but it can be annoying.
1329 * To make things as fair as possible, this should be the same on
1330 * all servers. If you enable this, the suggested value is 15 minutes.
1331 */
1332 nick_delay = 0 seconds;
1333
1334 /* reject time: the amount of rejections through klines/dlines etc
1335 * allowed in the given time before the rejection is cached and
1336 * a pseudo temp dline is placed
1337 */
1338 reject_ban_time = 1 minute;
1339 reject_after_count = 3;
1340
1341 /* reject duration: the amount of time to cache the rejection */
1342 reject_duration = 5 minutes;
54015b5f 1343
43946961
JT
1344 /* throttle_duration: Amount of time that throttling will be applied to an IP
1345 * address.
54015b5f 1346 */
43946961
JT
1347 throttle_duration = 60;
1348
1349 /* throttle_count: Number of connections within throttle_duration that it takes
1350 * for throttling to take effect */
1351 throttle_count = 4;
e6e54763 1352
da1b891f
KB
1353 /* client flood_max_lines: maximum number of lines in a clients queue before
1354 * they are dropped for flooding.
1355 */
1356 client_flood_max_lines = 20;
1357
1358 /* Flood control settings. DO NOT CHANGE THESE without extensive discussion
1359 * and testing by someone who knows exactly what they do.
1360 *
1361 * These settings replicate charybdis-3.3 behaviour.
1362 */
1363 client_flood_burst_rate = 40;
1364 client_flood_burst_max = 5;
1365 client_flood_message_time = 1;
1366 client_flood_message_num = 2;
e88a1f1b
KB
1367
1368 /* max_ratelimit_tokens: the maximum number of ratelimit tokens that one
1369 * user can accumulate. This attempts to limit the amount of outbound
1370 * bandwidth one user can consume. Do not change unless you know what
1371 * you're doing.
1372 */
1373 max_ratelimit_tokens = 30;
d42e6915
JT
1374
1375 /* away_interval: the minimum interval between AWAY commands. One
1376 * additional AWAY command is allowed, and only marking as away
1377 * counts.
1378 */
1379 away_interval = 30;
13d8f0ed
WP
1380
1381 /* certfp_method: the method that should be used for computing certificate fingerprints.
cf430c1a
SA
1382 * Acceptable options are sha1, sha256, spki_sha256, sha512 and spki_sha512. Networks
1383 * running versions of charybdis prior to charybdis 3.5 MUST use sha1 for certfp_method.
1384 *
1385 * The spki_* variants operate on the SubjectPublicKeyInfo of the certificate, which does
1386 * not change unless the private key is changed. This allows the fingerprint to stay
dc986b54 1387 * constant even if the certificate is reissued. These fingerprints will be prefixed with
66214724 1388 * "SPKI:SHA2-256:" or "SPKI:SHA2-512:" depending on the hash type. These fingerprints
4381284e 1389 * are not supported on servers running charybdis 3.5.3 or earlier.
66214724
AJ
1390 *
1391 * To generate a fingerprint from a certificate file, please use the mkfingerprint utility
1392 * program located in the bin/ subdirectory of your IRCd installation. Running it with no
1393 * arguments will give you a brief usage message; it takes method and filename arguments.
13d8f0ed 1394 */
7380ded5 1395 certfp_method = spki_sha256;
71c95533
WP
1396
1397 /* hide_opers_in_whois: if set to YES, then oper status will be hidden in /WHOIS output. */
1398 hide_opers_in_whois = no;
fff4f763
EK
1399
1400 /* tls_ciphers_oper_only: show the TLS cipher string in /WHOIS only to opers and self */
1401 tls_ciphers_oper_only = no;
4a8bd0b2
EK
1402
1403 /* hidden_caps: client capabilities we'll pretend we don't support until they're requested */
1404 #hidden_caps = "userhost-in-names";
40ecb85a 1405
1406 /* oper_secure_only: require TLS on any connection trying to oper up */
1407 oper_secure_only = no;
212380e3
WP
1408};
1409
1410modules {
5c0df0e7 1411 /* module path: paths to search for modules specified below and
212380e3
WP
1412 * in /modload.
1413 */
1414 path = "/usr/local/ircd/modules";
1415 path = "/usr/local/ircd/modules/autoload";
1416
1417 /* module: the name of a module to load on startup/rehash */
9abdcf1c 1418 #module = "some_module";
212380e3 1419};