This commit was generated by cvs2svn to compensate for changes in r2,
[ircu2.10.12-pk.git] / doc / example.conf
1 # ircd.conf  configuration file for ircd version ircu2.9.mu and ircu2.10
2 #
3 # Written by Niels <niels@undernet.org>, based on the original example.conf,
4 # server code and some real-life (ahem) experience.
5 #
6 # Thanks and credits to: Run, Trillian, Cym, Morrissey, Chaos, Flynn,
7 #                        Xorath, WildThang, Mmmm, SeKs, Ghostwolf and
8 #                        all other Undernet IRC Admins and Operators,
9 #                        and programmers working on the Undernet ircd.
10
11 # This is an example of the configuration file used by the Undernet ircd.
12 #
13 # This document is based on a (fictious) server in Europe with a
14 # connection to the Undernet IRC network. It is primarily a leaf server,
15 # but if all the other hubs in Europe aren't in service, it can connect
16 # to one in the US by itself.
17 #
18 # All configuration options start with a letter identifying the option,
19 # and a colon separated list of options. An asterisk indicates an
20 # unused field.
21 #
22 # Please note that when ircd puts the configuration lines into practice,
23 # it parses them exactly the other way round than they are listed here.
24 # This means that you should start your I: lines with the "fall through",
25 # most vanilla one and end with the most detailed.
26 #
27 # There is a difference between the ``hostname'' and the ``server name''
28 # of the machine that the server is run on. For example, the host can
29 # have ``veer.cs.vu.nl'' as FQDN, and ``Amsterdam.NL.EU.undernet.org'' as
30 # server name.
31 # A ``server mask'' is something like '*.EU.UnderNet.org'', which is
32 # matched by 'Amsterdam.NL.EU.undernet.org' but not by
33 # 'Manhattan.KS.US.undernet.org'.
34
35 #
36 # First some information about the server.
37 # M:<server name>:*:<description>:<server port>:<server numeric>
38 #
39 # The <server port> is the port that other servers can connect to.
40 # Client ports need to be specified with a P: line, see below.
41 #
42 # Note that <server numeric> has to be unique on the network your server
43 # is running on, must be between 1 and 64, and is not updated on a rehash.
44
45 M:London.UK.Eu.UnderNet.org:*:[127.0.0.1] University of London, England:4400:1
46
47 #
48 # This sets information that can be retrieved with the /ADMIN command.
49 # It should contain at least an admin Email contact address.
50 # A:<line 1>:<line 2>:<line 3>
51
52 A:The University of London:Undernet IRC server:IRC Admins <irc@london.ac.uk>
53
54 #
55 # All connections to the server are associated with a certain ``connection
56 # class'', be they incoming or outgoing (initiated by the server), be they
57 # clients, servers or Martians. (Note that ircd doesn't have direct support
58 # for Martians (yet?); they will have to register as normal users. ;-)
59 # Take the following Y: lines only as a guide.
60 # Y:<class>:<ping freq>:<connect freq>:<maximum links>:<sendq size>
61
62 # Server classes: 90 = all your uplinks for who you do not wish to hub;
63 # else in classes 80 and/or 70.
64 # 50 = leaf servers (only used if your server is a hub)
65
66 Y:90:90:300:1:1700000
67 Y:80:90:300:1:1700000
68 Y:70:90:300:1:1700000
69 Y:50:90:300:10:1700000
70
71 # Client classes. 10 = locals; 2 = for all .net and .com that are not
72 # in Europe; 1 = for everybody.
73
74 Y:10:90:0:100:160000
75 Y:2:90:0:5:80000
76 Y:1:90:0:400:160000
77
78 #
79 # To allow clients to connect, they need authorization. This can be
80 # done based on hostmask, address mask, and/or with a password.
81 # With intelligent use of classes and the maxconnections field in the
82 # Y: lines, you can let in a specific domain, but get rid of all other
83 # domains in the same toplevel, thus setting up some sort of 'reverse
84 # K: line'.
85 # I:<IP mask or crap to force resolving>:<opt passwd>:<hostmask>::<class>
86
87 # Technical description (for examples, see below):
88 # For every connecting client, the IP-number is know.  A reverse lookup
89 # on this IP-number is done to get the (/all) hostname(s).
90 # Each hostname that belongs to this IP-number is matched to <hostmask>,
91 # and the I: line is used when any matches; the client will then show
92 # with this particular hostname.  If none of the hostnames matches, then
93 # the IP-number is matched against the <IP mask ...> field, if this matches
94 # then the I: line is used nevertheless and the client will show with the
95 # first (main) hostname if any; if the IP-number did not resolve then the
96 # client will show with the dot notation of the IP-number.
97 # There is a special case for the UNIX domain sockets and localhost connections
98 # though; in this case the <IP mask ...> field is compared with the
99 # name of the server (thus not with any IP-number representation). The name
100 # of the server is the one returned in the numeric 002 reply, for example:
101 # 002 Your host is 2.undernet.org[jolan.ppro], running version ...
102 # Then the "jolan.ppro" is the name used for matching.
103 # Therefore, unix domain sockets, and connections to localhost would
104 # match this I: line:
105 # I:jolan.ppro::foobar::1
106 # Finally, I: lines with empty <IP mask ..> or <hostmask> fields are skipped.
107
108 # This is the 'fallback' entry. All .uk, .nl, and all unresolved are
109 # in these two lines.
110 # By using two different lines, multiple connections from a single IP
111 # are only allowed from hostnames which have both valid forward and
112 # reverse DNS mappings.
113
114 I:*@*:1:Unresolved::1
115 I:Resolved::*@*::1
116
117 # If you don't want unresolved dudes to be able to connect to your
118 # server, use just:
119 # I:NotMatchingCrap::*@*::1
120
121 # Here, take care of all American ISPs.
122 I:Resolved::*@*.com::2
123 I:Resolved::*@*.net::2
124
125 # Now list all the .com / .net domains that you wish to have access...
126 # actually it's less work to do it this way than to do it the other
127 # way around - K: lining every single ISP in the US.
128 # I wish people in Holland just got a .nl domain, and not try to be
129 # cool and use .com...
130 I:Resolved::*@*.wirehub.net::1
131 I:Resolved::*@*.planete.net::1
132 I:Resolved::*@*.ivg.com::1
133 I:Resolved::*@*.ib.com::1
134 I:Resolved::*@*.ibm.net::1
135 I:Resolved::*@*.hydro.com::1
136 I:Resolved::*@*.NL.net::1
137
138 # You can request a more complete listing, including the "list of standard
139 # K-lines" from the Routing Committee; it will also be sent to you if
140 # you apply for a server and get accepted.
141
142 # Ourselves - this makes sure that we can get in, no matter how full
143 # the server is (hopefully).
144 I:*@193.37.*::*@*.london.ac.uk::10
145
146 # You can put a digit (0..9) in the password field, which will make ircd
147 # only accept a client when the total number of connections to the network
148 # from the same IP number doesn't exceed this number.
149 # The following example would accept at most one connection per IP number
150 # from "*.swipnet.se" and at most two connections from dial up accounts
151 # that have "dial??.*" as host mask:
152 # I:Resolved:1:*@*.swipnet.se::1
153 # I:Resolved:2:*@dial??.*::1
154
155 #
156 # It is possible to show a different Message of the Day to a connecting
157 # client depending on its origin.
158 # T:<hostmask>:<path to motd file>
159
160 # DPATH/net_com.motd contains a special MOTD where users are encouraged
161 # to register their domains and get their own I: lines if they're in
162 # Europe, or move to US.UnderNet.org if they're in the USA.
163 T:*.net:net_com.motd
164 T:*.com:net_com.motd
165
166 # A different MOTD for ourselves, where we point out that the helpdesk
167 # better not be bothered with questions regarding irc...
168 T:*.london.ac.uk:london.motd
169
170 #
171 # One of the many nice features of Undernet is ``Uworld'', a program
172 # connected to the net as a server. This allows it to broadcast any mode
173 # change, thus allowing opers to, for example, 'unlock' a channel that
174 # has been taken over.
175 # There is only one slight problem: the TimeStamp protocol prevents this.
176 # So there is a configuration option to allow them anyway from a certain
177 # server.
178 # Note: (1) These lines are agreed on by every server admin on Undernet;
179 # (2) These lines must be the same on every single server, or results
180 # will be disasterous; (3) This is a useful feature, not something that
181 # is a liability and abused regularly (well... :-)
182 # If you're on Undernet, you MUST have these lines. I cannnot stress
183 # this enough.
184 # As of ircu2.10.05 is it possible to Jupe nicks. Juped nicks need to be
185 # added to U: lines.  As per CFV-0095, the following nicks must be juped,
186 # it is not allowed to jupe others as well.
187
188 U:Uworld.EU.undernet.org:EuWorld,E,protocol,StatServ,NoteServ,Undernet:*
189 U:Uworld2.undernet.org:UWorld2,W,ChanSvr,ChanSaver,ChanServ,COM1,COM2,COM3,COM4:
190 *
191 U:Uworld.undernet.org:Uworld,X,NickSvr,NickSaver,NickServ,LPT1,LPT2,AUX:*
192
193 #
194 # While running your server, you will most probably encounter individuals
195 # or groups of persons that you do not wish to have access to your server.
196 #
197 # For this purpose, the ircd understands "kill lines".
198 # K:<host/IP mask>:"<opt reason>":<username mask>
199 #
200 # It is possible to use a file as comment for the ban.
201 # K:<host/IP mask>:!<path to file>:<usermask>
202 #
203 # The default reason is: "You are banned from this server"
204 # Note that K: lines are local to the server; if you ban a person or a
205 # whole domain from your server, they can get on IRC via any other server
206 # that doesn't have them K: lined (yet).
207
208 # With a simple comment, using quotes:
209 K:*.au:"Please use a nearer server":*
210 K:*.edu:"Please use a nearer server":*
211
212 # With a file, prepending a '!' before the filename.
213 # The file can contain for example, a reason, a link to the
214 # server rules and a contact address.
215 K:unixbox.flooder.co.uk:!kline/youflooded.txt:*luser
216
217 #
218 # IP-based kill lines are designated with a lowercase 'k'.  These lines
219 # use the same format as normal K: lines, except they apply to all hosts,
220 # even if an IP address has a properly resolving host name.
221 k:192.168.*:!klines/martians:*
222
223 #
224 # A more flexible way of restricting access to your server is the use
225 # of "restriction lines". These tell the server to start up an (external)
226 # program, upon whose output is decided whether the client is allowed
227 # access. The program should print "Y" or "N <reason>" on its stdout.
228 # Note that the use of R: lines is discouraged and deprecated, needs a
229 # compile-time define, eats CPU cycles and may well be taken out in
230 # future releases of ircd.
231 # R:<host/IP mask>:<program name>:<username mask>
232
233 #
234 # You probably want your server connected to other servers, so your users
235 # have other users to chat with.
236 # IRC servers connect to other servers forming a network with a star or
237 # tree topology. Loops are not allowed.
238 # In this network, two servers can be distinguished: "hub" and "leaf"
239 # servers. Leaf servers connect to hubs; hubs connect to each other.
240 # Of course, many servers can't be directly classified in one of these
241 # categories. Both a fixed and a rule-based decision making system for
242 # server links is provided for ircd to decide what links to allow, what
243 # to let humans do themselves, and what links to (forcefully) disallow.
244 #
245 # The Connection and Allowing connection lines (also known as C/N lines)
246 # define what servers the server connect to, and which servers are
247 # allowed to connect. Note that they come in pairs; they do not work if
248 # one if present and the other is absent.
249 # C:<remote hostname or IP>:<password>:<remote server name>:<port>:<class>
250 # N:<remote hostname or IP>:<password>:<remote server name>:<hostmask>:<class>
251 #
252 # If you wish to use ident, prepend "username@" to the hostname or IP
253 # address (the first field).
254 # If the "port" field is omitted, the server will not attempt to
255 # establish a link with that server ("not autoconnecting").
256 # The (optional) "host mask" field tells the server to represent itself
257 # with "hostmask" dot-seperateed fields stripped from its servername
258 # and replace it with "*.".
259 # For example, if hostmask == 2 and the local server name is
260 # "irc.sub.domain.com" it would be sent as "*.domain.com". This allows
261 # for easier routing and linking of new servers.
262 # This feature is not used on Undernet.
263
264 # Our primary uplink.
265 C:1.2.3.4:passwd:Amsterdam.NL.Eu.UnderNet.org:4400:90
266 N:1.2.3.4:passwd:Amsterdam.NL.Eu.UnderNet.org::90
267
268 #
269 # If your server starts on a bit larger network, you'll probably get
270 # assigned one or two uplinks to which your server can connect.
271 # If your uplink(s) also connect to other servers than yours (which is
272 # probable), you need to define your uplink as being allowed to "hub".
273 # H:<allowed hostmask>::<server name>
274 H:*.*::Amsterdam.NL.Eu.UnderNet.org
275
276 #
277 # Of course, the opposite is also possible: forcing a server to be
278 # a leaf. L: lines follow Murphy's Law: if you use them, there's a big
279 # chance that routing will be screwed up afterwards.
280 # L:<opt disallowed hostmask>::<server mask>:<opt max depth>
281
282 #
283 # For an advanced, real-time rule-based routing decision making system
284 # you can use Disallow lines. For more information, see doc/readme.crules.
285 # D:<server mask that ircd will refuse to connect to>::<rule>
286 # d:<server mask that ircd will not autoconnect to>::<rule>
287 D:*.US.UnderNet.org::connected(*.US.UnderNet.org)
288 d:*.EU.UnderNet.org::connected(Amsterdam.NL.EU.*)
289
290 # The following line is recommended for leaf servers:
291 d:*::directcon(*)
292
293 #
294 # Inevitably, you have reached the part about "IRC Operators". Oper status
295 # grants some special privileges to a user, like the power to make the
296 # server break or (try to) establish a connection with another server,
297 # and to "kill" users off IRC.
298 # I can write many pages about this; I will restrict myself to saying that
299 # if you want to appoint somebody as IRC Operator on your server, that
300 # person should be aware of his/her responsibilities, and that you, being
301 # the admin, will be held accountable for their actions.
302 #
303 # There are two sorts of IRC Operators: "local" and "global". Local opers
304 # can squit, connect and kill - but only locally: their +o user mode
305 # is not not passed along to other servers. On Undernet, this prevents
306 # them from using Uworld as well.
307 # Depending on some defines in include/config.h, local operators are also
308 # not allowed to /DIE and /RESTART the server.
309 # Local operators are designated with a lowercase 'o'
310 # O:<host/IP mask>:<encrypted password>:<Nick>::<connection class>
311 # o:<host/IP mask>:<encrypted password>:<Nick>::<connection class>
312
313 O:*@*.cs.vu.nl:VRKLKuGKn0jLs:Niels::10
314
315 # Note that the <connection class> is optional, but leaving it away
316 # puts the O: lines in class 0, which usually only accepts one connection
317 # at a time.  If you want users to Oper up more then once per O: line,
318 # then use a connection class that allows more then one connection,
319 # for example (using class 10 as in the example above):
320 # Y:10:90:0:100:160000
321 #
322 # When your server gets fuller, you will notice delays when trying to
323 # connect to your server's primary listening port. Via the Port lines
324 # it is possible to specify additional ports (both AF_UNIX and AF_INET)
325 # for ircd to listen to.
326 # De facto ports are: 6667 - standard; 6660-6669 - additional client
327 # ports;
328 #
329 # These are just hints, they are in no way official IANA or IETF policies.
330 #
331 # On a side note, the /UPING command uses port 7007/udp. If your server
332 # is located behind a firewall, you may want to make another hole in it
333 # for this port.
334 #
335 # P:<hostmask, or path>:::<client port number>
336
337 P::::6667
338 P::::6668
339 P:*.nl:::6666
340 P:/tmp/.ircd:::6667
341
342 #
343 # Well, you have now reached the end of this sample configuration file
344 # If you have any questions, feel free to mail <doco-com@undernet.org>
345 # or <wastelanders@undernet.org>.
346 # If you are interested in linking your server to the Undernet IRC network
347 # visit http://www.routing-com.undernet.org/, and if there are any problems
348 # then contact <routing-com@undernet.org> asking for information.
349 # Upgrades of the Undernet ircd can be found on http://coder-com.undernet.org/.
350 #
351 # For the rest:  Good Luck!
352 #
353 #       -- Niels.