| 1 |
/* doc/example.conf.quick - ircd-hybrid-8 Example configuration file |
| 2 |
* Copyright (C) 2000-2013 Hybrid Development Team |
| 3 |
* |
| 4 |
* Written by ejb, wcampbel, db, leeh and others |
| 5 |
* |
| 6 |
* $Id$ |
| 7 |
*/ |
| 8 |
|
| 9 |
/* IMPORTANT NOTES: |
| 10 |
* |
| 11 |
* auth {} blocks MUST be specified in order of precedence. The first one |
| 12 |
* that matches a user will be used. So place spoofs first, then specials, |
| 13 |
* then general access, then restricted. |
| 14 |
* |
| 15 |
* Both shell style (#) and C style comments are supported. |
| 16 |
* |
| 17 |
* Files may be included by either: |
| 18 |
* .include "filename" |
| 19 |
* .include <filename> |
| 20 |
* |
| 21 |
* Times/durations are written as: |
| 22 |
* 12 hours 30 minutes 1 second |
| 23 |
* |
| 24 |
* Valid units of time: |
| 25 |
* year, month, week, day, hour, minute, second |
| 26 |
* |
| 27 |
* Valid units of size: |
| 28 |
* megabyte/mbyte/mb, kilobyte/kbyte/kb, byte |
| 29 |
* |
| 30 |
* Sizes and times may be singular or plural. |
| 31 |
*/ |
| 32 |
|
| 33 |
/* EFNET NOTE: |
| 34 |
* |
| 35 |
* This config file is NOT suitable for EFNet. EFNet admins should use |
| 36 |
* example.efnet.conf |
| 37 |
*/ |
| 38 |
|
| 39 |
serverinfo { |
| 40 |
name = "hades.arpa"; |
| 41 |
sid = "0HY"; |
| 42 |
description = "ircd-hybrid test server"; |
| 43 |
network_name = "MyNet"; |
| 44 |
network_desc = "This is My Network"; |
| 45 |
hub = no; |
| 46 |
#vhost = "192.169.0.1"; |
| 47 |
#vhost6 = "3ffe:80e8:546::2"; |
| 48 |
max_clients = 512; |
| 49 |
max_nick_length = 9; |
| 50 |
max_topic_length = 160; |
| 51 |
#rsa_private_key_file = "/usr/local/ircd/etc/rsa.key"; |
| 52 |
#ssl_certificate_file = "/usr/local/ircd/etc/cert.pem"; |
| 53 |
#ssl_server_method = tlsv1, sslv3; |
| 54 |
#ssl_client_method = tlsv1; |
| 55 |
}; |
| 56 |
|
| 57 |
/* admin {}: contains admin information about the server. (OLD A:) */ |
| 58 |
admin { |
| 59 |
name = "Smurf target"; |
| 60 |
description = "Main Server Administrator"; |
| 61 |
email = "<syn@packets.r.us>"; |
| 62 |
}; |
| 63 |
|
| 64 |
/* class {}: contain information about classes for users (OLD Y:) */ |
| 65 |
class { |
| 66 |
name = "users"; |
| 67 |
ping_time = 2 minutes; |
| 68 |
number_per_ip = 2; |
| 69 |
max_number = 100; |
| 70 |
sendq = 100 kbytes; |
| 71 |
recvq = 2560 bytes; |
| 72 |
}; |
| 73 |
|
| 74 |
class { |
| 75 |
name = "restricted"; |
| 76 |
ping_time = 1 minute 30 seconds; |
| 77 |
number_per_ip = 1; |
| 78 |
max_number = 100; |
| 79 |
sendq = 60kb; |
| 80 |
recvq = 2560 bytes; |
| 81 |
}; |
| 82 |
|
| 83 |
class { |
| 84 |
name = "opers"; |
| 85 |
ping_time = 5 minutes; |
| 86 |
number_per_ip = 10; |
| 87 |
max_number = 100; |
| 88 |
sendq = 100kbytes; |
| 89 |
}; |
| 90 |
|
| 91 |
class { |
| 92 |
name = "server"; |
| 93 |
ping_time = 5 minutes; |
| 94 |
connectfreq = 5 minutes; |
| 95 |
max_number = 1; |
| 96 |
sendq=2 megabytes; |
| 97 |
}; |
| 98 |
|
| 99 |
/* listen {}: contain information about the ports ircd listens on (OLD P:) */ |
| 100 |
listen { |
| 101 |
port = 6665 .. 6669; |
| 102 |
|
| 103 |
flags = ssl; |
| 104 |
port = 6697; |
| 105 |
|
| 106 |
host = "1.2.3.4"; |
| 107 |
port = 7000, 7001; |
| 108 |
|
| 109 |
host = "3ffe:1234:a:b:c::d"; |
| 110 |
port = 7002; |
| 111 |
}; |
| 112 |
|
| 113 |
/* auth {}: allow users to connect to the ircd (OLD I:) */ |
| 114 |
auth { |
| 115 |
user = "*@172.16.0.0/12"; |
| 116 |
user = "*test@123D:B567:*"; |
| 117 |
password = "letmein"; |
| 118 |
flags = need_password, spoof_notice, exceed_limit, kline_exempt, |
| 119 |
gline_exempt, no_tilde; |
| 120 |
spoof = "I.still.hate.packets"; |
| 121 |
class = "opers"; |
| 122 |
}; |
| 123 |
|
| 124 |
auth { |
| 125 |
redirserv = "irc.fi"; |
| 126 |
redirport = 6667; |
| 127 |
user = "*.fi"; |
| 128 |
class = "users"; |
| 129 |
}; |
| 130 |
|
| 131 |
auth { |
| 132 |
user = "*@*"; |
| 133 |
class = "users"; |
| 134 |
flags = need_ident; |
| 135 |
}; |
| 136 |
|
| 137 |
/* operator {}: defines ircd operators. (OLD O:) |
| 138 |
* ircd-hybrid no longer supports local operators, privileges are |
| 139 |
* controlled via flags. |
| 140 |
*/ |
| 141 |
operator { |
| 142 |
name = "sheep"; |
| 143 |
user = "*sheep@*"; |
| 144 |
user = "*@127.0.0.1"; |
| 145 |
password = "etcnjl8juSU1E"; |
| 146 |
encrypted = yes; |
| 147 |
#rsa_public_key_file = "/usr/local/ircd/etc/oper.pub"; |
| 148 |
class = "opers"; |
| 149 |
flags = global_kill, remote, kline, unkline, gline, module, |
| 150 |
xline, die, rehash, nick_changes, admin, set; |
| 151 |
}; |
| 152 |
|
| 153 |
/* connect {}: controls servers we connect to (OLD C:, N:, H:, L:) */ |
| 154 |
connect { |
| 155 |
name = "irc.uplink.com"; |
| 156 |
host = "192.168.0.1"; |
| 157 |
send_password = "password"; |
| 158 |
accept_password = "anotherpassword"; |
| 159 |
encrypted = no; |
| 160 |
port = 6666; |
| 161 |
hub_mask = "*"; |
| 162 |
#leaf_mask = "*.uk"; |
| 163 |
class = "server"; |
| 164 |
flags = autoconn; |
| 165 |
}; |
| 166 |
|
| 167 |
connect { |
| 168 |
name = "ipv6.some.server"; |
| 169 |
host = "3ffd:dead:beef::1"; |
| 170 |
send_password = "password"; |
| 171 |
accept_password = "password"; |
| 172 |
port = 6666; |
| 173 |
|
| 174 |
aftype = ipv6; |
| 175 |
class = "server"; |
| 176 |
}; |
| 177 |
|
| 178 |
/* cluster{}: servers that share klines/unkline/xline/unxline/resv/unresv/locops |
| 179 |
* automatically (OLD hyb6 SLAVE_SERVERS) |
| 180 |
*/ |
| 181 |
cluster { |
| 182 |
name = "*.arpa"; |
| 183 |
type = kline, unkline, locops, xline, resv; |
| 184 |
}; |
| 185 |
|
| 186 |
/* shared {}: users that are allowed to remote kline (OLD U:) */ |
| 187 |
shared { |
| 188 |
name = "irc2.some.server"; |
| 189 |
user = "oper@my.host.is.spoofed"; |
| 190 |
type = all; |
| 191 |
}; |
| 192 |
|
| 193 |
/* kill {}: users that are not allowed to connect (OLD K:) |
| 194 |
* Oper issued klines will be added to the specified kline config |
| 195 |
*/ |
| 196 |
kill { |
| 197 |
user = "bad@*.hacked.edu"; |
| 198 |
reason = "Obviously hacked account"; |
| 199 |
}; |
| 200 |
|
| 201 |
/* deny {}: IPs that are not allowed to connect (before DNS/ident lookup) |
| 202 |
* Oper issued dlines will be added to the specified dline config |
| 203 |
*/ |
| 204 |
deny { |
| 205 |
ip = "10.0.1.0/24"; |
| 206 |
reason = "Reconnecting vhosted bots"; |
| 207 |
}; |
| 208 |
|
| 209 |
/* exempt {}: IPs that are exempt from deny {} and Dlines. (OLD d:) */ |
| 210 |
exempt { |
| 211 |
ip = "192.168.0.0/16"; |
| 212 |
}; |
| 213 |
|
| 214 |
/* resv {}: nicks and channels users may not use/join (OLD Q:) */ |
| 215 |
resv { |
| 216 |
nick = "nickserv"; |
| 217 |
nick = "chanserv"; |
| 218 |
channel = "#services"; |
| 219 |
reason = "Clone bots"; |
| 220 |
nick = "clone*"; |
| 221 |
}; |
| 222 |
|
| 223 |
gecos { |
| 224 |
name = "*sex*"; |
| 225 |
reason = "Possible spambot"; |
| 226 |
}; |
| 227 |
|
| 228 |
gecos { |
| 229 |
name = "sub7server"; |
| 230 |
reason = "Trojan drone"; |
| 231 |
}; |
| 232 |
|
| 233 |
gecos { |
| 234 |
name = "*http*"; |
| 235 |
reason = "Spambot"; |
| 236 |
}; |
| 237 |
|
| 238 |
channel { |
| 239 |
restrict_channels = no; |
| 240 |
knock_delay = 5 minutes; |
| 241 |
knock_delay_channel = 1 minute; |
| 242 |
max_chans_per_user = 25; |
| 243 |
max_chans_per_oper = 50; |
| 244 |
quiet_on_ban = yes; |
| 245 |
max_bans = 25; |
| 246 |
join_flood_count = 16; |
| 247 |
join_flood_time = 8 seconds; |
| 248 |
default_split_user_count = 0; |
| 249 |
default_split_server_count = 0; |
| 250 |
no_create_on_split = yes; |
| 251 |
no_join_on_split = no; |
| 252 |
}; |
| 253 |
|
| 254 |
serverhide { |
| 255 |
flatten_links = no; |
| 256 |
links_delay = 5 minutes; |
| 257 |
hidden = no; |
| 258 |
hide_servers = no; |
| 259 |
hidden_name = "*.hidden.com"; |
| 260 |
hide_server_ips = no; |
| 261 |
}; |
| 262 |
|
| 263 |
general { |
| 264 |
kill_chase_time_limit = 90 seconds; |
| 265 |
hide_spoof_ips = yes; |
| 266 |
ignore_bogus_ts = no; |
| 267 |
|
| 268 |
disable_auth = no; |
| 269 |
disable_remote_commands = no; |
| 270 |
default_floodcount = 10; |
| 271 |
failed_oper_notice = yes; |
| 272 |
dots_in_ident=2; |
| 273 |
min_nonwildcard = 4; |
| 274 |
min_nonwildcard_simple = 3; |
| 275 |
max_accept = 20; |
| 276 |
anti_nick_flood = yes; |
| 277 |
|
| 278 |
max_nick_time = 20 seconds; |
| 279 |
max_nick_changes = 5; |
| 280 |
|
| 281 |
anti_spam_exit_message_time = 5 minutes; |
| 282 |
ts_warn_delta = 30 seconds; |
| 283 |
ts_max_delta = 5 minutes; |
| 284 |
|
| 285 |
invisible_on_connect = yes; |
| 286 |
warn_no_nline = yes; |
| 287 |
stats_o_oper_only=yes; |
| 288 |
stats_P_oper_only=no; |
| 289 |
stats_i_oper_only=masked; |
| 290 |
stats_k_oper_only=masked; |
| 291 |
caller_id_wait = 1 minute; |
| 292 |
pace_wait_simple = 1 second; |
| 293 |
pace_wait = 10 seconds; |
| 294 |
short_motd = no; |
| 295 |
ping_cookie = no; |
| 296 |
no_oper_flood = yes; |
| 297 |
true_no_oper_flood = yes; |
| 298 |
oper_pass_resv = yes; |
| 299 |
|
| 300 |
/* REMOVE ME. The following line checks you've been reading. */ |
| 301 |
havent_read_conf = 1; |
| 302 |
|
| 303 |
max_targets = 4; |
| 304 |
message_locale = "standard"; |
| 305 |
oper_only_umodes = bots, cconn, debug, full, skill, nchange, |
| 306 |
rej, spy, external, operwall, locops, unauth; |
| 307 |
|
| 308 |
oper_umodes = bots, locops, servnotice, operwall, wallop; |
| 309 |
|
| 310 |
|
| 311 |
#use_egd = yes; |
| 312 |
#egdpool_path = "/var/run/egd-pool"; |
| 313 |
throttle_time = 10; |
| 314 |
}; |
| 315 |
|
| 316 |
modules { |
| 317 |
path = "/usr/local/ircd/lib/ircd-hybrid/modules"; |
| 318 |
path = "/usr/local/ircd/lib/ircd-hybrid/modules/autoload"; |
| 319 |
#module = "some_module.so"; |
| 320 |
}; |
| 321 |
|
| 322 |
/* |
| 323 |
* log {}: contains information about logfiles. |
| 324 |
*/ |
| 325 |
log { |
| 326 |
/* Do you want to enable logging to ircd.log? */ |
| 327 |
use_logging = yes; |
| 328 |
|
| 329 |
file { |
| 330 |
type = oper; |
| 331 |
name = "/home/ircd/var/log/oper.log"; |
| 332 |
size = unlimited; |
| 333 |
}; |
| 334 |
|
| 335 |
file { |
| 336 |
type = user; |
| 337 |
name = "/home/ircd/var/log/user.log"; |
| 338 |
size = 50 megabytes; |
| 339 |
}; |
| 340 |
|
| 341 |
file { |
| 342 |
type = kill; |
| 343 |
name = "/home/ircd/var/log/kill.log"; |
| 344 |
size = 50 megabytes; |
| 345 |
}; |
| 346 |
|
| 347 |
file { |
| 348 |
type = kline; |
| 349 |
name = "/home/ircd/var/log/kline.log"; |
| 350 |
size = 50 megabytes; |
| 351 |
}; |
| 352 |
|
| 353 |
file { |
| 354 |
type = dline; |
| 355 |
name = "/home/ircd/var/log/dline.log"; |
| 356 |
size = 50 megabytes; |
| 357 |
}; |
| 358 |
|
| 359 |
file { |
| 360 |
type = gline; |
| 361 |
name = "/home/ircd/var/log/gline.log"; |
| 362 |
size = 50 megabytes; |
| 363 |
}; |
| 364 |
|
| 365 |
file { |
| 366 |
type = debug; |
| 367 |
name = "/home/ircd/var/log/debug.log"; |
| 368 |
size = 50 megabytes; |
| 369 |
}; |
| 370 |
}; |