]>
Commit | Line | Data |
---|---|---|
2ec04d9c | 1 | /* doc/reference.conf - shadowircd Example configuration file |
212380e3 | 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 | * | |
331285b3 | 7 | * Written by ejb, wcampbel, db, leeh, Taros, jdhore and others |
212380e3 | 8 | * |
407b1826 | 9 | * $Id: reference.conf 3582 2007-11-17 21:55:48Z jilles $ |
212380e3 | 10 | */ |
11 | ||
12 | /* IMPORTANT NOTES: | |
13 | * | |
14 | * class {} blocks MUST be specified before anything that uses them. That | |
15 | * means they must be defined before auth {} and before connect {}. | |
16 | * | |
17 | * auth {} blocks MUST be specified in order of precedence. The first one | |
18 | * that matches a user will be used. So place spoofs first, then specials, | |
19 | * then general access, then restricted. | |
20 | * | |
ebe56017 JT |
21 | * privset {} blocks MUST be specified before anything that uses them. That |
22 | * means they must be defined before operator {}. | |
23 | * | |
212380e3 | 24 | * Both shell style (#) and C style comments are supported. |
25 | * | |
26 | * Files may be included by either: | |
27 | * .include "filename" | |
28 | * .include <filename> | |
29 | * | |
30 | * Times/durations are written as: | |
31 | * 12 hours 30 minutes 1 second | |
32 | * | |
33 | * Valid units of time: | |
34 | * month, week, day, hour, minute, second | |
35 | * | |
36 | * Valid units of size: | |
37 | * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte | |
38 | * | |
39 | * Sizes and times may be singular or plural. | |
40 | */ | |
41 | ||
42 | /* Extensions: | |
43 | * | |
e4322741 G |
44 | * ShadowIRCd contains several extensions that are not enabled by default. |
45 | * To use them, uncomment the lines below. More information on each extension | |
46 | * can be found in extensions/README | |
212380e3 | 47 | * |
02be96f2 VY |
48 | * Channel mode +-A (admin only) -- chm_adminonly.so |
49 | * Channel mode +-O (oper only) -- chm_operonly.so | |
50 | * Channel mode +-S (ssl only) -- chm_sslonly.so | |
95dc1251 VY |
51 | * Emulates channel mode +-O (oper only) (+-iI $o) -- chm_operonly_compat.so |
52 | * Emulates channel mode +-R (quiet unreg) (+-q $~a) -- chm_quietunreg_compat.so | |
53 | * Emulates channel mode +-S (ssl only) (+-b $~z) -- chm_sslonly_compat.so | |
54 | * Restrict channel creation to logged in users -- createauthonly.so | |
55 | * Account bans (+b $a[:mask]) -- extb_account.so | |
56 | * Banned from another channel (+b $j:mask) -- extb_canjoin.so | |
57 | * Other-channel bans (+b $c:mask) -- extb_channel.so | |
58 | * Extended ban (+b $x:mask) -- extb_extgecos.so | |
59 | * Oper bans (+b $o) -- extb_oper.so | |
60 | * Realname (gecos) bans (+b $r:mask) -- extb_realname.so | |
61 | * Server bans (+b $s:mask) -- extb_server.so | |
62 | * SSL bans (+b $z) -- extb_ssl.so | |
63 | * HURT system -- hurt.so | |
78d9febe | 64 | * New host mangling (umode +x) -- ip_cloaking.so |
95dc1251 VY |
65 | * Find channel forwards -- m_findforwards.so |
66 | * /identify support -- m_identify.so | |
77f41d51 | 67 | * /mkpassword support -- m_mkpasswd.so |
82e5490f | 68 | * WEBIRC support -- m_webirc.so |
85305853 | 69 | * Server-side /CYCLE -- m_cycle.so |
2ec04d9c | 70 | * /oaccept - add to target's accept list, oper only -- m_oaccept.so |
77f41d51 G |
71 | * /opme - op self in opless channels, admin only -- m_opme.so |
72 | * /ojoin - join despite restrictions, admin only -- m_ojoin.so | |
73 | * /omode - force modes in channels, admin only -- m_omode.so | |
74 | * /olist - see all channels in /list, oper only -- m_olist.so | |
3c0f8334 | 75 | * /okick - kick users without having ops, oper only -- m_okick.so |
77f41d51 | 76 | * /forcejoin - force join users, admin only -- m_force.so |
a4d2230f | 77 | * roleplay commands - send msgs from fake users -- m_roleplay.so |
95dc1251 VY |
78 | * Opers cannot be invisible (umode +i) -- no_oper_invis.so |
79 | * Far connection notices (snomask +F) -- sno_farconnect.so | |
e2ec3f7d | 80 | * Remote k/d/x line active notices -- sno_globalkline.so |
95dc1251 VY |
81 | * Remote oper up notices -- sno_globaloper.so |
82 | * /whois notifications (snomask +W) -- sno_whois.so | |
212380e3 | 83 | */ |
02be96f2 | 84 | #loadmodule "extensions/chm_adminonly.so"; |
e4322741 | 85 | loadmodule "extensions/chm_operonly.so"; |
02be96f2 | 86 | #loadmodule "extensions/chm_sslonly.so"; |
95dc1251 VY |
87 | #loadmodule "extensions/chm_operonly_compat.so"; |
88 | #loadmodule "extensions/chm_quietunreg_compat.so"; | |
89 | #loadmodule "extensions/chm_sslonly_compat.so"; | |
212380e3 | 90 | #loadmodule "extensions/createauthonly.so"; |
e4322741 G |
91 | loadmodule "extensions/extb_account.so"; |
92 | loadmodule "extensions/extb_canjoin.so"; | |
93 | loadmodule "extensions/extb_channel.so"; | |
94 | loadmodule "extensions/extb_extgecos.so"; | |
95 | loadmodule "extensions/extb_oper.so"; | |
96 | loadmodule "extensions/extb_realname.so"; | |
212380e3 | 97 | #loadmodule "extensions/extb_server.so"; |
95dc1251 | 98 | #loadmodule "extensions/extb_ssl.so"; |
212380e3 | 99 | #loadmodule "extensions/hurt.so"; |
e4322741 | 100 | loadmodule "extensions/ip_cloaking.so"; |
212380e3 | 101 | #loadmodule "extensions/m_findforwards.so"; |
e4322741 | 102 | loadmodule "extensions/m_identify.so"; |
77f41d51 | 103 | loadmodule "extensions/m_mkpasswd.so"; |
82e5490f | 104 | loadmodule "extensions/m_webirc.so"; |
85305853 | 105 | #loadmodule "extensions/m_cycle.so"; |
1fbf6db6 | 106 | #loadmodule "extensions/m_oaccept.so"; |
77f41d51 G |
107 | #loadmodule "extensions/m_opme.so"; |
108 | #loadmodule "extensions/m_ojoin.so"; | |
109 | #loadmodule "extensions/m_omode.so"; | |
110 | #loadmodule "extensions/m_olist.so"; | |
3c0f8334 | 111 | #loadmodule "extensions/m_okick.so"; |
77f41d51 | 112 | #loadmodule "extensions/m_force.so"; |
a4d2230f | 113 | #loadmodule "extensions/m_roleplay.so"; |
212380e3 | 114 | #loadmodule "extensions/no_oper_invis.so"; |
e4322741 G |
115 | loadmodule "extensions/sno_farconnect.so"; |
116 | loadmodule "extensions/sno_globalkline.so"; | |
117 | loadmodule "extensions/sno_globaloper.so"; | |
446d88dd | 118 | #loadmodule "extensions/sno_whois.so"; |
77f41d51 | 119 | |
212380e3 | 120 | |
121 | /* serverinfo {}: Contains information about the server. (OLD M:) */ | |
122 | serverinfo { | |
123 | /* name: the name of our server */ | |
124 | name = "hades.arpa"; | |
125 | ||
212380e3 | 126 | /* sid: the unique server id of our server. This must be three |
127 | * characters long. The first character must be a digit [0-9], the | |
128 | * remaining two chars may be letters [A-Z] or digits [0-9]. | |
129 | * | |
cda8e9b8 | 130 | * This parameter must be specified for the server to start. |
212380e3 | 131 | */ |
132 | sid = "42X"; | |
133 | ||
134 | /* description: the description of our server. '[' and ']' may not | |
135 | * be used here for compatibility with older servers. | |
136 | */ | |
f34794d0 | 137 | description = "shadowircd test server"; |
212380e3 | 138 | |
139 | /* network info: the name and description of the network this server | |
140 | * is on. Shown in the 005 reply and used with serverhiding. | |
141 | */ | |
142 | network_name = "MyNet"; | |
143 | network_desc = "This is My Network"; | |
144 | ||
ef07b59a JH |
145 | /* helpchan/helpurl: These 2 items are shown when a user does |
146 | * /quote help with no additional parameters to direct them | |
147 | * to a channel/URL where they can get more or network-specific help. | |
148 | * They can be commented out and will not show to users if they are. | |
149 | */ | |
150 | helpchan = "#help"; | |
151 | helpurl = "http://www.mynet.net/help"; | |
152 | ||
212380e3 | 153 | /* hub: allow this server to act as a hub and have multiple servers |
154 | * connected to it. | |
155 | */ | |
156 | hub = no; | |
157 | ||
158 | /* vhost: the IP to bind to when we connect outward to ipv4 servers. | |
159 | * This should be an ipv4 IP only. | |
160 | */ | |
161 | #vhost = "192.169.0.1"; | |
162 | ||
163 | /* vhost6: the IP to bind to when we connect outward to ipv6 servers. | |
164 | * This should be an ipv6 IP only. | |
165 | */ | |
166 | #vhost6 = "3ffe:80e8:546::2"; | |
8db00894 | 167 | |
9b1b4a97 | 168 | /* ssl_private_key: our ssl private key */ |
ac10b333 | 169 | ssl_private_key = "etc/ssl.key"; |
9b1b4a97 VY |
170 | |
171 | /* ssl_cert: certificate for our ssl server */ | |
ac10b333 | 172 | ssl_cert = "etc/ssl.cert"; |
9b1b4a97 VY |
173 | |
174 | /* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 1024 */ | |
175 | ssl_dh_params = "etc/dh.pem"; | |
176 | ||
29e3823d JT |
177 | /* ssld_count: number of ssld processes you want to start, if you |
178 | * have a really busy server, using N-1 where N is the number of | |
179 | * cpu/cpu cores you have might be useful. A number greater than one | |
180 | * can also be useful in case of bugs in ssld and because ssld needs | |
181 | * two file descriptors per SSL connection. | |
9b1b4a97 VY |
182 | */ |
183 | ssld_count = 1; | |
184 | ||
185 | /* default max clients: the default maximum number of clients | |
186 | * allowed to connect. This can be changed once ircd has started by | |
187 | * issuing: | |
188 | * /quote set maxclients <limit> | |
c2d96fcb | 189 | */ |
3fe90825 | 190 | default_max_clients = 1024; |
212380e3 | 191 | }; |
192 | ||
193 | /* admin {}: contains admin information about the server. (OLD A:) */ | |
194 | admin { | |
195 | name = "Smurf target"; | |
196 | description = "Main Server Administrator"; | |
197 | email = "<syn@packets.r.us>"; | |
198 | }; | |
199 | ||
200 | /* log {}: contains information about logfiles. */ | |
201 | log { | |
202 | /* logfiles: the logfiles to use for specific activity. if these | |
203 | * paths are defined, then ircd will log to them, otherwise it wont. | |
204 | * | |
205 | * The confs are, in order: | |
206 | * - userlog: user exits | |
207 | * - fuserlog: failed user connections | |
208 | * - operlog: /oper usage | |
209 | * - foperlog: failed /oper usage | |
210 | * - serverlog: server connects/disconnects | |
212380e3 | 211 | * - klinelog: klines, etc |
212 | * - killlog: kills | |
213 | * - operspylog: operspy usage | |
214 | * - ioerrorlog: IO errors | |
215 | */ | |
216 | fname_userlog = "logs/userlog"; | |
217 | #fname_fuserlog = "logs/fuserlog"; | |
218 | fname_operlog = "logs/operlog"; | |
219 | #fname_foperlog = "logs/foperlog"; | |
220 | fname_serverlog = "logs/serverlog"; | |
212380e3 | 221 | #fname_klinelog = "logs/klinelog"; |
222 | fname_killlog = "logs/killlog"; | |
223 | fname_operspylog = "logs/operspylog"; | |
224 | #fname_ioerrorlog = "logs/ioerror"; | |
225 | }; | |
226 | ||
227 | /* class {}: contain information about classes for users (OLD Y:) */ | |
228 | class "users" { | |
229 | /* class name must go above */ | |
230 | ||
231 | /* ping time: how often a client must reply to a PING from the | |
232 | * server before they are dropped. | |
233 | */ | |
234 | ping_time = 2 minutes; | |
235 | ||
236 | /* number per ident: the number of users per user@host networkwide | |
237 | * allowed to connect. Unidented connections are classified as | |
238 | * the same ident. | |
239 | */ | |
240 | number_per_ident = 2; | |
241 | ||
242 | /* number per ip: the number of local users per host allowed */ | |
243 | number_per_ip = 3; | |
244 | ||
245 | /* number per ip global: the number of network wide connections | |
246 | * per host allowed for a user, including connections to the | |
247 | * local server. | |
248 | */ | |
249 | number_per_ip_global = 5; | |
250 | ||
571df429 JT |
251 | /* cidr_ipv4_bitlen: Limits numbers of connections from a subnet size |
252 | */ | |
253 | cidr_ipv4_bitlen = 24; | |
254 | ||
255 | /* cidr_ipv6_bitlen: Limits numbers of connections from a subnet size | |
212380e3 | 256 | * the following example makes the subnet /64 this is useful |
257 | * for IPv6 connections in particular | |
212380e3 | 258 | */ |
571df429 | 259 | cidr_ipv6_bitlen = 64; |
212380e3 | 260 | |
261 | /* number_per_cidr: Number of connections to allow from a subnet of the | |
571df429 JT |
262 | * size given in cidr_ipv4_bitlen/cidr_ipv6_bitlen. |
263 | * 4 seems to be a good default to me. | |
212380e3 | 264 | */ |
265 | number_per_cidr = 4; | |
266 | ||
267 | /* max number: the maximum number of users allowed in this class */ | |
268 | max_number = 100; | |
269 | ||
270 | /* sendq: the amount of data allowed in a clients queue before | |
271 | * they are dropped. | |
272 | */ | |
273 | sendq = 100 kbytes; | |
274 | }; | |
275 | ||
276 | class "restricted" { | |
277 | ping_time = 1 minute 30 seconds; | |
278 | number_per_ip = 1; | |
279 | max_number = 100; | |
280 | sendq = 60kb; | |
281 | }; | |
282 | ||
283 | class "opers" { | |
284 | ping_time = 5 minutes; | |
285 | number_per_ip = 10; | |
286 | max_number = 100; | |
287 | sendq = 100kbytes; | |
288 | }; | |
289 | ||
290 | class "server" { | |
291 | ping_time = 5 minutes; | |
292 | ||
293 | /* connectfreq: only used in server classes. specifies the delay | |
294 | * between autoconnecting to servers. | |
295 | */ | |
296 | connectfreq = 5 minutes; | |
297 | ||
298 | /* max number: the amount of servers to autoconnect to */ | |
299 | max_number = 1; | |
300 | ||
301 | /* sendq: servers need a higher sendq as they are sent more data */ | |
302 | sendq=2 megabytes; | |
303 | }; | |
304 | ||
305 | /* listen {}: contain information about the ports ircd listens on (OLD P:) */ | |
306 | listen { | |
307 | /* port: the specific port to listen on. if no host is specified | |
308 | * before, it will listen on all available IPs. | |
309 | * | |
9b1b4a97 VY |
310 | * sslport: the specific port to listen ssl connections on. if no |
311 | * host is specified before, it will listen on all available IPs. | |
312 | * | |
212380e3 | 313 | * ports are seperated via a comma, a range may be specified using ".." |
314 | */ | |
315 | ||
316 | /* port: listen on all available IPs, ports 5000 and 6665 to 6669 */ | |
317 | port = 5000, 6665 .. 6669; | |
9b1b4a97 VY |
318 | |
319 | /* sslport: listen for ssl connections on all available IPs, port 9999 */ | |
320 | sslport = 9999; | |
212380e3 | 321 | |
322 | /* host: set a specific IP/host the ports after the line will listen | |
323 | * on. This may be ipv4 or ipv6. | |
324 | */ | |
325 | host = "1.2.3.4"; | |
326 | port = 7000, 7001; | |
9b1b4a97 | 327 | sslport = 9000, 9001; |
212380e3 | 328 | |
329 | host = "3ffe:1234:a:b:c::d"; | |
330 | port = 7002; | |
9b1b4a97 | 331 | sslport = 9002; |
212380e3 | 332 | }; |
333 | ||
334 | /* auth {}: allow users to connect to the ircd (OLD I:) */ | |
335 | auth { | |
b0dc8e03 | 336 | /* user: the user@host allowed to connect. Multiple IPv4/IPv6 user |
337 | * lines are permitted per auth block. This is matched against the | |
338 | * hostname and IP address (using :: shortening for IPv6 and | |
339 | * prepending a 0 if it starts with a colon) and can also use CIDR | |
340 | * masks. | |
212380e3 | 341 | */ |
342 | user = "*@172.16.0.0/12"; | |
343 | user = "*test@123D:B567:*"; | |
344 | ||
f5ed1007 JH |
345 | /* auth_user: The username (authenticated via SASL or PASS) allowed |
346 | * to connect. You are able to put multiple auth_user lines. If people | |
347 | * are authenticating via SASL in this way, it is recommended to comment | |
348 | * out the password option below. You will also *NEED* to specify a user | |
349 | * line above auth_user, this can safely be "*@*", however. | |
350 | */ | |
351 | auth_user = "jilles"; | |
352 | auth_user = "jdhore"; | |
353 | ||
212380e3 | 354 | /* password: an optional password that is required to use this block. |
355 | * By default this is not encrypted, specify the flag "encrypted" in | |
356 | * flags = ...; below if it is. | |
357 | */ | |
358 | password = "letmein"; | |
359 | ||
360 | /* spoof: fake the users user@host to be be this. You may either | |
361 | * specify a host or a user@host to spoof to. This is free-form, | |
362 | * just do everyone a favour and dont abuse it. (OLD I: = flag) | |
363 | */ | |
364 | spoof = "I.still.hate.packets"; | |
365 | ||
fa72cee1 | 366 | /* autojoin: Channel (or channels, comma-seperated) to join users |
b7ec3094 G |
367 | * in this auth block to on connect. Note that this won't join |
368 | * the user through any bans or otherwise restrictive chmodes. | |
369 | */ | |
370 | autojoin = "#shadowircd,#test"; | |
fa72cee1 | 371 | |
87f58b4f | 372 | /* autojoin_opers : Channel (or channels, comma-seperated) to join |
b7ec3094 G |
373 | * opers to on oper-up. |
374 | */ | |
375 | autojoin_opers = "#opers,#help"; | |
87f58b4f | 376 | |
212380e3 | 377 | /* Possible flags in auth: |
378 | * | |
379 | * encrypted | password is encrypted with mkpasswd | |
380 | * spoof_notice | give a notice when spoofing hosts | |
381 | * exceed_limit (old > flag) | allow user to exceed class user limits | |
382 | * kline_exempt (old ^ flag) | exempt this user from k/g/xlines&dnsbls | |
383 | * dnsbl_exempt | exempt this user from dnsbls | |
212380e3 | 384 | * spambot_exempt | exempt this user from spambot checks |
385 | * shide_exempt | exempt this user from serverhiding | |
386 | * jupe_exempt | exempt this user from generating | |
387 | * warnings joining juped channels | |
388 | * resv_exempt | exempt this user from resvs | |
389 | * flood_exempt | exempt this user from flood limits | |
390 | * USE WITH CAUTION. | |
391 | * no_tilde (old - flag) | don't prefix ~ to username if no ident | |
392 | * need_ident (old + flag) | require ident for user in this class | |
663bbb28 | 393 | * need_ssl | require SSL/TLS for user in this class |
212380e3 | 394 | * need_sasl | require SASL id for user in this class |
395 | */ | |
396 | flags = kline_exempt, exceed_limit; | |
397 | ||
398 | /* class: the class the user is placed in */ | |
399 | class = "opers"; | |
400 | }; | |
401 | ||
82e5490f JH |
402 | /* Example WEBIRC authblock */ |
403 | auth { | |
331285b3 G |
404 | /* user: webirc@IP.OF.YOUR.WEBIRC . the webirc@ part is required */ |
405 | user = "webirc@192.168.1.1"; | |
406 | ||
407 | /* password: password the webirc client sends in the WEBIRC command. | |
408 | * You can use a encrypted password here (see above auth block). | |
409 | */ | |
410 | password = "<password>"; | |
411 | ||
412 | /* spoof: This is required to keep it what it is currently if you | |
413 | * want the webirc client to show the users' real host as their | |
414 | * host on IRC. | |
415 | */ | |
416 | spoof = "webirc."; | |
417 | class = "users"; | |
82e5490f JH |
418 | }; |
419 | ||
212380e3 | 420 | auth { |
421 | /* redirect: the server and port to redirect a user to. A user does | |
422 | * not have to obey the redirection, the ircd just suggests to them | |
423 | * an alternative server. | |
424 | */ | |
425 | redirserv = "irc.some.domain"; | |
426 | redirport = 6667; | |
427 | ||
428 | user = "*.some.domain"; | |
429 | ||
430 | /* class: a class is required even though it is not used */ | |
431 | class = "users"; | |
432 | }; | |
433 | ||
434 | auth { | |
435 | user = "*@*"; | |
436 | class = "users"; | |
437 | ||
438 | flags = need_ident; | |
439 | }; | |
440 | ||
ebe56017 JT |
441 | /* privset{}: defines operator privilege sets. */ |
442 | privset "local_op" { | |
443 | /* privs: controls the activities and commands an oper is | |
444 | * allowed to do on the server | |
445 | * | |
446 | * Available options: | |
447 | * | |
448 | * oper:local_kill: allows local users to be /KILL'd | |
449 | * oper:global_kill: allows local and remote users to be /KILL'd | |
88d08e84 | 450 | * oper:routing: allows remote SQUIT and CONNECT |
ebe56017 JT |
451 | * oper:kline: allows KLINE and DLINE |
452 | * oper:unkline: allows UNKLINE and UNDLINE | |
453 | * snomask:nick_changes: allows oper to see nickchanges via snomask +n | |
454 | * oper:rehash: allows oper to REHASH config | |
455 | * oper:die: allows DIE and RESTART | |
456 | * oper:admin: gives admin privileges. admins | |
457 | * may (un)load modules and see various | |
458 | * additional information. | |
459 | * oper:hidden_admin: gives admin privileges except | |
460 | * will not have the admin lines in | |
461 | * whois. | |
462 | * oper:xline: allows use of /quote xline/unxline | |
463 | * oper:resv: allows /quote resv/unresv and cmode +LP | |
464 | * oper:operwall: allows the oper to send/receive operwalls | |
baca17ae G |
465 | * oper:override: allows the oper to set umode +p on themself |
466 | which grants the ability to have implicit | |
467 | operator access in all channels. | |
ebe56017 JT |
468 | * oper:spy: allows 'operspy' features to see through +s |
469 | * channels etc. see /quote help operspy | |
470 | * oper:hidden: hides the oper from /stats p | |
471 | * oper:remoteban: allows remote kline etc | |
472 | * oper:mass_notice: allows sending wallops and mass notices | |
473 | */ | |
474 | privs = oper:local_kill, oper:operwall; | |
475 | }; | |
476 | ||
477 | privset "server_bot" { | |
478 | /* extends: a privset to inherit in this privset */ | |
479 | extends = "local_op"; | |
29ef4e88 | 480 | privs = oper:kline, oper:remoteban, snomask:nick_changes; |
ebe56017 JT |
481 | }; |
482 | ||
483 | privset "global_op" { | |
484 | extends = "local_op"; | |
485 | privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline, | |
486 | oper:resv, oper:mass_notice, oper:remoteban; | |
487 | }; | |
488 | ||
489 | privset "admin" { | |
490 | extends = "global_op"; | |
4ebf6862 | 491 | privs = oper:admin, oper:die, oper:rehash, oper:spy, oper:override; |
ebe56017 JT |
492 | }; |
493 | ||
494 | /* operator {}: defines ircd operators. (OLD O:) */ | |
212380e3 | 495 | operator "god" { |
496 | /* name: the name of the oper must go above */ | |
497 | ||
498 | /* user: the user@host required for this operator. CIDR *is* | |
499 | * supported now. auth{} spoofs work here, other spoofs do not. | |
500 | * multiple user="" lines are supported. | |
501 | */ | |
502 | user = "*god@*"; | |
503 | user = "*@127.0.0.1"; | |
504 | ||
505 | /* password: the password required to oper. Unless ~encrypted is | |
506 | * contained in flags = ...; this will need to be encrypted using | |
507 | * mkpasswd, MD5 is supported | |
508 | */ | |
509 | password = "etcnjl8juSU1E"; | |
510 | ||
511 | /* rsa key: the public key for this oper when using Challenge. | |
512 | * A password should not be defined when this is used, see | |
513 | * doc/challenge.txt for more information. | |
514 | */ | |
515 | #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub"; | |
516 | ||
d8a023ed WP |
517 | /* fingerprint: if specified, the oper's client certificate |
518 | * fingerprint will be checked against the specified fingerprint | |
519 | * below. | |
520 | */ | |
521 | #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b"; | |
522 | ||
212380e3 | 523 | /* umodes: the specific umodes this oper gets when they oper. |
524 | * If this is specified an oper will not be given oper_umodes | |
525 | * These are described above oper_only_umodes in general {}; | |
526 | */ | |
527 | #umodes = locops, servnotice, operwall, wallop; | |
528 | ||
529 | /* snomask: specific server notice mask on oper up. | |
530 | * If this is specified an oper will not be given oper_snomask. | |
531 | */ | |
2ec04d9c | 532 | snomask = "+FZbcfkrsuy"; |
212380e3 | 533 | |
08e35f66 G |
534 | /* vhost: defines the vhost that this oper will get on oper up. |
535 | * this must be a valid hostmask. If this is specified the oper | |
536 | * will not be given default_operhost. | |
537 | */ | |
538 | vhost = "is.an.oper"; | |
539 | ||
e787d3a2 G |
540 | /* swhois: defines an additional line that will be displayed |
541 | * whenever someone does /whois on the oper in question. | |
542 | */ | |
f11e5895 | 543 | swhois = "is wearing pants."; |
e787d3a2 G |
544 | |
545 | /* operstring: defines a custom operstring for this oper, | |
546 | * which will be shown in whois instead of default_operstring | |
547 | * or default_adminstring. | |
548 | */ | |
f11e5895 | 549 | operstring = "is a lazy IRC Operator"; |
e787d3a2 | 550 | |
ebe56017 JT |
551 | /* flags: misc options for the operator. You may prefix an option |
552 | * with ~ to disable it, e.g. ~encrypted. | |
212380e3 | 553 | * |
ebe56017 | 554 | * Default flags are encrypted. |
212380e3 | 555 | * |
556 | * Available options: | |
557 | * | |
558 | * encrypted: the password above is encrypted [DEFAULT] | |
663bbb28 | 559 | * need_ssl: must be using SSL/TLS to oper up |
212380e3 | 560 | */ |
ebe56017 JT |
561 | flags = encrypted; |
562 | ||
563 | /* privset: privileges set to grant */ | |
564 | privset = "admin"; | |
212380e3 | 565 | }; |
566 | ||
567 | /* connect {}: controls servers we connect to (OLD C:, N:, H:, L:) */ | |
568 | connect "irc.uplink.com" { | |
569 | /* the name must go above */ | |
570 | ||
571 | /* host: the host or IP to connect to. If a hostname is used it | |
572 | * must match the reverse dns of the server. | |
573 | */ | |
574 | host = "192.168.0.1"; | |
575 | ||
576 | /* vhost: the host or IP to bind to for this connection. If this | |
577 | * is not specified, the default vhost (in serverinfo {}) is used. | |
578 | */ | |
579 | #vhost = "192.168.0.50"; | |
580 | ||
581 | /* passwords: the passwords we send (OLD C:) and accept (OLD N:). | |
582 | * The remote server will have these passwords reversed. | |
583 | */ | |
584 | send_password = "password"; | |
585 | accept_password = "anotherpassword"; | |
586 | ||
5ac47047 WP |
587 | /* fingerprint: if specified, the server's client certificate |
588 | * fingerprint will be checked against the specified fingerprint | |
589 | * below. | |
590 | */ | |
591 | #fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b"; | |
592 | ||
212380e3 | 593 | /* port: the port to connect to this server on */ |
594 | port = 6666; | |
595 | ||
596 | /* hub mask: the mask of servers that this server may hub. Multiple | |
597 | * entries are permitted | |
598 | */ | |
599 | hub_mask = "*"; | |
600 | ||
601 | /* leaf mask: the mask of servers this server may not hub. Multiple | |
602 | * entries are permitted. Useful for forbidding EU -> US -> EU routes. | |
603 | */ | |
604 | #leaf_mask = "*.uk"; | |
605 | ||
606 | /* class: the class this server is in */ | |
607 | class = "server"; | |
608 | ||
609 | /* flags: controls special options for this server | |
610 | * encrypted - marks the accept_password as being crypt()'d | |
611 | * autoconn - automatically connect to this server | |
612 | * compressed - compress traffic via ziplinks | |
613 | * topicburst - burst topics between servers | |
9b1b4a97 | 614 | * ssl - ssl/tls encrypted server connections |
212380e3 | 615 | */ |
616 | flags = compressed, topicburst; | |
617 | }; | |
618 | ||
619 | connect "ipv6.some.server" { | |
b0dc8e03 | 620 | /* Hosts that are IPv6 addresses must be in :: shortened form |
621 | * if applicable. Addresses starting with a colon get an extra | |
622 | * zero prepended, for example: 0::1 | |
623 | */ | |
212380e3 | 624 | host = "3ffd:dead:beef::1"; |
625 | send_password = "password"; | |
626 | accept_password = "password"; | |
627 | port = 6666; | |
628 | ||
629 | /* aftype: controls whether the connection uses "ipv4" or "ipv6". | |
630 | * Default is ipv4. | |
631 | */ | |
632 | aftype = ipv6; | |
633 | class = "server"; | |
634 | }; | |
635 | ||
9b1b4a97 VY |
636 | connect "ssl.uplink.com" { |
637 | /* Example of ssl server-to-server connection, ssl flag doesn't need | |
638 | * compressed flag, 'cause it uses own compression | |
639 | */ | |
640 | host = "192.168.0.1"; | |
641 | send_password = "password"; | |
642 | accept_password = "anotherpassword"; | |
643 | port = 9999; | |
644 | hub_mask = "*"; | |
645 | class = "server"; | |
646 | flags = ssl, topicburst; | |
647 | }; | |
648 | ||
212380e3 | 649 | /* cluster {}; servers that we propagate things to automatically. |
650 | * NOTE: This does NOT grant them privileges to apply anything locally, | |
651 | * you must add a seperate shared block for that. Clustering will | |
652 | * only be done for actions by LOCAL opers, that arent directed | |
653 | * remotely. | |
654 | */ | |
655 | cluster { | |
656 | /* name: the server to share with, this can be a wildcard and may be | |
657 | * stacked. | |
658 | */ | |
659 | /* flags: list of what to share, all the name lines above this (up | |
660 | * until another flags entry) will receive these flags. | |
661 | * | |
662 | * kline - share perm klines | |
663 | * tkline - share temp klines | |
664 | * unkline - share unklines | |
665 | * locops - share locops | |
666 | * xline - share perm xlines | |
667 | * txline - share temp xlines | |
668 | * unxline - share unxlines | |
669 | * resv - share perm resvs | |
670 | * tresv - share temp resvs | |
671 | * unresv - share unresvs | |
672 | * all - share all of the above | |
673 | */ | |
674 | ||
675 | /* share klines/unklines/xlines with *.lan */ | |
676 | name = "*.lan"; | |
677 | flags = kline, unkline, xline; | |
678 | ||
679 | /* share locops with irc.ircd-ratbox.org and ircd.ircd-ratbox.org */ | |
680 | name = "irc.ircd-ratbox.org"; | |
681 | name = "ircd.ircd-ratbox.org"; | |
682 | flags = locops; | |
683 | }; | |
684 | ||
685 | /* service{}: privileged servers (services). These servers have extra | |
686 | * privileges such as setting login names on users and introducing clients | |
687 | * with umode +S (unkickable, hide channels, etc). This does not allow them | |
688 | * to set bans, you need a separate shared{} for that. | |
689 | * Do not place normal servers here. | |
690 | * There may be only one service{} block. | |
691 | */ | |
692 | service { | |
693 | /* name: the server name. These may be stacked. */ | |
694 | name = "services.int"; | |
695 | }; | |
696 | ||
697 | /* shared {}: users that are allowed to place remote bans on our server. | |
698 | * NOTE: These are ordered top down. The first one the user@host and server | |
699 | * matches will be used. Their access will then be decided on that | |
700 | * block and will not fall back to another block that matches. | |
701 | */ | |
702 | shared { | |
703 | /* oper: the user@host and server the user must be on to set klines. | |
704 | * The first field must be a user@host, the second field is an | |
705 | * optional server. These may be stacked. | |
706 | */ | |
707 | /* flags: list of what to allow them to place, all the oper lines | |
708 | * above this (up until another flags entry) will receive these | |
709 | * flags. This *must* be present. | |
710 | * | |
711 | * kline - allow setting perm/temp klines | |
712 | * tkline - allow setting temp klines | |
713 | * unkline - allow removing klines | |
714 | * xline - allow setting perm/temp xlines | |
715 | * txline - allow setting temp xlines | |
716 | * unxline - allow removing xlines | |
717 | * resv - allow setting perm/temp resvs | |
718 | * tresv - allow setting temp resvs | |
719 | * unresv - allow removing xlines | |
b791dea8 | 720 | * rehash - allow rehashing |
212380e3 | 721 | * all - allow oper/server to do all of above. |
722 | * locops - allow locops - only used for servers who cluster | |
74e3e4f1 | 723 | * die - allow restarting/dying of servers |
069f104a | 724 | * modules - allow loading/unloading/reloading of modules |
f410930f JT |
725 | * dline - allow setting perm/temp dlines |
726 | * tdline - allow setting temp dlines | |
727 | * undline - allow removing dlines | |
212380e3 | 728 | * none - disallow everything |
729 | */ | |
730 | ||
731 | /* allow flame@*.leeh.co.uk on server irc.ircd-ratbox.org and | |
732 | * allow leeh@*.leeh.co.uk on server ircd.ircd-ratbox.org to kline | |
733 | */ | |
734 | oper = "flame@*.leeh.co.uk", "irc.ircd-ratbox.org"; | |
735 | oper = "leeh@*.leeh.co.uk", "ircd.ircd-ratbox.org"; | |
736 | flags = kline; | |
737 | ||
738 | /* you may forbid certain opers/servers from doing anything */ | |
739 | oper = "irc@vanity.oper", "*"; | |
740 | oper = "*@*", "irc.vanity.server"; | |
741 | oper = "irc@another.vanity.oper", "bigger.vanity.server"; | |
742 | flags = none; | |
743 | ||
744 | /* or allow everyone to place temp klines */ | |
745 | oper = "*@*"; | |
746 | flags = tkline; | |
747 | }; | |
748 | ||
b808adf9 | 749 | /* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */ |
212380e3 | 750 | exempt { |
751 | ip = "192.168.0.0/16"; | |
752 | ||
753 | /* these may be stacked */ | |
754 | ip = "127.0.0.1"; | |
755 | ip = "10.0.0.0/8"; | |
756 | }; | |
757 | ||
758 | /* The channel block contains options pertaining to channels */ | |
759 | channel { | |
4c16b692 G |
760 | /* disabledmodes: Modes that will be disabled, users will not be |
761 | * able to set them. This is only read on startup, you need to | |
762 | * restart the ircd for this to have any effect. This only prevents | |
763 | * local users/opers from setting these modes. This does not prevent | |
764 | * remote servers/users (ex: services) from setting them. Make sure | |
765 | * your services and remote servers are properly configured when | |
766 | * using this option! | |
07db71cd | 767 | * Valid parameters are: CLPFQITDENGJKMrczgqefj |
4c16b692 G |
768 | */ |
769 | #disabledmodes = "ME"; | |
770 | ||
13ec57db JH |
771 | /* autochanmodes: Modes that will be set on a unregistered channel |
772 | * when the first user joins it. | |
773 | */ | |
774 | autochanmodes = "nt"; | |
775 | ||
d7a3d23c G |
776 | /* admin_on_channel_create: If set to yes, users joining new channels |
777 | * will be given +ao instead of just +o. Requires use_admin. | |
778 | */ | |
779 | admin_on_channel_create = no; | |
780 | ||
5ad94b50 G |
781 | /* exemptchanops: Channel modes that any form of channel ops (+aoh) |
782 | * will be exempt from. Even if the mode is set, it will not apply to the | |
783 | * channel ops if it is listed in this option. Valid modes are cCDTNGK. | |
784 | */ | |
785 | exemptchanops = "NT"; | |
786 | ||
46f0c518 G |
787 | /* halfop: Enable/disable channel mode +h, which adds halfop, |
788 | * a channel status below op that has op powers (kick, ban, mode, etc.) | |
ce3ec6fb | 789 | * halfops can only kick/devoice/etc people who are +v or |
16c19d9c G |
790 | * do not have any channel status. Disabling this via rehash will |
791 | * cause things which are rather confusing to occur, it is highly | |
792 | * recommended to restart if you wish to disable this option, though | |
793 | * it may be enabled by rehash with no problems. | |
ce3ec6fb | 794 | */ |
46f0c518 G |
795 | use_halfop = yes; |
796 | ||
c1c91f94 | 797 | /* admin: Enable/disable channel mode +a, which adds admin, |
46f0c518 | 798 | * a channel status above op that has op powers (kick, ban, mode, etc.) |
c1c91f94 | 799 | * admins can only be kicked/deadmined by other admins, and may kick |
2ec04d9c G |
800 | * or deop anyone. Disabling this via rehash will cause things which |
801 | * are rather confusing to occur, it is highly recommended to restart | |
802 | * if you wish to disable this option, though it may be enabled | |
803 | * by rehash with no problems. | |
ce3ec6fb | 804 | */ |
c1c91f94 | 805 | use_admin = yes; |
46f0c518 | 806 | |
212380e3 | 807 | /* knock: Allows users to request an invite to a channel that |
808 | * is locked somehow (+ikl). If the channel is +p or you are banned | |
809 | * the knock will not be sent. | |
810 | */ | |
811 | use_knock = yes; | |
812 | ||
0eceaff1 G |
813 | /* local channels: &Channel - a channel that exists only on one server |
814 | * people on other servers will not be able to see or join local channels | |
815 | * from another server. | |
816 | */ | |
817 | use_local_channels = yes; | |
818 | ||
212380e3 | 819 | /* knock delay: The amount of time a user must wait between issuing |
820 | * the knock command. | |
821 | */ | |
822 | knock_delay = 5 minutes; | |
823 | ||
824 | /* knock channel delay: How often a knock to any specific channel | |
825 | * is permitted, regardless of the user sending the knock. | |
826 | */ | |
827 | knock_delay_channel = 1 minute; | |
828 | ||
829 | /* max chans: The maximum number of channels a user can join/be on. */ | |
830 | max_chans_per_user = 15; | |
831 | ||
832 | /* max bans: maximum number of +b/e/I/q modes in a channel */ | |
2606c73c | 833 | max_bans = 100; |
212380e3 | 834 | |
835 | /* max bans: maximum number of +b/e/I/q modes in a +L channel */ | |
836 | max_bans_large = 500; | |
837 | ||
838 | /* splitcode: split users, split servers and either no join on split | |
839 | * or no create on split must be enabled for split checking. | |
840 | * splitmode will be entered on either split users or split servers | |
841 | * dropping below the limit. | |
842 | * | |
843 | * you may force splitmode to be permanent by /quote set splitmode on | |
844 | */ | |
845 | ||
846 | /* split users: when the usercount is lower than this level, consider | |
847 | * ourselves split. this must be set for automatic splitmode | |
848 | */ | |
849 | default_split_user_count = 0; | |
850 | ||
851 | /* split servers: when the amount of servers that have acknowledged | |
852 | * theyve finished bursting is lower than this, consider ourselves | |
853 | * split. this must be set for automatic splitmode | |
854 | */ | |
855 | default_split_server_count = 0; | |
856 | ||
857 | /* split: no create: disallow users creating channels on split */ | |
858 | no_create_on_split = no; | |
859 | ||
860 | /* split: no join: disallow users joining channels at all on a split */ | |
861 | no_join_on_split = no; | |
862 | ||
863 | /* burst topicwho: when bursting topics, also burst the topic setter */ | |
864 | burst_topicwho = yes; | |
865 | ||
866 | /* kick on split riding: kick users riding splits to join +i or +k | |
867 | * channels. more precisely, if a bursting server sends an SJOIN | |
868 | * for a channel with a lower TS with either a +i mode or a +k | |
869 | * mode with a different key, kick all local users. | |
870 | * | |
871 | * note: this does not take +r, +b, +e and +I into account. | |
872 | * | |
873 | * warning: if there are any TS5 servers on the network, this | |
874 | * will cause ban desyncs if they send such an SJOIN and the | |
875 | * splitriders added any bans (our side will lose them, the TS5 | |
876 | * side will accept them). we will send a notice to the channel | |
877 | * if this happens. most services do not send such SJOINs but | |
878 | * ratbox-services does. | |
879 | */ | |
880 | kick_on_split_riding = no; | |
dea418e9 JT |
881 | |
882 | /* only ascii channels: disable local users joining channels | |
883 | * containing characters outside the range 33-126 (non-printable | |
884 | * or non-ASCII). | |
885 | */ | |
886 | only_ascii_channels = no; | |
c3a0fde2 JH |
887 | |
888 | /* cycle_host_change: Should a user be cycled in the channels | |
889 | * they're in when their host changes. If set to no, this may | |
890 | * cause client desyncs. | |
891 | */ | |
892 | cycle_host_change = yes; | |
45b9f1cb JH |
893 | |
894 | /* host_in_topic: Defines whether or not the topicsetter's | |
895 | * host is shown when users request the TOPIC. If this option | |
896 | * is set to no, it will only show the nick of the topicsetter. | |
897 | */ | |
898 | host_in_topic = yes; | |
100563e8 JT |
899 | |
900 | /* resv_forcepart: force any local users to part a channel | |
901 | * when a RESV is issued. | |
902 | */ | |
903 | resv_forcepart = yes; | |
9e94d9ea JT |
904 | |
905 | /* channel target change: restrict how many channels users can | |
906 | * message per unit of time. IRC operators, channel operators and | |
907 | * voiced users are exempt. | |
908 | */ | |
909 | channel_target_change = yes; | |
212380e3 | 910 | }; |
911 | ||
912 | ||
913 | /* The serverhide block contains the options regarding serverhiding */ | |
914 | serverhide { | |
4acf2281 JT |
915 | /* flatten links: this option will hide various routing information |
916 | * and make all servers in /links appear that they are linked to | |
331285b3 | 917 | * this server. This option also disallows non-opers from using /map |
212380e3 | 918 | */ |
919 | flatten_links = no; | |
920 | ||
994544c2 JT |
921 | /* links delay: how long to wait before showing splits or new |
922 | * servers in a flattened /links output. | |
212380e3 | 923 | */ |
924 | links_delay = 5 minutes; | |
925 | ||
4acf2281 JT |
926 | /* hidden: hide this server from a /links output on servers with |
927 | * flatten_links enabled. this allows hub servers to be hidden etc. | |
212380e3 | 928 | */ |
929 | hidden = no; | |
930 | ||
931 | /* disable hidden: prevent servers hiding themselves from a | |
932 | * /links ouput. | |
933 | */ | |
934 | disable_hidden = no; | |
935 | }; | |
936 | ||
937 | /* These are the blacklist settings. | |
938 | * You can have multiple combinations of host and rejection reasons. | |
6abfcc55 | 939 | * They are used in pairs of one host/rejection reason. |
212380e3 | 940 | * |
941 | * These settings should be adequate for most networks, and are (presently) | |
942 | * required for use on AthemeNet. | |
943 | * | |
944 | * Word to the wise: Do not use blacklists like SPEWS for blocking IRC | |
945 | * connections. | |
946 | * | |
92fb5c31 | 947 | * As of charybdis 2.2, you can do some keyword substitution on the rejection |
948 | * reason. The available keyword substitutions are: | |
949 | * | |
950 | * ${ip} - the user's IP | |
951 | * ${host} - the user's canonical hostname | |
952 | * ${dnsbl-host} - the dnsbl hostname the lookup was done against | |
953 | * ${nick} - the user's nickname | |
954 | * ${network-name} - the name of the network | |
955 | * | |
57b8cb0f | 956 | * Note: AHBL (the providers of the below *.ahbl.org BLs) request that they be |
212380e3 | 957 | * contacted, via email, at admins@2mbit.com before using these BLs. |
958 | * See <http://www.ahbl.org/services.php> for more information. | |
959 | */ | |
57b8cb0f | 960 | blacklist { |
4ea91f08 WP |
961 | host = "rbl.efnetrbl.org"; |
962 | reject_reason = "${nick}, your IP (${ip}) is listed in EFnet's RBL. For assistance, see http://efnetrbl.org/?i=${ip}"; | |
9f1913e7 JH |
963 | |
964 | host = "dnsbl.dronebl.org"; | |
965 | reject_reason = "${nick}, your IP (${ip}) is listed in DroneBL. For assistance, see http://dronebl.org/lookup_branded.do?ip=${ip}&network=${network-name}"; | |
57b8cb0f | 966 | |
212380e3 | 967 | # host = "ircbl.ahbl.org"; |
92fb5c31 | 968 | # 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 | 969 | # |
970 | # host = "tor.ahbl.org"; | |
92fb5c31 | 971 | # 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."; |
57b8cb0f | 972 | }; |
212380e3 | 973 | |
974 | /* | |
975 | * Alias blocks allow you to define custom commands. (Old m_sshortcut.c) | |
976 | * They send PRIVMSG to the given target. A real command takes | |
977 | * precedence above an alias. | |
978 | */ | |
979 | alias "NickServ" { | |
980 | /* the name must go above */ | |
981 | ||
982 | /* target: the target nick (must be a network service) or | |
983 | * user@server (cannot be this server, only opers can use | |
984 | * user starting with "opers" reliably, interpreted on the target | |
985 | * server only so you may need to use nick@server instead) | |
986 | */ | |
987 | target = "NickServ"; | |
988 | }; | |
989 | ||
990 | alias "ChanServ" { | |
991 | target = "ChanServ"; | |
992 | }; | |
993 | ||
994 | alias "OperServ" { | |
995 | target = "OperServ"; | |
996 | }; | |
997 | ||
998 | alias "MemoServ" { | |
999 | target = "MemoServ"; | |
1000 | }; | |
1001 | ||
4efc8651 G |
1002 | alias "HostServ" { |
1003 | target = "HostServ"; | |
1004 | }; | |
1005 | ||
1006 | alias "BotServ" { | |
1007 | target = "BotServ"; | |
1008 | }; | |
1009 | ||
b25b4a7c JH |
1010 | alias "InfoServ" { |
1011 | target = "InfoServ"; | |
1012 | }; | |
1013 | ||
9fc5811f JH |
1014 | alias "GroupServ" { |
1015 | target = "GroupServ"; | |
1016 | }; | |
1017 | ||
212380e3 | 1018 | alias "NS" { |
1019 | target = "NickServ"; | |
1020 | }; | |
1021 | ||
1022 | alias "CS" { | |
1023 | target = "ChanServ"; | |
1024 | }; | |
1025 | ||
1026 | alias "OS" { | |
1027 | target = "OperServ"; | |
1028 | }; | |
1029 | ||
1030 | alias "MS" { | |
1031 | target = "MemoServ"; | |
4efc8651 G |
1032 | }; |
1033 | ||
1034 | alias "HS" { | |
1035 | target = "HostServ"; | |
1036 | }; | |
1037 | ||
1038 | alias "BS" { | |
1039 | target = "BotServ"; | |
212380e3 | 1040 | }; |
1041 | ||
b25b4a7c JH |
1042 | alias "IS" { |
1043 | target = "InfoServ"; | |
1044 | }; | |
1045 | ||
9fc5811f JH |
1046 | alias "GS" { |
1047 | target = "GroupServ"; | |
1048 | }; | |
1049 | ||
212380e3 | 1050 | /* The general block contains many of the options that were once compiled |
1051 | * in options in config.h. The general block is read at start time. | |
1052 | */ | |
1053 | general { | |
1054 | /* hide error messages: defines whether error messages from | |
372b2193 JT |
1055 | * servers that are not deemed fully safe are hidden or not. |
1056 | * These can sometimes contain IPs and can have an adverse | |
1057 | * effect on server ip hiding. Set to: | |
212380e3 | 1058 | * yes: hide from opers and admin |
1059 | * opers: hide from opers only | |
1060 | * no: do not hide error messages | |
372b2193 | 1061 | * Admins on other servers count as opers. |
212380e3 | 1062 | */ |
1063 | hide_error_messages = opers; | |
1064 | ||
1065 | /* hide spoof ips: hide the real ips of auth{} spoofed users | |
1066 | * If disabled, local opers can see them. | |
1067 | * Dynamic spoofs (e.g. set by services) are unaffected by this; | |
1068 | * any oper (local and remote) can see the real ip. | |
1069 | * Warning: for whowas, this is checked when the client exits, | |
1070 | * not when the IP is shown. | |
1071 | */ | |
1072 | hide_spoof_ips = yes; | |
1073 | ||
1074 | /* default umodes: umodes to set upon connection | |
1075 | * If you have enabled the ip_cloaking extension, and you wish for | |
60e16d64 G |
1076 | * incoming clients to be cloaked upon connection, +x must be in |
1077 | * the umode string below. | |
212380e3 | 1078 | */ |
60e16d64 | 1079 | default_umodes = "+ix"; |
212380e3 | 1080 | |
1081 | /* default operstring: defines the default oper response | |
1082 | * in /whois queries, eg "is an IRC Operator". | |
1083 | * After startup use /quote set operstring to change. | |
1084 | */ | |
1085 | default_operstring = "is an IRC Operator"; | |
1086 | ||
1087 | /* default adminstring: defines the default admin response | |
1088 | * in /whois queries, eg "is a Server Administrator". | |
1089 | * After startup use /quote set adminstring to change. | |
1090 | */ | |
1091 | default_adminstring = "is a Server Administrator"; | |
1092 | ||
220c9db5 G |
1093 | /* default operhost: defines the default virtual host that |
1094 | * operators will receiving upon opering up. Can be overriden | |
1095 | * by the vhost option in individual operator blocks. This | |
1096 | * must be a valid hostmask. | |
1097 | */ | |
1098 | default_operhost = "staff.testnet.net"; | |
1099 | ||
c0e2aa60 JH |
1100 | /* static quit: Quit message to display for all users (not opers) |
1101 | * on QUIT. | |
1102 | */ | |
1103 | #static_quit = "I like turtles!"; | |
1104 | ||
212380e3 | 1105 | /* servicestring: defines the response for opered services (+S) |
1106 | * in /whois queries, eg "is a Network Service". | |
1107 | * This is updated on rehash. | |
1108 | */ | |
1109 | servicestring = "is a Network Service"; | |
1110 | ||
1111 | /* disable fake channels: disable local users joining fake versions | |
1112 | * of channels, eg #foo^B^B. Disables bold, mirc colour, reverse, | |
1113 | * underline and hard space. (ASCII 2, 3, 22, 31, 160 respectively). | |
1114 | */ | |
1115 | disable_fake_channels = no; | |
1116 | ||
6898ce9d JH |
1117 | /* hide_channel_below_users: Amount of users a channel must have in it |
1118 | * before it is shown in a standard LIST. This can be overridden by | |
1119 | * invoking LIST like: /LIST <3 | |
1120 | */ | |
1121 | hide_channel_below_users = 3; | |
1122 | ||
212380e3 | 1123 | /* tkline_expire_notices: give a notice to opers when a tkline |
1124 | * expires | |
1125 | */ | |
1126 | tkline_expire_notices = no; | |
1127 | ||
1128 | /* floodcount: the default value of floodcount that is configurable | |
1129 | * via /quote set floodcount. This is the amount of lines a user | |
1130 | * may send to any other user/channel in one second. | |
1131 | */ | |
1132 | default_floodcount = 10; | |
1133 | ||
1134 | /* failed oper notice: send a notice to all opers on the server when | |
1135 | * someone tries to OPER and uses the wrong password, host or ident. | |
1136 | */ | |
1137 | failed_oper_notice = yes; | |
1138 | ||
1139 | /* dots in ident: the amount of '.' characters permitted in an ident | |
1140 | * reply before the user is rejected. | |
1141 | */ | |
1142 | dots_in_ident=2; | |
1143 | ||
212380e3 | 1144 | /* min nonwildcard: the minimum non wildcard characters in k/d/g lines |
1145 | * placed via the server. klines hand placed are exempt from limits. | |
1146 | * wildcard chars: '.' '*' '?' '@' | |
1147 | */ | |
1148 | min_nonwildcard = 4; | |
1149 | ||
1150 | /* min nonwildcard simple: the minimum non wildcard characters in | |
1151 | * xlines/resvs placed via the server. | |
1152 | * wildcard chars: '*' '?' | |
1153 | */ | |
1154 | min_nonwildcard_simple = 3; | |
1155 | ||
b791dea8 | 1156 | /* max accept: maximum allowed /accept's for +gGR usermodes */ |
212380e3 | 1157 | max_accept = 20; |
1158 | ||
1159 | /* max monitor: the maximum amount of nicknames a client may have in | |
1160 | * their monitor (server-side notify) list. | |
1161 | */ | |
1162 | max_monitor = 100; | |
1163 | ||
1164 | /* nick flood: enable the nickflood control code */ | |
1165 | anti_nick_flood = yes; | |
1166 | ||
1167 | /* nick flood: the nick changes allowed in the specified period */ | |
1168 | max_nick_time = 20 seconds; | |
1169 | max_nick_changes = 5; | |
1170 | ||
6b2d7a74 | 1171 | /* anti spam time: the minimum time a user must be connected before |
212380e3 | 1172 | * custom quit messages are allowed. |
1173 | */ | |
6b2d7a74 | 1174 | anti_spam_exit_message_time = 5 minutes; |
e78f6850 JH |
1175 | |
1176 | /* use part messages: This option controls whether users should be | |
1177 | * allowed to send PART messages to channels. It should probably | |
1178 | * be set to no if static_quit is set. | |
1179 | */ | |
1180 | use_part_messages = yes; | |
212380e3 | 1181 | |
1182 | /* ts delta: the time delta allowed between server clocks before | |
1183 | * a warning is given, or before the link is dropped. all servers | |
1184 | * should run ntpdate/rdate to keep clocks in sync | |
1185 | */ | |
1186 | ts_warn_delta = 30 seconds; | |
1187 | ts_max_delta = 5 minutes; | |
1188 | ||
1189 | /* client exit: prepend a users quit message with "Client exit: " */ | |
1190 | client_exit = yes; | |
1191 | ||
1192 | /* collision fnc: change user's nick to their UID instead of | |
1193 | * killing them, if possible. This setting only applies to nick | |
1194 | * collisions detected on this server. Only enable this if | |
1195 | * all servers on the network allow remote nicks to start with | |
1196 | * a digit. | |
1197 | */ | |
1198 | collision_fnc = yes; | |
1199 | ||
1200 | /* global snotices: send out certain snotices (most +b, +f, +y, | |
1201 | * some +s) to other servers via ENCAP SNOTE. Received SNOTEs are | |
1202 | * displayed unconditionally. | |
1203 | */ | |
1204 | global_snotices = yes; | |
1205 | ||
1206 | /* dline reason: show the user the dline reason when they connect | |
1207 | * and are dlined. | |
1208 | */ | |
1209 | dline_with_reason = yes; | |
1210 | ||
1211 | /* kline delay: delay the checking of klines until a specified time. | |
1212 | * Useful if large kline lists are applied often to prevent the | |
1213 | * server eating CPU. | |
1214 | */ | |
1215 | kline_delay = 0 seconds; | |
1216 | ||
d5a432fa | 1217 | /* kline reason: show the user the reason why they are k/dlined |
212380e3 | 1218 | * on exit. may give away who set k/dline when set via tcm. |
1219 | */ | |
1220 | kline_with_reason = yes; | |
1221 | ||
1222 | /* kline reason: make the users quit message on channels this | |
1223 | * reason instead of the oper's reason. | |
1224 | */ | |
2ec04d9c | 1225 | kline_reason = "K-Lined"; |
212380e3 | 1226 | |
1227 | /* identify to services via server password | |
1228 | * if auth{} block had no password but the user specified a | |
1229 | * server password anyway, send a PRIVMSG to <identify_service> | |
1230 | * with as text <identify_command> <password>. | |
1231 | */ | |
1232 | identify_service = "NickServ@services.int"; | |
1233 | identify_command = "IDENTIFY"; | |
1234 | ||
1235 | /* non redundant klines: flag and ignore redundant klines */ | |
1236 | non_redundant_klines = yes; | |
1237 | ||
1238 | /* warn no nline: warn opers about servers that try to connect but | |
1239 | * we dont have a connect {} block for. Twits with misconfigured | |
1240 | * servers can get really annoying with this enabled. | |
1241 | */ | |
1242 | warn_no_nline = yes; | |
1243 | ||
9b9d818b | 1244 | /* use propagated bans: KLINE, XLINE and RESV set fully propagated bans. |
112e8a66 JT |
1245 | * That means the bans are part of the netburst and restarted/split |
1246 | * servers will get them, but they will not apply to 3.2 and older | |
1247 | * servers at all. | |
504f309e JH |
1248 | */ |
1249 | use_propagated_bans = yes; | |
1250 | ||
212380e3 | 1251 | /* stats e disabled: disable stats e. useful if server ips are |
1252 | * exempted and you dont want them listing on irc. | |
1253 | */ | |
1254 | stats_e_disabled = no; | |
1255 | ||
1256 | /* stats c oper only: make stats c (connect {}) oper only */ | |
1257 | stats_c_oper_only=no; | |
1258 | ||
1259 | /* stats h oper only: make stats h (hub_mask/leaf_mask) oper only */ | |
1260 | stats_h_oper_only=no; | |
1261 | ||
1262 | /* stats y oper only: make stats y (class {}) oper only */ | |
1263 | stats_y_oper_only=no; | |
1264 | ||
1265 | /* stats o oper only: make stats o (opers) oper only */ | |
1266 | stats_o_oper_only=yes; | |
1267 | ||
1268 | /* stats P oper only: make stats P (ports) oper only | |
1269 | * NOTE: users doing stats P will never be given the ips that the | |
1270 | * server listens on, simply the ports. | |
1271 | */ | |
1272 | stats_P_oper_only=no; | |
1273 | ||
1274 | /* stats i oper only: make stats i (auth {}) oper only. set to: | |
1275 | * yes: show users no auth blocks, made oper only. | |
1276 | * masked: show users first matching auth block | |
1277 | * no: show users all auth blocks. | |
1278 | */ | |
1279 | stats_i_oper_only=masked; | |
1280 | ||
1281 | /* stats k/K oper only: make stats k/K (klines) oper only. set to: | |
1282 | * yes: show users no auth blocks, made oper only | |
1283 | * masked: show users first matching auth block | |
1284 | * no: show users all auth blocks. | |
1285 | */ | |
1286 | stats_k_oper_only=masked; | |
1287 | ||
1288 | /* map oper only: make /map oper only */ | |
1289 | map_oper_only = no; | |
1290 | ||
1291 | /* operspy admin only: make operspy notices to +Z admin only */ | |
1292 | operspy_admin_only = no; | |
1293 | ||
1294 | /* operspy dont care user info: treat /who mask as if there was | |
1295 | * an '!' always; do not log or server notice about operspy | |
1296 | * /who mask, /masktrace and /scan. channel information is still | |
1297 | * protected. */ | |
1298 | operspy_dont_care_user_info = no; | |
1299 | ||
837a020a G |
1300 | /* secret channels in whois: display secret channels in /whois |
1301 | * even if operspy was not used, as long as the oper doing the | |
1302 | * whois has the oper:spy priv. this will not send any kind of | |
1303 | * server notice. */ | |
1304 | secret_channels_in_whois = no; | |
1305 | ||
212380e3 | 1306 | /* caller id wait: time between notifying a +g user that somebody |
1307 | * is messaging them. | |
1308 | */ | |
1309 | caller_id_wait = 1 minute; | |
1310 | ||
1311 | /* pace wait simple: time between use of less intensive commands | |
1312 | * (HELP, remote WHOIS, WHOWAS) | |
1313 | */ | |
1314 | pace_wait_simple = 1 second; | |
1315 | ||
1316 | /* pace wait: time between more intensive commands | |
1317 | * (ADMIN, INFO, LIST, LUSERS, MOTD, STATS, VERSION) | |
1318 | */ | |
1319 | pace_wait = 10 seconds; | |
1320 | ||
1321 | /* short motd: send clients a notice telling them to read the motd | |
1322 | * instead of forcing a motd to clients who may simply ignore it. | |
1323 | */ | |
1324 | short_motd = no; | |
1325 | ||
1326 | /* ping cookies: require clients to respond exactly to a ping command, | |
1327 | * can help block certain types of drones and FTP PASV mode spoofing. | |
1328 | */ | |
1329 | ping_cookie = no; | |
1330 | ||
1331 | /* connect timeout: sets how long we should wait for a connection | |
1332 | * request to succeed | |
1333 | */ | |
1334 | connect_timeout = 30 seconds; | |
1335 | ||
e50ed244 JH |
1336 | /* ident timeout: Amount of time (in seconds) that the IRCd will |
1337 | * wait for a user to respond to an ident request. | |
1338 | */ | |
14340828 | 1339 | default_ident_timeout = 5; |
e50ed244 | 1340 | |
212380e3 | 1341 | /* disable auth: disables identd checking */ |
1342 | disable_auth = no; | |
1343 | ||
fa6495b4 JH |
1344 | /* no oper flood: increase flood limits for opers. |
1345 | * This option quadruples the user command flood limits, it | |
1346 | * DOES NOT affect PRIVMSG/NOTICE usage. | |
1347 | */ | |
212380e3 | 1348 | no_oper_flood = yes; |
1349 | ||
1cc810d3 JH |
1350 | /* true no oper flood: Allow opers to NEVER hit flood limits. |
1351 | * With the above setting, flood limits are set to 4x what they | |
1352 | * are for normal users. With this setting, they're removed entirely. | |
706f2ddf | 1353 | * For this setting to work, you need to have no_oper_flood enabled as well. |
fa6495b4 | 1354 | * This option DOES allow PRIVMSG/NOTICE flooding. |
1cc810d3 JH |
1355 | * ENABLE THIS SETTING WITH CAUTION. |
1356 | */ | |
1357 | true_no_oper_flood = no; | |
1358 | ||
212380e3 | 1359 | /* REMOVE ME. The following line checks you've been reading. */ |
1360 | havent_read_conf = yes; | |
1361 | ||
1362 | /* max targets: the maximum amount of targets in a single | |
1363 | * PRIVMSG/NOTICE. set to 999 NOT 0 for unlimited. | |
1364 | */ | |
1365 | max_targets = 4; | |
1366 | ||
1367 | /* client flood: maximum number of lines in a clients queue before | |
1368 | * they are dropped for flooding. | |
1369 | */ | |
1370 | client_flood = 20; | |
1371 | ||
1372 | /* use_whois_actually: send clients requesting a whois a numeric | |
1373 | * giving the real IP of non-spoofed clients to prevent DNS abuse. | |
1374 | */ | |
1375 | use_whois_actually = yes; | |
1376 | ||
1377 | /* usermodes configurable: a list of usermodes for the options below | |
1378 | * | |
1379 | * +g - callerid - Server Side Ignore | |
1380 | * +D - deaf - Don't see channel messages | |
1381 | * +i - invisible - Not shown in NAMES or WHO unless you share a | |
1382 | * a channel | |
1383 | * +l - locops - See LOCOPS messages | |
1384 | * +Q - noforward - Unaffected by channel forwarding | |
1385 | * +R - regonlymsg - No messages from unindentified | |
1386 | * +s - servnotice - See server notices | |
1387 | * +w - wallop - See oper and server generated WALLOPS | |
1388 | * +z - operwall - See operwalls | |
e2994fae G |
1389 | * +C - noctcp - Block CTCPs to user. |
1390 | * +V - noinvite - Block INVITE to user. | |
1391 | * +B - bot - Marks as a bot. | |
5814373f | 1392 | * +p - override - Implicit operator access in all channels. |
b791dea8 | 1393 | * This is oper-only and requires the oper:override priv. |
212380e3 | 1394 | */ |
1395 | ||
1396 | /* oper only umodes: usermodes only opers may set */ | |
1397 | oper_only_umodes = operwall, locops, servnotice; | |
1398 | ||
1399 | /* oper umodes: default usermodes opers get when they /oper */ | |
1400 | oper_umodes = locops, servnotice, operwall, wallop; | |
1401 | ||
1402 | /* oper snomask: default snomask opers get when they /oper, | |
1403 | * provided they have umode +s set */ | |
1404 | oper_snomask = "+s"; | |
1405 | ||
212380e3 | 1406 | /* use egd: if your system does not have *random devices yet you |
1407 | * want to use OpenSSL and encrypted links, enable this. Beware - | |
1408 | * EGD is *very* CPU intensive when gathering data for its pool | |
1409 | */ | |
1410 | #use_egd = yes; | |
1411 | ||
1412 | /* egdpool path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7 | |
1413 | * which automatically finds the path. | |
1414 | */ | |
1415 | #egdpool_path = "/var/run/egd-pool"; | |
1416 | ||
1417 | ||
1418 | /* compression level: level of compression for compressed links between | |
1419 | * servers. | |
1420 | * | |
1421 | * values are between: 1 (least compression, fastest) | |
1422 | * and: 9 (most compression, slowest). | |
1423 | */ | |
1424 | #compression_level = 6; | |
1425 | ||
1426 | /* burst_away: This enables bursting away messages to servers. | |
1427 | * With this disabled, we will only propogate AWAY messages | |
1428 | * as users send them, but never burst them. Be warned though | |
1429 | * enabling this could increase the size of a burst significantly | |
1430 | * for a large network, like EFnet. | |
1431 | */ | |
1432 | burst_away = yes; | |
1433 | ||
1434 | /* nick delay: This locks nicks of split clients for the given time | |
1435 | * or until a remote client uses the nick. This significantly | |
1436 | * reduces nick collisions on short splits but it can be annoying. | |
1437 | * To make things as fair as possible, this should be the same on | |
1438 | * all servers. If you enable this, the suggested value is 15 minutes. | |
1439 | */ | |
1440 | nick_delay = 0 seconds; | |
1441 | ||
1442 | /* reject time: the amount of rejections through klines/dlines etc | |
1443 | * allowed in the given time before the rejection is cached and | |
1444 | * a pseudo temp dline is placed | |
1445 | */ | |
1446 | reject_ban_time = 1 minute; | |
1447 | reject_after_count = 3; | |
1448 | ||
1449 | /* reject duration: the amount of time to cache the rejection */ | |
1450 | reject_duration = 5 minutes; | |
54015b5f | 1451 | |
d1275a8f JT |
1452 | /* throttle_duration: Amount of time that throttling will be applied to an IP |
1453 | * address. | |
54015b5f | 1454 | */ |
d1275a8f JT |
1455 | throttle_duration = 60; |
1456 | ||
1457 | /* throttle_count: Number of connections within throttle_duration that it takes | |
1458 | * for throttling to take effect */ | |
1459 | throttle_count = 4; | |
9ace21a7 JH |
1460 | |
1461 | /* expire_override_time: User mode +p will be automatically unset | |
1462 | * this long after it is set. 0 disables this. Default is 5 minutes. | |
1463 | */ | |
1464 | expire_override_time = 5 minutes; | |
212380e3 | 1465 | }; |
1466 | ||
1467 | modules { | |
1468 | /* module path: paths to search for modules specified below and | |
1469 | * in /modload. | |
1470 | */ | |
1471 | path = "/usr/local/ircd/modules"; | |
1472 | path = "/usr/local/ircd/modules/autoload"; | |
1473 | ||
1474 | /* module: the name of a module to load on startup/rehash */ | |
1475 | #module = "some_module.so"; | |
1476 | }; |