1 |
|
/* |
2 |
|
* This is an example configuration file for ircd-hybrid |
3 |
|
* |
4 |
< |
* Copyright (c) 2000-2014 ircd-hybrid development team |
4 |
> |
* Copyright (c) 2000-2015 ircd-hybrid development team |
5 |
|
* |
6 |
|
* $Id$ |
7 |
|
*/ |
58 |
|
description = "ircd-hybrid test server"; |
59 |
|
|
60 |
|
/* |
61 |
< |
* network info: the name and description of the network this server |
62 |
< |
* is on. Shown in the 005 reply and used with serverhiding. |
61 |
> |
* network_name, network_desc: the name and description of the network this |
62 |
> |
* server is on. Shown in the 005 reply and used with serverhiding. |
63 |
|
*/ |
64 |
|
network_name = "MyNet"; |
65 |
|
network_desc = "This is My Network"; |
71 |
|
hub = no; |
72 |
|
|
73 |
|
/* |
74 |
< |
* vhost: the IP to bind to when we connect outward to ipv4 servers. |
75 |
< |
* This should be an ipv4 IP only, or "*" for INADDR_ANY. |
74 |
> |
* vhost: the IP address to bind to when we connect outward to IPv4 servers. |
75 |
> |
* This should be an IPv4 address, or "*" for INADDR_ANY. |
76 |
|
*/ |
77 |
|
# vhost = "192.169.0.1"; |
78 |
|
|
79 |
|
/* |
80 |
< |
* vhost6: the address to bind to when we make outgoing connections |
81 |
< |
* to IPv6 servers. This should be an IPv6 address, or "*" for INADDR_ANY. |
80 |
> |
* vhost6: the IP address to bind to when we connect outward to IPv6 servers. |
81 |
> |
* This should be an IPv6 address, or "*" for in6addr_any. |
82 |
|
*/ |
83 |
|
# vhost6 = "3ffe:80e8:546::2"; |
84 |
|
|
85 |
< |
/* max_clients: the maximum number of clients allowed to connect. */ |
86 |
< |
max_clients = 512; |
85 |
> |
/* |
86 |
> |
* default_max_clients: the default maximum number of clients allowed |
87 |
> |
* to connect. This can be changed from within IRC via /QUOTE SET MAX. |
88 |
> |
*/ |
89 |
> |
default_max_clients = 512; |
90 |
|
|
91 |
|
/* |
92 |
|
* max_nick_length: only applies to local clients. Must be in the |
354 |
|
port = 6697; |
355 |
|
|
356 |
|
/* |
357 |
< |
* host: set a specific IP address/host to listen on using the |
357 |
> |
* host: set a specific IP address to listen on using the |
358 |
|
* subsequent port definitions. This may be IPv4 or IPv6. |
359 |
|
*/ |
360 |
|
host = "1.2.3.4"; |
380 |
|
|
381 |
|
/* |
382 |
|
* encrypted: controls whether the auth password above has been |
383 |
< |
* encrypted. |
383 |
> |
* encrypted. Default is 'no' if nothing else is specified. |
384 |
|
*/ |
385 |
|
encrypted = yes; |
386 |
|
|
399 |
|
* need_ident - require the user to have identd to connect | ('+' prefix on /stats I) |
400 |
|
* spoof_notice - enable spoofing notification to admins |
401 |
|
* exceed_limit - allow a user to exceed class limits | ('>' prefix on /stats I) |
402 |
< |
* kline_exempt - exempt this user from k/glines | ('^' prefix on /stats I) |
400 |
< |
* gline_exempt - exempt this user from glines | ('_' prefix on /stats I) |
402 |
> |
* kline_exempt - exempt this user from k-lines | ('^' prefix on /stats I) |
403 |
|
* resv_exempt - exempt this user from resvs | ('$' prefix on /stats I) |
404 |
|
* no_tilde - remove ~ from a user with no ident | ('-' prefix on /stats I) |
405 |
|
* can_flood - allow this user to exceed flood limits | ('|' prefix on /stats I) |
407 |
|
* clients such as Mibbit |
408 |
|
*/ |
409 |
|
flags = need_password, spoof_notice, exceed_limit, kline_exempt, |
410 |
< |
gline_exempt, resv_exempt, no_tilde, can_flood; |
410 |
> |
resv_exempt, no_tilde, can_flood; |
411 |
|
}; |
412 |
|
|
413 |
|
auth { |
462 |
|
encrypted = yes; |
463 |
|
|
464 |
|
/* |
465 |
+ |
* whois: allows to override the default RPL_WHOISOPERATOR numeric |
466 |
+ |
* string shown in /whois. |
467 |
+ |
* This string is propagated to all servers on the network. |
468 |
+ |
*/ |
469 |
+ |
# whois = "is a Smurf Target (IRC Operator)"; |
470 |
+ |
|
471 |
+ |
/* |
472 |
|
* rsa_public_key_file: the public key for this oper when using /challenge. |
473 |
|
* A password should not be defined when this is used; see |
474 |
|
* doc/challenge.txt for more information. |
528 |
|
umodes = locops, servnotice, wallop; |
529 |
|
|
530 |
|
/* |
531 |
< |
* privileges: controls the activities and commands an oper is |
531 |
> |
* flags: controls the activities and commands an oper is |
532 |
|
* allowed to do on the server. All flags default to 'no'. |
533 |
|
* Available flags: |
534 |
|
* |
537 |
|
* connect:remote - allows remote CONNECT | ('Q' flag) |
538 |
|
* die - allows DIE | ('D' flag) |
539 |
|
* dline - allows DLINE | |
531 |
– |
* gline - allows GLINE | ('G' flag) |
540 |
|
* globops - allows GLOBOPS | |
541 |
|
* kill - allows to KILL local clients | ('N' flag) |
542 |
|
* kill:remote - allows remote users to be /KILL'd | ('O' flag) |
812 |
|
* pseudo {}: adds pseudo/custom commands also known as service aliases |
813 |
|
*/ |
814 |
|
pseudo { |
815 |
< |
/* command: the actual command/alias */ |
815 |
> |
/* command: the actual command/alias. */ |
816 |
|
command = "IDENTIFY"; |
817 |
|
|
818 |
< |
/* prepend: optional text that can be prepended before the user's message */ |
818 |
> |
/* prepend: optional text that can be prepended before the user's message. */ |
819 |
|
prepend = "IDENTIFY "; |
820 |
|
|
821 |
< |
/* name: the service name, used for error messages */ |
821 |
> |
/* name: the service name, used for error messages. */ |
822 |
|
name = "NickServ"; |
823 |
|
|
824 |
< |
/* target: the actual target where this message should be sent to */ |
824 |
> |
/* target: the actual target where this message should be sent to. */ |
825 |
|
target = "NickServ@service.someserver"; |
826 |
|
}; |
827 |
|
|
942 |
|
*/ |
943 |
|
max_channels = 25; |
944 |
|
|
945 |
< |
/* max_bans: maximum number of +b/e/I modes in a channel */ |
945 |
> |
/* max_bans: maximum number of +b/e/I modes in a channel. */ |
946 |
|
max_bans = 100; |
947 |
|
|
948 |
|
/* |
949 |
< |
* how many joins in how many seconds constitute a flood. Use 0 to |
950 |
< |
* disable. +b opers will be notified (changeable via /set) |
949 |
> |
* default_join_flood_count, default_join_flood_time: |
950 |
> |
* how many joins in how many seconds constitute a flood. Use 0 to disable. |
951 |
> |
* +b opers will be notified. These are only default values which can be |
952 |
> |
* changed via "/QUOTE SET JFLOODCOUNT" and "/QUOTE SET JFLOODTIME". |
953 |
|
*/ |
954 |
< |
join_flood_count = 16; |
955 |
< |
join_flood_time = 8 seconds; |
954 |
> |
default_join_flood_count = 18; |
955 |
> |
default_join_flood_time = 6 seconds; |
956 |
|
|
957 |
|
/* |
958 |
|
* The ircd will now check splitmode (whether a server is split from |
962 |
|
* Either split users or split servers can activate splitmode, but |
963 |
|
* both conditions must be met for the ircd to deactivate splitmode. |
964 |
|
* |
965 |
< |
* You may force splitmode to be permanent by /quote set splitmode on |
965 |
> |
* You may force splitmode to be permanent by /quote set splitmode on. |
966 |
|
*/ |
967 |
|
|
968 |
|
/* |
1063 |
|
/* max_accept: maximum allowed /accept's for +g usermode. */ |
1064 |
|
max_accept = 30; |
1065 |
|
|
1056 |
– |
/* gline_enable: enable glines (network-wide temporary klines). */ |
1057 |
– |
gline_enable = yes; |
1058 |
– |
|
1066 |
|
/* |
1067 |
< |
* gline_duration: the amount of time a G-line will remain on your |
1068 |
< |
* server before expiring. |
1067 |
> |
* dline_min_cidr: the minimum required length of a CIDR bitmask |
1068 |
> |
* for IPv4 based D-lines. |
1069 |
|
*/ |
1070 |
< |
gline_duration = 1 day; |
1070 |
> |
dline_min_cidr = 16; |
1071 |
|
|
1072 |
|
/* |
1073 |
< |
* gline_request_duration: how long a pending G-line can be around. |
1074 |
< |
* 10 minutes should be plenty. |
1073 |
> |
* dline_min_cidr6: the minimum required length of a CIDR bitmask |
1074 |
> |
* for IPv6 based D-lines. |
1075 |
|
*/ |
1076 |
< |
gline_request_duration = 10 minutes; |
1076 |
> |
dline_min_cidr6 = 48; |
1077 |
|
|
1078 |
|
/* |
1079 |
< |
* gline_min_cidr: the minimum required length of a CIDR bitmask |
1080 |
< |
* for IPv4 based G-lines. |
1079 |
> |
* kline_min_cidr: the minimum required length of a CIDR bitmask |
1080 |
> |
* for IPv4 based K-lines. |
1081 |
|
*/ |
1082 |
< |
gline_min_cidr = 16; |
1082 |
> |
kline_min_cidr = 16; |
1083 |
|
|
1084 |
|
/* |
1085 |
< |
* gline_min_cidr6: the minimum required length of a CIDR bitmask |
1086 |
< |
* for IPv6 based G-lines. |
1085 |
> |
* kline_min_cidr6: the minimum required length of a CIDR bitmask |
1086 |
> |
* for IPv6 based K-lines. |
1087 |
|
*/ |
1088 |
< |
gline_min_cidr6 = 48; |
1088 |
> |
kline_min_cidr6 = 48; |
1089 |
|
|
1090 |
|
/* |
1091 |
|
* invisible_on_connect: whether to automatically set mode +i on |
1112 |
|
|
1113 |
|
/* |
1114 |
|
* disable_auth: completely disable ident lookups; if you enable this, |
1115 |
< |
* be careful of what you set need_ident to in your auth {} blocks |
1115 |
> |
* be careful of what you set need_ident to in your auth {} blocks. |
1116 |
|
*/ |
1117 |
|
disable_auth = no; |
1118 |
|
|
1125 |
|
/* |
1126 |
|
* default_floodcount: the default value of floodcount that is configurable |
1127 |
|
* via /quote set floodcount. This is the number of lines a user may send |
1128 |
< |
* to any other user/channel in one second. |
1128 |
> |
* to any other user/channel in one second. Set to 0 to disable. |
1129 |
|
*/ |
1130 |
|
default_floodcount = 10; |
1131 |
|
|
1158 |
|
/* anti_nick_flood: enable the nickflood control code. */ |
1159 |
|
anti_nick_flood = yes; |
1160 |
|
|
1161 |
< |
/* nick flood: the number of nick changes allowed in the specified period. */ |
1162 |
< |
max_nick_time = 20 seconds; |
1161 |
> |
/* |
1162 |
> |
* max_nick_changes, max_nick_time: the number of nick changes allowed in |
1163 |
> |
* the specified period. |
1164 |
> |
*/ |
1165 |
|
max_nick_changes = 5; |
1166 |
+ |
max_nick_time = 20 seconds; |
1167 |
|
|
1168 |
|
/* |
1169 |
|
* away_count, away_time: how many AWAY command are permitted per |
1201 |
|
*/ |
1202 |
|
stats_e_disabled = no; |
1203 |
|
|
1204 |
+ |
/* stats_m_oper_only: make /stats m/M (messages) oper only. */ |
1205 |
+ |
stats_m_oper_only = yes; |
1206 |
+ |
|
1207 |
|
/* stats_o_oper_only: make stats o (opers) oper only. */ |
1208 |
|
stats_o_oper_only = yes; |
1209 |
|
|
1223 |
|
|
1224 |
|
/* |
1225 |
|
* stats_k_oper_only: make stats k/K (klines) oper only. Set to: |
1226 |
< |
* yes - show users no auth {} blocks, made oper only |
1227 |
< |
* masked - show users the first matching auth {} block |
1228 |
< |
* no - show users all auth {} blocks |
1226 |
> |
* yes - show users no klines, made oper only |
1227 |
> |
* masked - show users the first matching kline |
1228 |
> |
* no - show users all klines |
1229 |
|
*/ |
1230 |
|
stats_k_oper_only = yes; |
1231 |
|
|
1337 |
|
* and in "/module load". |
1338 |
|
*/ |
1339 |
|
path = "lib/ircd-hybrid/modules"; |
1340 |
+ |
# path = "lib/ircd-hybrid/modules/extra"; |
1341 |
|
path = "lib/ircd-hybrid/modules/autoload"; |
1342 |
|
|
1343 |
|
/* module: the name of a module to load on startup/rehash. */ |
1381 |
|
size = 50 megabytes; |
1382 |
|
}; |
1383 |
|
|
1370 |
– |
file { |
1371 |
– |
type = gline; |
1372 |
– |
name = "var/log/gline.log"; |
1373 |
– |
size = 50 megabytes; |
1374 |
– |
}; |
1375 |
– |
|
1384 |
|
file { |
1385 |
|
type = xline; |
1386 |
|
name = "var/log/xline.log"; |