1 |
|
/* doc/example.conf - ircd-hybrid-8 Example configuration file |
2 |
< |
* Copyright (C) 2000-2012 Hybrid Development Team |
2 |
> |
* Copyright (C) 2000-2013 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 |
24 |
|
* 12 hours 30 minutes 1 second |
25 |
|
* |
26 |
|
* Valid units of time: |
27 |
< |
* month, week, day, hour, minute, second |
27 |
> |
* year, month, week, day, hour, minute, second |
28 |
|
* |
29 |
|
* Valid units of size: |
30 |
|
* megabyte/mbyte/mb, kilobyte/kbyte/kb, byte |
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. |
59 |
> |
* description: the description of the server. |
60 |
|
*/ |
61 |
< |
description = "hybrid-7 test server"; |
61 |
> |
description = "ircd-hybrid test server"; |
62 |
|
|
63 |
|
/* |
64 |
|
* network info: the name and description of the network this server |
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 |
|
* |
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 |
236 |
|
number_per_cidr = 16; |
237 |
|
|
238 |
|
/* |
239 |
< |
* sendq: the amount of data allowed in a clients queue before |
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 queue before they |
246 |
< |
* are dropped for flooding. Defaults to 2560 if the chosen |
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; |
255 |
|
number_per_ip = 10; |
256 |
|
max_number = 100; |
257 |
|
sendq = 100 kbytes; |
258 |
+ |
|
259 |
+ |
/* |
260 |
+ |
* min_idle: minimum idle time that is shown in /whois |
261 |
+ |
*/ |
262 |
+ |
min_idle = 3 hours; |
263 |
+ |
|
264 |
+ |
/* |
265 |
+ |
* max_idle: maximum idle time that is shown in /whois |
266 |
+ |
*/ |
267 |
+ |
max_idle = 8 hours; |
268 |
+ |
|
269 |
+ |
/* |
270 |
+ |
* flags: |
271 |
+ |
* |
272 |
+ |
* random_idle - idle time is randomly selected within the |
273 |
+ |
* range of min_idle to max_idle |
274 |
+ |
* hide_idle_from_opers - fake idle time will be shown to operators, too |
275 |
+ |
*/ |
276 |
+ |
flags = random_idle, hide_idle_from_opers; |
277 |
|
}; |
278 |
|
|
279 |
|
class { |
281 |
|
ping_time = 90 seconds; |
282 |
|
|
283 |
|
/* |
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 |
– |
/* |
284 |
|
* connectfreq: only used in server classes. Specifies the delay |
285 |
|
* between autoconnecting to servers. |
286 |
|
*/ |
315 |
|
* |
316 |
|
* Currently available flags are: |
317 |
|
* |
318 |
< |
* ssl - Port is for SSL client connections only |
318 |
> |
* ssl - Port may only accept TLS/SSL connections |
319 |
|
* server - Only server connections are permitted |
320 |
|
* hidden - Port is hidden from /stats P, unless you're an admin |
321 |
|
*/ |
339 |
|
*/ |
340 |
|
auth { |
341 |
|
/* |
342 |
< |
* user: the user@host allowed to connect. Multiple IPv4/IPv6 user |
342 |
> |
* user: the user@host allowed to connect. Multiple user |
343 |
|
* lines are permitted per auth block. |
344 |
|
*/ |
345 |
|
user = "*@172.16.0.0/12"; |
375 |
|
* resv_exempt - exempt this user from resvs ('$' prefix on /stats I) |
376 |
|
* no_tilde - remove ~ from a user with no ident ('-' prefix on /stats I) |
377 |
|
* can_flood - allow this user to exceed flood limits ('|' prefix on /stats I) |
378 |
+ |
* webirc - enables WEBIRC authentication for web-based clients such as Mibbit |
379 |
+ |
* ('<' prefix on /stats I) |
380 |
|
*/ |
381 |
|
flags = need_password, spoof_notice, exceed_limit, kline_exempt, |
382 |
|
gline_exempt, resv_exempt, no_tilde, can_flood; |
411 |
|
*/ |
412 |
|
operator { |
413 |
|
/* name: the name of the oper */ |
414 |
< |
name = "god"; |
414 |
> |
name = "sheep"; |
415 |
|
|
416 |
|
/* |
417 |
|
* user: the user@host required for this operator. Multiple |
418 |
|
* user="" lines are supported. |
419 |
|
*/ |
420 |
< |
user = "*god@192.168.0.0/16"; |
420 |
> |
user = "*sheep@192.168.0.0/16"; |
421 |
|
user = "*@127.0.0.0/8"; |
422 |
|
|
423 |
|
/* |
504 |
|
die, rehash, nick_changes, admin, operwall, module; |
505 |
|
}; |
506 |
|
|
507 |
+ |
/* |
508 |
+ |
* service {}: specifies what server may act as a network service |
509 |
+ |
* |
510 |
+ |
* NOTE: it is absolutely important that every single server on the network |
511 |
+ |
* has the same service{} block. |
512 |
+ |
*/ |
513 |
|
service { |
514 |
|
name = "service.someserver"; |
515 |
|
name = "stats.someserver"; |
751 |
|
}; |
752 |
|
|
753 |
|
gecos { |
720 |
– |
name = "*http*"; |
721 |
– |
reason = "Spambot"; |
722 |
– |
}; |
723 |
– |
|
724 |
– |
gecos { |
754 |
|
name = "^\[J[0o]hn Do[3e]\]-[0-9]{2,5}$"; |
755 |
|
|
756 |
|
/* |
894 |
|
* logfiles. |
895 |
|
* |
896 |
|
* We recommend you leave this disabled, and just take care with who you |
897 |
< |
* give admin=yes; to. |
897 |
> |
* give administrator privileges to. |
898 |
|
*/ |
899 |
|
hide_server_ips = no; |
900 |
|
}; |
901 |
|
|
902 |
|
/* |
903 |
|
* general {}: The general block contains many of the options that were once |
904 |
< |
* compiled in options in config.h. The general block is read at start time. |
904 |
> |
* compiled in options in config.h |
905 |
|
*/ |
906 |
|
general { |
907 |
|
/* services_name: servername of nick/channel services */ |
943 |
|
invisible_on_connect = yes; |
944 |
|
|
945 |
|
/* |
917 |
– |
* Show "actually using host <ip>" on /whois when possible. |
918 |
– |
*/ |
919 |
– |
use_whois_actually = yes; |
920 |
– |
|
921 |
– |
/* |
946 |
|
* Max time from the nickname change that still causes KILL |
947 |
|
* automatically to switch for the current nick of that user. |
948 |
|
*/ |
1035 |
|
ts_max_delta = 5 minutes; |
1036 |
|
|
1037 |
|
/* |
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 |
– |
/* |
1038 |
|
* warn_no_nline: warn opers about servers that try to connect but |
1039 |
|
* we don't have a connect {} block for. Twits with misconfigured |
1040 |
|
* servers can get really annoying with this enabled. |