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