1 |
/* doc/example.conf - ircd-hybrid-8 Example configuration file |
2 |
* Copyright (C) 2000-2012 Hybrid Development Team |
3 |
* |
4 |
* Written by ejb, wcampbel, db, leeh and others |
5 |
* Other example configurations can be found in the source dir under |
6 |
* doc/. |
7 |
* |
8 |
* $Id$ |
9 |
*/ |
10 |
|
11 |
/* IMPORTANT NOTES: |
12 |
* |
13 |
* auth {} blocks MUST be specified in order of precedence. The first one |
14 |
* that matches a user will be used. So place spoofs first, then specials, |
15 |
* then general access. |
16 |
* |
17 |
* Shell style (#), C++ style (//) and C style comments are supported. |
18 |
* |
19 |
* Files may be included by either: |
20 |
* .include "filename" |
21 |
* .include <filename> |
22 |
* |
23 |
* Times/durations are written as: |
24 |
* 12 hours 30 minutes 1 second |
25 |
* |
26 |
* Valid units of time: |
27 |
* month, week, day, hour, minute, second |
28 |
* |
29 |
* Valid units of size: |
30 |
* megabyte/mbyte/mb, kilobyte/kbyte/kb, byte |
31 |
* |
32 |
* Sizes and times may be singular or plural. |
33 |
*/ |
34 |
|
35 |
/* EFNET NOTE: |
36 |
* |
37 |
* This config file is NOT suitable for EFNet. EFNet admins should use |
38 |
* example.efnet.conf |
39 |
*/ |
40 |
|
41 |
/* |
42 |
* serverinfo {}: contains information about the server |
43 |
*/ |
44 |
serverinfo { |
45 |
/* |
46 |
* name: the name of this server. This cannot be changed at runtime. |
47 |
*/ |
48 |
name = "hades.arpa"; |
49 |
|
50 |
/* |
51 |
* sid: a server's unique ID. This is three characters long and must |
52 |
* be in the form [0-9][A-Z0-9][A-Z0-9]. The first character must be |
53 |
* a digit, followed by 2 alpha-numerical letters. |
54 |
* NOTE: The letters must be capitalized. This cannot be changed at runtime. |
55 |
*/ |
56 |
sid = "_CHANGE_ME_"; |
57 |
|
58 |
/* |
59 |
* description: the description of the server. |
60 |
*/ |
61 |
description = "ircd-hybrid test server"; |
62 |
|
63 |
/* |
64 |
* network info: the name and description of the network this server |
65 |
* is on. Shown in the 005 reply and used with serverhiding. |
66 |
*/ |
67 |
network_name = "MyNet"; |
68 |
network_desc = "This is My Network"; |
69 |
|
70 |
/* |
71 |
* hub: allow this server to act as a hub and have multiple servers |
72 |
* connected to it. |
73 |
*/ |
74 |
hub = no; |
75 |
|
76 |
/* |
77 |
* vhost: the IP to bind to when we connect outward to ipv4 servers. |
78 |
* This should be an ipv4 IP only, or "*" for INADDR_ANY. |
79 |
*/ |
80 |
#vhost = "192.169.0.1"; |
81 |
|
82 |
/* |
83 |
* vhost6: the IP to bind to when we connect outward to ipv6 servers. |
84 |
* This should be an ipv6 IP only, or "*" for INADDR_ANY. |
85 |
*/ |
86 |
#vhost6 = "3ffe:80e8:546::2"; |
87 |
|
88 |
/* max_clients: the maximum number of clients allowed to connect */ |
89 |
max_clients = 512; |
90 |
|
91 |
/* |
92 |
* max_nick_length: only applies to local clients. Must be in the |
93 |
* range of 9 to 30. Default is 9 if nothing else is specified. |
94 |
*/ |
95 |
max_nick_length = 9; |
96 |
|
97 |
/* |
98 |
* max_topic_length: only applies to topics set by local clients. |
99 |
* Must be in the range of 80 to 300. Default is 80 if nothing |
100 |
* else is specified. |
101 |
*/ |
102 |
max_topic_length = 160; |
103 |
|
104 |
/* |
105 |
* rsa_private_key_file: the path to the file containing our |
106 |
* rsa key for cryptlink. |
107 |
* |
108 |
* Example command to store a 2048 bit RSA keypair in |
109 |
* rsa.key, and the public key in rsa.pub: |
110 |
* |
111 |
* openssl genrsa -out rsa.key 2048 |
112 |
* openssl rsa -in rsa.key -pubout -out rsa.pub |
113 |
* chown <ircd-user>.<ircd.group> rsa.key rsa.pub |
114 |
* chmod 0600 rsa.key |
115 |
* chmod 0644 rsa.pub |
116 |
*/ |
117 |
#rsa_private_key_file = "/usr/local/ircd/etc/rsa.key"; |
118 |
|
119 |
/* |
120 |
* ssl_certificate_file: the path to the file containing our |
121 |
* ssl certificate for encrypted client connection. |
122 |
* |
123 |
* This assumes your private RSA key is stored in rsa.key. You |
124 |
* MUST have an RSA key in order to generate the certificate |
125 |
* |
126 |
* openssl req -new -days 365 -x509 -key rsa.key -out cert.pem |
127 |
* |
128 |
* See http://www.openssl.org/docs/HOWTO/certificates.txt |
129 |
* |
130 |
* Please use the following values when generating the cert |
131 |
* |
132 |
* Organization Name: Network Name |
133 |
* Organization Unit Name: changme.someirc.net |
134 |
* Common Name: irc.someirc.net |
135 |
* E-mail: you@domain.com |
136 |
*/ |
137 |
#ssl_certificate_file = "/usr/local/ircd/etc/cert.pem"; |
138 |
|
139 |
/* |
140 |
* ssl_dh_param_file: |
141 |
* |
142 |
* Path to the PEM encoded Diffie-Hellman parameter file. |
143 |
* DH parameters are strictly required when using ciphers |
144 |
* with EDH (ephemeral Diffie-Hellman) key exchange. |
145 |
* |
146 |
* A DH parameter file can be created by running: |
147 |
* |
148 |
* openssl dhparam -out dhparam.pem 1024 |
149 |
* |
150 |
* Prime size must be at least 1024 bits. Further information |
151 |
* regarding specific OpenSSL dhparam command-line options |
152 |
* can be found in the OpenSSL manual. |
153 |
*/ |
154 |
#ssl_dh_param_file = "/usr/local/ircd/etc/dhparam.pem"; |
155 |
|
156 |
/* |
157 |
* ssl_cipher_list: |
158 |
* |
159 |
* List of ciphers that are supported by _this_ server. Can be used to |
160 |
* enforce specific ciphers for incoming SSL/TLS connections. |
161 |
* If a client (which also includes incoming server connections) isn't |
162 |
* capable of any cipher listed below, the connection will simply be |
163 |
* rejected. |
164 |
* |
165 |
* A list of supported ciphers can be obtained by running: |
166 |
* |
167 |
* openssl ciphers -ssl3 -tls1 -v |
168 |
* |
169 |
* Multiple ciphers are separated by colons. The order of preference is |
170 |
* from left to right. |
171 |
*/ |
172 |
#ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA"; |
173 |
|
174 |
/* |
175 |
* ssl_server_method: |
176 |
* ssl_client_method: |
177 |
* |
178 |
* SSL/TLS methods we provide for incoming (server method) and |
179 |
* outgoing (client method) SSL/TLS connections. |
180 |
* This can be either sslv3 for SSLv3, and/or tlsv1 for TLSv1. |
181 |
*/ |
182 |
#ssl_server_method = tlsv1, sslv3; |
183 |
#ssl_client_method = tlsv1; |
184 |
}; |
185 |
|
186 |
/* |
187 |
* admin {}: contains admin information about the server |
188 |
*/ |
189 |
admin { |
190 |
name = "Smurf target"; |
191 |
description = "Main Server Administrator"; |
192 |
email = "<syn@packets.r.us>"; |
193 |
}; |
194 |
|
195 |
/* |
196 |
* class {}: contains information about classes for users |
197 |
*/ |
198 |
class { |
199 |
/* name: the name of the class */ |
200 |
name = "users"; |
201 |
|
202 |
/* |
203 |
* ping_time: how often a client must reply to a PING from the |
204 |
* server before they are dropped. |
205 |
*/ |
206 |
ping_time = 90 seconds; |
207 |
|
208 |
/* |
209 |
* number_per_ip: how many local users are allowed to connect |
210 |
* from one IP (optional) |
211 |
*/ |
212 |
number_per_ip = 2; |
213 |
|
214 |
/* |
215 |
* max_local: how many local users are allowed to connect |
216 |
* from one ident@host (optional) |
217 |
*/ |
218 |
max_local = 2; |
219 |
|
220 |
/* |
221 |
* max_global: network-wide limit of users per ident@host (optional) |
222 |
*/ |
223 |
max_global = 10; |
224 |
|
225 |
/* |
226 |
* max_number: the maximum number of users allowed in this class (optional) |
227 |
*/ |
228 |
max_number = 100; |
229 |
|
230 |
/* |
231 |
* the following lines are optional and allow you to define |
232 |
* how many users can connect from one /NN subnet |
233 |
*/ |
234 |
cidr_bitlen_ipv4 = 24; |
235 |
cidr_bitlen_ipv6 = 120; |
236 |
number_per_cidr = 16; |
237 |
|
238 |
/* |
239 |
* sendq: the amount of data allowed in a clients send queue before |
240 |
* they are dropped. |
241 |
*/ |
242 |
sendq = 100 kbytes; |
243 |
|
244 |
/* |
245 |
* recvq: maximum amount of data in a clients receive queue before |
246 |
* they are dropped for flooding. Defaults to 2560 if the chosen |
247 |
* value isn't within the range of 512 to 8000. |
248 |
*/ |
249 |
recvq = 2560 bytes; |
250 |
}; |
251 |
|
252 |
class { |
253 |
name = "opers"; |
254 |
ping_time = 90 seconds; |
255 |
number_per_ip = 10; |
256 |
max_number = 100; |
257 |
sendq = 100 kbytes; |
258 |
}; |
259 |
|
260 |
class { |
261 |
name = "server"; |
262 |
ping_time = 90 seconds; |
263 |
|
264 |
/* |
265 |
* connectfreq: only used in server classes. Specifies the delay |
266 |
* between autoconnecting to servers. |
267 |
*/ |
268 |
connectfreq = 5 minutes; |
269 |
|
270 |
/* max number: the amount of servers to autoconnect to */ |
271 |
max_number = 1; |
272 |
|
273 |
/* sendq: servers need a higher sendq as they send more data */ |
274 |
sendq = 2 megabytes; |
275 |
}; |
276 |
|
277 |
/* |
278 |
* listen {}: contains information about the ports ircd listens on |
279 |
*/ |
280 |
listen { |
281 |
/* |
282 |
* port: the specific port to listen on. If no host is specified |
283 |
* before, it will listen on all available IPs. |
284 |
* |
285 |
* Ports are separated via a comma, a range may be specified using ".." |
286 |
*/ |
287 |
|
288 |
/* port: listen on all available IPs, ports 6665 to 6669 */ |
289 |
port = 6665 .. 6669; |
290 |
|
291 |
/* |
292 |
* Listen on 192.168.0.1/6697 with ssl enabled and hidden from STATS P |
293 |
* unless you are an administrator. |
294 |
* |
295 |
* NOTE: The "flags" directive has to come before "port". Always! |
296 |
* |
297 |
* Currently available flags are: |
298 |
* |
299 |
* ssl - Port may only accept TLS/SSL connections |
300 |
* server - Only server connections are permitted |
301 |
* hidden - Port is hidden from /stats P, unless you're an admin |
302 |
*/ |
303 |
flags = hidden, ssl; |
304 |
host = "192.168.0.1"; |
305 |
port = 6697; |
306 |
|
307 |
/* |
308 |
* host: set a specific IP/host the ports after the line will listen |
309 |
* on. This may be ipv4 or ipv6. |
310 |
*/ |
311 |
host = "1.2.3.4"; |
312 |
port = 7000, 7001; |
313 |
|
314 |
host = "3ffe:1234:a:b:c::d"; |
315 |
port = 7002; |
316 |
}; |
317 |
|
318 |
/* |
319 |
* auth {}: allow users to connect to the ircd |
320 |
*/ |
321 |
auth { |
322 |
/* |
323 |
* user: the user@host allowed to connect. Multiple user |
324 |
* lines are permitted per auth block. |
325 |
*/ |
326 |
user = "*@172.16.0.0/12"; |
327 |
user = "*test@123D:B567:*"; |
328 |
|
329 |
/* password: an optional password that is required to use this block */ |
330 |
password = "letmein"; |
331 |
|
332 |
/* |
333 |
* encrypted: controls whether the auth password above has been |
334 |
* encrypted. |
335 |
*/ |
336 |
encrypted = yes; |
337 |
|
338 |
/* |
339 |
* spoof: fake the users host to this. This is free-form, |
340 |
* just do everyone a favor and don't abuse it. ('=' prefix on /stats I) |
341 |
*/ |
342 |
spoof = "I.still.hate.packets"; |
343 |
|
344 |
/* class: the class the user is placed in */ |
345 |
class = "opers"; |
346 |
|
347 |
/* |
348 |
* need_password - don't allow users who haven't supplied the correct |
349 |
* password to connect using another auth{} block |
350 |
* ('&' prefix on /stats I if disabled) |
351 |
* need_ident - require the user to have identd to connect ('+' prefix on /stats I) |
352 |
* spoof_notice - enable spoofing notification to admins |
353 |
* exceed_limit - allow a user to exceed class limits ('>' prefix on /stats I) |
354 |
* kline_exempt - exempt this user from k/glines ('^' prefix on /stats I) |
355 |
* gline_exempt - exempt this user from glines ('_' prefix on /stats I) |
356 |
* resv_exempt - exempt this user from resvs ('$' prefix on /stats I) |
357 |
* no_tilde - remove ~ from a user with no ident ('-' prefix on /stats I) |
358 |
* can_flood - allow this user to exceed flood limits ('|' prefix on /stats I) |
359 |
* webirc - enables WEBIRC authentication for web-based clients such as Mibbit |
360 |
* ('<' prefix on /stats I) |
361 |
*/ |
362 |
flags = need_password, spoof_notice, exceed_limit, kline_exempt, |
363 |
gline_exempt, resv_exempt, no_tilde, can_flood; |
364 |
}; |
365 |
|
366 |
auth { |
367 |
/* |
368 |
* redirect: the server and port to redirect a user to. A user does |
369 |
* not have to obey the redirection, the ircd just suggests an alternative |
370 |
* server for them. |
371 |
*/ |
372 |
redirserv = "this.is.not.a.real.server"; |
373 |
redirport = 6667; |
374 |
|
375 |
user = "*.server"; |
376 |
|
377 |
/* class: a class is required even though it is not used */ |
378 |
class = "users"; |
379 |
}; |
380 |
|
381 |
auth { |
382 |
user = "*@*"; |
383 |
class = "users"; |
384 |
flags = need_ident; |
385 |
}; |
386 |
|
387 |
/* |
388 |
* operator {}: defines ircd operators |
389 |
* |
390 |
* ircd-hybrid no longer supports local operators, privileges are |
391 |
* controlled via flags. |
392 |
*/ |
393 |
operator { |
394 |
/* name: the name of the oper */ |
395 |
name = "sheep"; |
396 |
|
397 |
/* |
398 |
* user: the user@host required for this operator. Multiple |
399 |
* user="" lines are supported. |
400 |
*/ |
401 |
user = "*sheep@192.168.0.0/16"; |
402 |
user = "*@127.0.0.0/8"; |
403 |
|
404 |
/* |
405 |
* password: the password required to oper. By default this will |
406 |
* need to be encrypted by using the provided mkpasswd tool. |
407 |
* Several password hash algorithms are available depending |
408 |
* on your system's crypt() implementation. For example, a modern |
409 |
* glibc already has support for SHA-256/512, and MD5 encryption |
410 |
* algorithms. |
411 |
*/ |
412 |
password = "$5$x5zof8qe.Yc7/bPp$5zIg1Le2Lsgd4CvOjaD20pr5PmcfD7ha/9b2.TaUyG4"; |
413 |
|
414 |
/* |
415 |
* encrypted: controls whether the oper password above has been |
416 |
* encrypted. |
417 |
*/ |
418 |
encrypted = yes; |
419 |
|
420 |
/* |
421 |
* rsa_public_key_file: the public key for this oper when using Challenge. |
422 |
* A password should not be defined when this is used, see |
423 |
* doc/challenge.txt for more information. |
424 |
*/ |
425 |
# rsa_public_key_file = "/usr/local/ircd/etc/oper.pub"; |
426 |
|
427 |
/* class: the class the oper joins when they successfully /oper */ |
428 |
class = "opers"; |
429 |
|
430 |
/* |
431 |
* umodes: default usermodes opers get when they /oper. If defined, |
432 |
* it will override oper_umodes settings in general {}. |
433 |
* Available usermodes: |
434 |
* |
435 |
* +b - bots - See bot and drone flooding notices |
436 |
* +c - cconn - Client connection/quit notices |
437 |
* +C - cconn_full - Client connection/quit notices full |
438 |
* +D - deaf - Don't receive channel messages |
439 |
* +d - debug - See debugging notices |
440 |
* +f - full - See auth{} block full notices |
441 |
* +G - softcallerid - Server Side Ignore for users not on your channels |
442 |
* +g - callerid - Server Side Ignore (for privmsgs etc) |
443 |
* +H - hidden - Hides operator status to other users |
444 |
* +i - invisible - Not shown in NAMES or WHO unless you share a |
445 |
* a channel |
446 |
* +j - rej - See rejected client notices |
447 |
* +k - skill - See server generated KILL messages |
448 |
* +l - locops - See LOCOPS messages |
449 |
* +n - nchange - See client nick changes |
450 |
* +s - servnotice - See general server notices |
451 |
* +u - unauth - See unauthorized client notices |
452 |
* +w - wallop - See server generated WALLOPS |
453 |
* +x - external - See remote server connection and split notices |
454 |
* +y - spy - See LINKS, STATS, TRACE notices etc. |
455 |
* +z - operwall - See oper generated WALLOPS |
456 |
*/ |
457 |
# umodes = locops, servnotice, operwall, wallop; |
458 |
|
459 |
/* |
460 |
* privileges: controls the activities and commands an oper is |
461 |
* allowed to do on the server. All options default to no. |
462 |
* Available options: |
463 |
* |
464 |
* module - allows MODULE |
465 |
* global_kill - allows remote users to be /KILL'd |
466 |
* remote - allows remote SQUIT and CONNECT |
467 |
* remoteban - allows remote KLINE/UNKLINE |
468 |
* dline - allows DLINE |
469 |
* undline - allows UNDLINE |
470 |
* kline - allows KILL and KLINE |
471 |
* unkline - allows UNKLINE |
472 |
* gline - allows GLINE |
473 |
* xline - allows XLINE |
474 |
* globops - allows GLOBOPS |
475 |
* operwall - allows OPERWALL |
476 |
* nick_changes - allows oper to see nickchanges via usermode +n |
477 |
* rehash - allows oper to REHASH config |
478 |
* die - allows DIE |
479 |
* restart - allows RESTART |
480 |
* set - allows SET |
481 |
* admin - gives admin privileges. admins for example, |
482 |
* may see the real IP addresses of servers. |
483 |
*/ |
484 |
flags = global_kill, remote, kline, unkline, xline, globops, restart, |
485 |
die, rehash, nick_changes, admin, operwall, module; |
486 |
}; |
487 |
|
488 |
/* |
489 |
* service {}: specifies what server may act as a network service |
490 |
* |
491 |
* NOTE: it is absolutely important that every single server on the network |
492 |
* has the same service{} block. |
493 |
*/ |
494 |
service { |
495 |
name = "service.someserver"; |
496 |
name = "stats.someserver"; |
497 |
}; |
498 |
|
499 |
/* |
500 |
* connect {}: controls servers we connect to |
501 |
*/ |
502 |
connect { |
503 |
/* name: the name of the server */ |
504 |
name = "irc.uplink.com"; |
505 |
|
506 |
/* |
507 |
* host: the host or IP to connect to. If a hostname is used it |
508 |
* must match the reverse dns of the server. |
509 |
*/ |
510 |
host = "192.168.0.1"; |
511 |
|
512 |
/* |
513 |
* vhost: the IP to bind to when we connect outward to servers. |
514 |
* serverinfo::vhost and serverinfo::vhost6 will be overridden |
515 |
* by this directive. |
516 |
*/ |
517 |
vhost = "192.168.0.2"; |
518 |
|
519 |
/* |
520 |
* passwords: the passwords we send (OLD C:) and accept (OLD N:). |
521 |
* The remote server will have these passwords reversed. |
522 |
*/ |
523 |
send_password = "password"; |
524 |
accept_password = "anotherpassword"; |
525 |
|
526 |
/* |
527 |
* encrypted: controls whether the accept_password above has been |
528 |
* encrypted. |
529 |
*/ |
530 |
encrypted = no; |
531 |
|
532 |
/* port: the port to connect to this server on */ |
533 |
port = 6666; |
534 |
|
535 |
/* |
536 |
* hub_mask: the mask of servers that this server may hub. Multiple |
537 |
* entries are permitted |
538 |
*/ |
539 |
hub_mask = "*"; |
540 |
|
541 |
/* |
542 |
* leaf_mask: the mask of servers this server may not hub. Multiple |
543 |
* entries are permitted. Useful for forbidding EU -> US -> EU routes. |
544 |
*/ |
545 |
# leaf_mask = "*.uk"; |
546 |
|
547 |
/* class: the class this server is in */ |
548 |
class = "server"; |
549 |
|
550 |
/* |
551 |
* ssl_cipher_list: |
552 |
* |
553 |
* List of ciphers that the server we are connecting to must support. |
554 |
* If the server isn't capable of any cipher listed below, the |
555 |
* connection will simply be rejected. |
556 |
* Can be used to enforce stronger ciphers, even though this option |
557 |
* is not necessarily required to establish a SSL/TLS connection. |
558 |
* |
559 |
* Multiple ciphers are separated by colons. The order of preference |
560 |
* is from left to right. |
561 |
*/ |
562 |
#ssl_cipher_list = "DHE-RSA-AES256-SHA:AES256-SHA"; |
563 |
|
564 |
/* |
565 |
* autoconn - controls whether we autoconnect to this server or not, |
566 |
* dependent on class limits. By default, this is disabled. |
567 |
* ssl - Initiates a TLS/SSL connection. |
568 |
*/ |
569 |
# flags = autoconn, ssl; |
570 |
}; |
571 |
|
572 |
connect { |
573 |
name = "ipv6.some.server"; |
574 |
host = "3ffd:dead:beef::1"; |
575 |
send_password = "password"; |
576 |
accept_password = "password"; |
577 |
port = 6666; |
578 |
|
579 |
/* |
580 |
* aftype: controls whether the connection uses "ipv4" or "ipv6". |
581 |
* Default is ipv4. |
582 |
*/ |
583 |
aftype = ipv6; |
584 |
class = "server"; |
585 |
}; |
586 |
|
587 |
/* |
588 |
* cluster {}: servers that share klines/unkline/xline/unxline/resv/unresv/locops |
589 |
* automatically |
590 |
*/ |
591 |
cluster { |
592 |
/* |
593 |
* name: the server to share with, this can take wildcards |
594 |
* |
595 |
* NOTE: only local actions will be clustered, meaning if |
596 |
* the server receives a shared kline/unkline/etc, it |
597 |
* will not be propagated to clustered servers. |
598 |
* |
599 |
* Remote servers are not necessarily required to accept |
600 |
* clustered lines, they need a shared{} for *THIS* server |
601 |
* in order to accept them. |
602 |
*/ |
603 |
name = "*.arpa"; |
604 |
|
605 |
/* |
606 |
* type: list of what to share, options are as follows: |
607 |
* dline - share dlines |
608 |
* undline - share undlines |
609 |
* kline - share klines |
610 |
* unkline - share unklines |
611 |
* xline - share xlines |
612 |
* unxline - share unxlines |
613 |
* resv - share resvs |
614 |
* unresv - share unresvs |
615 |
* locops - share locops |
616 |
* all - share all of the above (default) |
617 |
*/ |
618 |
type = kline, unkline, locops, xline, resv; |
619 |
}; |
620 |
|
621 |
/* |
622 |
* shared {}: users that are allowed to remote kline |
623 |
* |
624 |
* NOTE: This can be effectively used for remote klines. |
625 |
* Please note that there is no password authentication |
626 |
* for users setting remote klines. You must also be |
627 |
* /oper'd in order to issue a remote kline. |
628 |
*/ |
629 |
shared { |
630 |
/* |
631 |
* name: the server the user must be on to set klines. If this is not |
632 |
* specified, the user will be allowed to kline from all servers. |
633 |
*/ |
634 |
name = "irc2.some.server"; |
635 |
|
636 |
/* |
637 |
* user: the user@host mask that is allowed to set klines. If this is |
638 |
* not specified, all users on the server above will be allowed to set |
639 |
* a remote kline. |
640 |
*/ |
641 |
user = "oper@my.host.is.spoofed"; |
642 |
|
643 |
/* |
644 |
* type: list of what to share, options are as follows: |
645 |
* dline - allow oper/server to dline |
646 |
* undline - allow oper/server to undline |
647 |
* kline - allow oper/server to kline |
648 |
* unkline - allow oper/server to unkline |
649 |
* xline - allow oper/server to xline |
650 |
* unxline - allow oper/server to unxline |
651 |
* resv - allow oper/server to resv |
652 |
* unresv - allow oper/server to unresv |
653 |
* locops - allow oper/server to locops - only used for servers that cluster |
654 |
* all - allow oper/server to do all of the above (default) |
655 |
*/ |
656 |
type = kline, unkline, resv; |
657 |
}; |
658 |
|
659 |
/* |
660 |
* kill {}: users that are not allowed to connect |
661 |
* Oper issued klines will be added to the specified kline config |
662 |
*/ |
663 |
kill { |
664 |
user = "bad@*.hacked.edu"; |
665 |
reason = "Obviously hacked account"; |
666 |
}; |
667 |
|
668 |
kill { |
669 |
user = "^O[[:alpha:]]?[[:digit:]]+(x\.o|\.xo)$@^[[:alnum:]]{4}\.evilnet.tld$"; |
670 |
|
671 |
/* |
672 |
* NOTE: You have to set type=regex; when using a regular expression |
673 |
* based user entry |
674 |
*/ |
675 |
type = regex; |
676 |
}; |
677 |
|
678 |
/* |
679 |
* deny {}: IPs that are not allowed to connect (before DNS/ident lookup) |
680 |
* Oper issued dlines will be added to the specified dline config |
681 |
*/ |
682 |
deny { |
683 |
ip = "10.0.1.0/24"; |
684 |
reason = "Reconnecting vhosted bots"; |
685 |
}; |
686 |
|
687 |
/* |
688 |
* exempt {}: IPs that are exempt from deny {} and Dlines |
689 |
*/ |
690 |
exempt { |
691 |
ip = "192.168.0.0/16"; |
692 |
}; |
693 |
|
694 |
/* |
695 |
* resv {}: nicks and channels users may not use/join |
696 |
*/ |
697 |
resv { |
698 |
/* reason: the reason for the proceeding resv's */ |
699 |
reason = "Reserved for services"; |
700 |
|
701 |
/* resv: the nicks and channels users may not join/use */ |
702 |
nick = "Global"; |
703 |
nick = "DevNull"; |
704 |
nick = "BotServ"; |
705 |
nick = "Services"; |
706 |
nick = "StatServ"; |
707 |
nick = "HelpServ"; |
708 |
nick = "HostServ"; |
709 |
nick = "NickServ"; |
710 |
nick = "ChanServ"; |
711 |
nick = "MemoServ"; |
712 |
nick = "OperServ"; |
713 |
channel = "#services"; |
714 |
|
715 |
/* resv: wildcard masks are also supported in nicks only */ |
716 |
reason = "Clone bots"; |
717 |
nick = "clone*"; |
718 |
}; |
719 |
|
720 |
/* |
721 |
* gecos {}: The X: replacement, used for banning users based on |
722 |
* their "realname". |
723 |
*/ |
724 |
gecos { |
725 |
name = "*sex*"; |
726 |
reason = "Possible spambot"; |
727 |
}; |
728 |
|
729 |
gecos { |
730 |
name = "sub7server"; |
731 |
reason = "Trojan drone"; |
732 |
}; |
733 |
|
734 |
gecos { |
735 |
name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$"; |
736 |
|
737 |
/* |
738 |
* NOTE: You have to set type=regex; when using a regular expression |
739 |
* based name entry |
740 |
*/ |
741 |
type = regex; |
742 |
}; |
743 |
|
744 |
/* |
745 |
* channel {}: The channel block contains options pertaining to channels |
746 |
*/ |
747 |
channel { |
748 |
/* |
749 |
* disable_fake_channels: this option, if set to 'yes', will |
750 |
* disallow clients to create or join channels that have one |
751 |
* of the following ASCII characters in their name: |
752 |
* |
753 |
* 2 | bold |
754 |
* 3 | mirc color |
755 |
* 15 | plain text |
756 |
* 22 | reverse |
757 |
* 29 | italic |
758 |
* 31 | underline |
759 |
* 160 | non-breaking space |
760 |
*/ |
761 |
disable_fake_channels = yes; |
762 |
|
763 |
/* |
764 |
* restrict_channels: reverse channel RESVs logic, only reserved |
765 |
* channels are allowed |
766 |
*/ |
767 |
restrict_channels = no; |
768 |
|
769 |
/* |
770 |
* knock_delay: The amount of time a user must wait between issuing |
771 |
* the knock command. |
772 |
*/ |
773 |
knock_delay = 5 minutes; |
774 |
|
775 |
/* |
776 |
* knock_delay_channel: How often a knock to any specific channel |
777 |
* is permitted, regardless of the user sending the knock. |
778 |
*/ |
779 |
knock_delay_channel = 1 minute; |
780 |
|
781 |
/* |
782 |
* max_chans_per_user: The maximum number of channels a user can |
783 |
* join/be on. |
784 |
*/ |
785 |
max_chans_per_user = 25; |
786 |
|
787 |
/* |
788 |
* max_chans_per_oper: The maximum number of channels an oper can |
789 |
* join/be on. |
790 |
*/ |
791 |
max_chans_per_oper = 50; |
792 |
|
793 |
/* quiet_on_ban: stop banned people talking in channels. */ |
794 |
quiet_on_ban = yes; |
795 |
|
796 |
/* max_bans: maximum number of +b/e/I modes in a channel */ |
797 |
max_bans = 100; |
798 |
|
799 |
/* |
800 |
* how many joins in how many seconds constitute a flood, use 0 to |
801 |
* disable. +b opers will be notified (changeable via /set) |
802 |
*/ |
803 |
join_flood_count = 16; |
804 |
join_flood_time = 8 seconds; |
805 |
|
806 |
/* |
807 |
* splitcode: The ircd will now check splitmode every few seconds. |
808 |
* |
809 |
* Either split users or split servers can activate splitmode, but |
810 |
* both conditions must be met for the ircd to deactivate splitmode. |
811 |
* |
812 |
* You may force splitmode to be permanent by /quote set splitmode on |
813 |
*/ |
814 |
|
815 |
/* |
816 |
* default_split_user_count: when the usercount is lower than this level, |
817 |
* consider ourselves split. This must be set for automatic splitmode. |
818 |
*/ |
819 |
default_split_user_count = 0; |
820 |
|
821 |
/* |
822 |
* default_split_server_count: when the servercount is lower than this, |
823 |
* consider ourselves split. This must be set for automatic splitmode. |
824 |
*/ |
825 |
default_split_server_count = 0; |
826 |
|
827 |
/* no_create_on_split: disallow users creating channels on split. */ |
828 |
no_create_on_split = yes; |
829 |
|
830 |
/* no_join_on_split: disallow users joining channels at all on a split. */ |
831 |
no_join_on_split = no; |
832 |
}; |
833 |
|
834 |
/* |
835 |
* serverhide {}: The serverhide block contains the options regarding |
836 |
* serverhiding |
837 |
*/ |
838 |
serverhide { |
839 |
/* |
840 |
* flatten_links: this option will show all servers in /links appear |
841 |
* that they are linked to this current server |
842 |
*/ |
843 |
flatten_links = no; |
844 |
|
845 |
/* |
846 |
* links_delay: how often to update the links file when it is |
847 |
* flattened. |
848 |
*/ |
849 |
links_delay = 5 minutes; |
850 |
|
851 |
/* |
852 |
* hidden: hide this server from a /links output on servers that |
853 |
* support it. This allows hub servers to be hidden etc. |
854 |
*/ |
855 |
hidden = no; |
856 |
|
857 |
/* |
858 |
* hide_servers: hide remote servernames everywhere and instead use |
859 |
* hidden_name and network_desc. |
860 |
*/ |
861 |
hide_servers = no; |
862 |
|
863 |
/* |
864 |
* Use this as the servername users see if hide_servers = yes. |
865 |
*/ |
866 |
hidden_name = "*.hidden.com"; |
867 |
|
868 |
/* |
869 |
* hide_server_ips: If this is disabled, opers will be unable to see |
870 |
* servers ips and will be shown a masked ip, admins will be shown the |
871 |
* real ip. |
872 |
* |
873 |
* If this is enabled, nobody can see a servers ip. *This is a kludge*, |
874 |
* it has the side effect of hiding the ips everywhere, including |
875 |
* logfiles. |
876 |
* |
877 |
* We recommend you leave this disabled, and just take care with who you |
878 |
* give administrator privileges to. |
879 |
*/ |
880 |
hide_server_ips = no; |
881 |
}; |
882 |
|
883 |
/* |
884 |
* general {}: The general block contains many of the options that were once |
885 |
* compiled in options in config.h. The general block is read at start time. |
886 |
*/ |
887 |
general { |
888 |
/* services_name: servername of nick/channel services */ |
889 |
services_name = "service.someserver"; |
890 |
|
891 |
/* max_watch: maximum WATCH entries a client can have. */ |
892 |
max_watch = 60; |
893 |
|
894 |
/* gline_enable: enable glines, network wide temp klines */ |
895 |
gline_enable = yes; |
896 |
|
897 |
/* |
898 |
* gline_duration: the amount of time a gline will remain on your |
899 |
* server before expiring |
900 |
*/ |
901 |
gline_duration = 1 day; |
902 |
|
903 |
/* |
904 |
* gline_request_duration: how long a pending G-line can be around. |
905 |
* 10 minutes should be plenty |
906 |
*/ |
907 |
gline_request_duration = 10 minutes; |
908 |
|
909 |
/* |
910 |
* gline_min_cidr: the minimum required length of a CIDR bitmask |
911 |
* for IPv4 based glines |
912 |
*/ |
913 |
gline_min_cidr = 16; |
914 |
|
915 |
/* |
916 |
* gline_min_cidr6: the minimum required length of a CIDR bitmask |
917 |
* for IPv6 based glines |
918 |
*/ |
919 |
gline_min_cidr6 = 48; |
920 |
|
921 |
/* |
922 |
* Whether to automatically set mode +i on connecting users. |
923 |
*/ |
924 |
invisible_on_connect = yes; |
925 |
|
926 |
/* |
927 |
* Max time from the nickname change that still causes KILL |
928 |
* automatically to switch for the current nick of that user. |
929 |
*/ |
930 |
kill_chase_time_limit = 90 seconds; |
931 |
|
932 |
/* |
933 |
* If hide_spoof_ips is disabled, opers will be allowed to see the real |
934 |
* IP of spoofed users in /trace etc. If this is defined they will be |
935 |
* shown a masked IP. |
936 |
*/ |
937 |
hide_spoof_ips = yes; |
938 |
|
939 |
/* |
940 |
* Ignore bogus timestamps from other servers. Yes, this will desync |
941 |
* the network, but it will allow chanops to resync with a valid non TS 0 |
942 |
* |
943 |
* This should be enabled network wide, or not at all. |
944 |
*/ |
945 |
ignore_bogus_ts = no; |
946 |
|
947 |
/* |
948 |
* disable_auth: completely disable ident lookups; if you enable this, |
949 |
* be careful of what you set need_ident to in your auth {} blocks |
950 |
*/ |
951 |
disable_auth = no; |
952 |
|
953 |
/* disable_remote_commands: disable users doing commands on remote servers */ |
954 |
disable_remote_commands = no; |
955 |
|
956 |
/* |
957 |
* tkline_expire_notices: enables or disables temporary kline/xline |
958 |
* expire notices. |
959 |
*/ |
960 |
tkline_expire_notices = no; |
961 |
|
962 |
/* |
963 |
* default_floodcount: the default value of floodcount that is configurable |
964 |
* via /quote set floodcount. This is the amount of lines a user |
965 |
* may send to any other user/channel in one second. |
966 |
*/ |
967 |
default_floodcount = 10; |
968 |
|
969 |
/* |
970 |
* failed_oper_notice: send a notice to all opers on the server when |
971 |
* someone tries to OPER and uses the wrong password, host or ident. |
972 |
*/ |
973 |
failed_oper_notice = yes; |
974 |
|
975 |
/* |
976 |
* dots_in_ident: the amount of '.' characters permitted in an ident |
977 |
* reply before the user is rejected. |
978 |
*/ |
979 |
dots_in_ident = 2; |
980 |
|
981 |
/* |
982 |
* min_nonwildcard: the minimum non wildcard characters in k/d/g lines |
983 |
* placed via the server. klines hand placed are exempt from limits. |
984 |
* wildcard chars: '.' ':' '*' '?' '@' '!' '#' |
985 |
*/ |
986 |
min_nonwildcard = 4; |
987 |
|
988 |
/* |
989 |
* min_nonwildcard_simple: the minimum non wildcard characters in |
990 |
* gecos bans. wildcard chars: '*' '?' '#' |
991 |
*/ |
992 |
min_nonwildcard_simple = 3; |
993 |
|
994 |
/* max_accept: maximum allowed /accept's for +g usermode */ |
995 |
max_accept = 20; |
996 |
|
997 |
/* anti_nick_flood: enable the nickflood control code */ |
998 |
anti_nick_flood = yes; |
999 |
|
1000 |
/* nick flood: the nick changes allowed in the specified period */ |
1001 |
max_nick_time = 20 seconds; |
1002 |
max_nick_changes = 5; |
1003 |
|
1004 |
/* |
1005 |
* anti_spam_exit_message_time: the minimum time a user must be connected |
1006 |
* before custom quit messages are allowed. |
1007 |
*/ |
1008 |
anti_spam_exit_message_time = 5 minutes; |
1009 |
|
1010 |
/* |
1011 |
* ts delta: the time delta allowed between server clocks before |
1012 |
* a warning is given, or before the link is dropped. all servers |
1013 |
* should run ntpdate/rdate to keep clocks in sync |
1014 |
*/ |
1015 |
ts_warn_delta = 30 seconds; |
1016 |
ts_max_delta = 5 minutes; |
1017 |
|
1018 |
/* |
1019 |
* warn_no_nline: warn opers about servers that try to connect but |
1020 |
* we don't have a connect {} block for. Twits with misconfigured |
1021 |
* servers can get really annoying with this enabled. |
1022 |
*/ |
1023 |
warn_no_nline = yes; |
1024 |
|
1025 |
/* |
1026 |
* stats_e_disabled: set this to 'yes' to disable "STATS e" for both |
1027 |
* operators and administrators. Doing so is a good idea in case |
1028 |
* there are any exempted (exempt{}) server IPs you don't want to |
1029 |
* see leaked. |
1030 |
*/ |
1031 |
stats_e_disabled = no; |
1032 |
|
1033 |
/* stats_o_oper only: make stats o (opers) oper only */ |
1034 |
stats_o_oper_only = yes; |
1035 |
|
1036 |
/* stats_P_oper_only: make stats P (ports) oper only */ |
1037 |
stats_P_oper_only = yes; |
1038 |
|
1039 |
/* |
1040 |
* stats i oper only: make stats i (auth {}) oper only. set to: |
1041 |
* yes: show users no auth blocks, made oper only. |
1042 |
* masked: show users first matching auth block |
1043 |
* no: show users all auth blocks. |
1044 |
*/ |
1045 |
stats_i_oper_only = yes; |
1046 |
|
1047 |
/* |
1048 |
* stats_k_oper_only: make stats k/K (klines) oper only. set to: |
1049 |
* yes: show users no auth blocks, made oper only |
1050 |
* masked: show users first matching auth block |
1051 |
* no: show users all auth blocks. |
1052 |
*/ |
1053 |
stats_k_oper_only = yes; |
1054 |
|
1055 |
/* |
1056 |
* caller_id_wait: time between notifying a +g user that somebody |
1057 |
* is messaging them. |
1058 |
*/ |
1059 |
caller_id_wait = 1 minute; |
1060 |
|
1061 |
/* |
1062 |
* opers_bypass_callerid: allows operators to bypass +g and message |
1063 |
* anyone who has it set (useful if you use services). |
1064 |
*/ |
1065 |
opers_bypass_callerid = no; |
1066 |
|
1067 |
/* |
1068 |
* pace_wait_simple: time between use of less intensive commands |
1069 |
* (ADMIN, HELP, (L)USERS, VERSION, remote WHOIS) |
1070 |
*/ |
1071 |
pace_wait_simple = 1 second; |
1072 |
|
1073 |
/* |
1074 |
* pace_wait: time between more intensive commands |
1075 |
* (AWAY, INFO, LINKS, MAP, MOTD, STATS, WHO, wildcard WHOIS, WHOWAS) |
1076 |
*/ |
1077 |
pace_wait = 10 seconds; |
1078 |
|
1079 |
/* |
1080 |
* short_motd: send clients a notice telling them to read the motd |
1081 |
* instead of forcing a motd to clients who may simply ignore it. |
1082 |
*/ |
1083 |
short_motd = no; |
1084 |
|
1085 |
/* |
1086 |
* ping_cookie: require clients to respond exactly to a ping command, |
1087 |
* can help block certain types of drones and FTP PASV mode spoofing. |
1088 |
*/ |
1089 |
ping_cookie = no; |
1090 |
|
1091 |
/* no_oper_flood: increase flood limits for opers. */ |
1092 |
no_oper_flood = yes; |
1093 |
|
1094 |
/* |
1095 |
* true_no_oper_flood: completely eliminate flood limits for opers |
1096 |
* and for clients with can_flood = yes in their auth {} blocks |
1097 |
*/ |
1098 |
true_no_oper_flood = yes; |
1099 |
|
1100 |
/* oper_pass_resv: allow opers to over-ride RESVs on nicks/channels */ |
1101 |
oper_pass_resv = yes; |
1102 |
|
1103 |
/* REMOVE ME. The following line checks you've been reading. */ |
1104 |
havent_read_conf = 1; |
1105 |
|
1106 |
/* |
1107 |
* max_targets: the maximum amount of targets in a single |
1108 |
* PRIVMSG/NOTICE. Set to 999 NOT 0 for unlimited. |
1109 |
*/ |
1110 |
max_targets = 4; |
1111 |
|
1112 |
/* |
1113 |
* message_locale: the default message locale |
1114 |
* Use "standard" for the compiled in defaults. |
1115 |
* To install the translated messages, go into messages/ in the |
1116 |
* source directory and run `make install'. |
1117 |
*/ |
1118 |
message_locale = "standard"; |
1119 |
|
1120 |
/* |
1121 |
* usermodes configurable: a list of usermodes for the options below |
1122 |
* |
1123 |
* +b - bots - See bot and drone flooding notices |
1124 |
* +c - cconn - Client connection/quit notices |
1125 |
* +C - cconn_full - Client connection/quit notices full |
1126 |
* +D - deaf - Don't receive channel messages |
1127 |
* +d - debug - See debugging notices |
1128 |
* +f - full - See auth{} block full notices |
1129 |
* +G - softcallerid - Server Side Ignore for users not on your channels |
1130 |
* +g - callerid - Server Side Ignore (for privmsgs etc) |
1131 |
* +H - hidden - Hides operator status to other users |
1132 |
* +i - invisible - Not shown in NAMES or WHO unless you share a |
1133 |
* a channel |
1134 |
* +j - rej - See rejected client notices |
1135 |
* +k - skill - See server generated KILL messages |
1136 |
* +l - locops - See LOCOPS messages |
1137 |
* +n - nchange - See client nick changes |
1138 |
* +s - servnotice - See general server notices |
1139 |
* +u - unauth - See unauthorized client notices |
1140 |
* +w - wallop - See server generated WALLOPS |
1141 |
* +x - external - See remote server connection and split notices |
1142 |
* +y - spy - See LINKS, STATS, TRACE notices etc. |
1143 |
* +z - operwall - See oper generated WALLOPS |
1144 |
*/ |
1145 |
|
1146 |
/* oper_only_umodes: usermodes only opers may set */ |
1147 |
oper_only_umodes = bots, cconn, cconn_full, debug, full, hidden, skill, |
1148 |
nchange, rej, spy, external, operwall, |
1149 |
locops, unauth; |
1150 |
|
1151 |
/* oper_umodes: default usermodes opers get when they /oper */ |
1152 |
oper_umodes = bots, locops, servnotice, operwall, wallop; |
1153 |
|
1154 |
/* |
1155 |
* use_egd: if your system does not have *random devices yet you |
1156 |
* want to use OpenSSL and encrypted links, enable this. Beware - |
1157 |
* EGD is *very* CPU intensive when gathering data for its pool |
1158 |
*/ |
1159 |
# use_egd = yes; |
1160 |
|
1161 |
/* |
1162 |
* egdpool_path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7 |
1163 |
* which automatically finds the path. |
1164 |
*/ |
1165 |
# egdpool_path = "/var/run/egd-pool"; |
1166 |
|
1167 |
/* |
1168 |
* throttle_time: the minimum amount of time between connections from |
1169 |
* the same ip. exempt {} blocks are excluded from this throttling. |
1170 |
* Offers protection against flooders who reconnect quickly. |
1171 |
* Set to 0 to disable. |
1172 |
*/ |
1173 |
throttle_time = 10; |
1174 |
}; |
1175 |
|
1176 |
modules { |
1177 |
/* |
1178 |
* path: other paths to search for modules specified below |
1179 |
* and in "/module load". |
1180 |
*/ |
1181 |
path = "/usr/local/ircd/lib/ircd-hybrid/modules"; |
1182 |
path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload"; |
1183 |
|
1184 |
/* module: the name of a module to load on startup/rehash */ |
1185 |
#module = "some_module.la"; |
1186 |
}; |
1187 |
|
1188 |
/* |
1189 |
* log {}: contains information about logfiles. |
1190 |
*/ |
1191 |
log { |
1192 |
/* Do you want to enable logging to ircd.log? */ |
1193 |
use_logging = yes; |
1194 |
|
1195 |
file { |
1196 |
type = oper; |
1197 |
name = "/home/ircd/var/log/oper.log"; |
1198 |
size = unlimited; |
1199 |
}; |
1200 |
|
1201 |
file { |
1202 |
type = user; |
1203 |
name = "/home/ircd/var/log/user.log"; |
1204 |
size = 50 megabytes; |
1205 |
}; |
1206 |
|
1207 |
file { |
1208 |
type = kill; |
1209 |
name = "/home/ircd/var/log/kill.log"; |
1210 |
size = 50 megabytes; |
1211 |
}; |
1212 |
|
1213 |
file { |
1214 |
type = kline; |
1215 |
name = "/home/ircd/var/log/kline.log"; |
1216 |
size = 50 megabytes; |
1217 |
}; |
1218 |
|
1219 |
file { |
1220 |
type = dline; |
1221 |
name = "/home/ircd/var/log/dline.log"; |
1222 |
size = 50 megabytes; |
1223 |
}; |
1224 |
|
1225 |
file { |
1226 |
type = gline; |
1227 |
name = "/home/ircd/var/log/gline.log"; |
1228 |
size = 50 megabytes; |
1229 |
}; |
1230 |
|
1231 |
file { |
1232 |
type = debug; |
1233 |
name = "/home/ircd/var/log/debug.log"; |
1234 |
size = 50 megabytes; |
1235 |
}; |
1236 |
}; |