/[svn]/ircd-hybrid/trunk/doc/example.quick.conf
ViewVC logotype

Contents of /ircd-hybrid/trunk/doc/example.quick.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1644 - (show annotations)
Tue Nov 6 22:20:16 2012 UTC (7 years, 7 months ago) by michael
File size: 7766 byte(s)
- More config subsystem cleanups

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

Properties

Name Value
svn:eol-style native
svn:keywords Id Revision

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28