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