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