Remove obsolete tools/crypter script. Allow Client blocks to
[ircu2.10.12-pk.git] / doc / example.conf
1 # ircd.conf - configuration file for ircd version ircu2.10
2 #
3 # Last Updated:  20, March 2002.
4 #
5 # Written by Niels <niels@undernet.org>, based on the original example.conf,
6 # server code and some real-life (ahem) experience.
7 #
8 # Updated and heavily modified by Braden <dbtem@yahoo.com>.
9 #
10 # Rewritten by A1kmm(Andrew Miller)<a1kmm@mware.virtualave.net> to support
11 # the new flex/bison configuration parser.
12 #
13 # Thanks and credits to: Run, Trillian, Cym, Morrissey, Chaos, Flynn,
14 #                        Xorath, WildThang, Mmmm, SeKs, Ghostwolf and
15 #                        all other Undernet IRC Admins and Operators,
16 #                        and programmers working on the Undernet ircd.
17 #
18 # This is an example of the configuration file used by the Undernet ircd.
19 #
20 # This document is based on a (fictious) server in Europe with a
21 # connection to the Undernet IRC network. It is primarily a leaf server,
22 # but if all the other hubs in Europe aren't in service, it can connect
23 # to one in the US by itself.
24 #
25 # The configuration format consists of a number of blocks in the format
26 #  BlockName { setting = number; setting2 = "string"; setting3 = yes; };
27 # Note that comments start from a #(hash) and go to the end of the line.
28 # Whitespace(space, tab, or carriage return/linefeed) are ignored and may
29 # be used to make the configuration file more readable.
30 #
31 # Please note that when ircd puts the configuration lines into practice,
32 # it parses them exactly the other way round than they are listed here.
33 # It uses the blocks in reverse order.
34 #
35 # This means that you should start your Client blocks with the
36 # "fall through", most vanilla one, and end with the most detailed.
37 #
38 # There is a difference between the "hostname" and the "server name"
39 # of the machine that the server is run on. For example, the host can
40 # have "veer.cs.vu.nl" as FQDN, and "Amsterdam.NL.EU.undernet.org" as
41 # server name.
42 # A "server mask" is something like "*.EU.UnderNet.org", which is
43 # matched by "Amsterdam.NL.EU.undernet.org" but not by
44 # "Manhattan.KS.US.undernet.org".
45 #
46 # Please do NOT just rename the example.conf to ircd.conf and expect
47 # it to work.
48
49
50 # [General]
51 #
52 # First some information about the server.
53 # General {
54 #         name = "servername";
55 #         vhost = "virtualhost";
56 #         description = "description";
57 #         numeric = numericnumber;
58 # };
59 #
60 # <virtual host> must contain either a * or a valid IPv4 address in
61 # dotted quad notation. (127.0.0.1) The address MUST be the address
62 # of a physical interface on the host. This address is used for outgoing
63 # connections only, see Port{} for listener virtual hosting.
64 # If in doubt put a * or the IP of your primary interface here.
65 # The server must be compiled with virtual hosting turned on to get this
66 # to work correctly.
67 #
68 # Note that <server numeric> has to be unique on the network your server
69 # is running on, must be between 0 and 4095, and is not updated on a rehash.
70 General {
71          name = "London.UK.Eu.UnderNet.org";
72          description = "University of London, England";
73          numeric = 1;
74 };
75
76 # [Admin]
77 #
78 # This sets information that can be retrieved with the /ADMIN command.
79 # It should contain at least an admin Email contact address.
80 Admin {
81   Location = "The University of London";
82   # At most two contact lines are allowed...
83   Contact = "Undernet IRC server";
84   Contact = "IRC Admins <irc@london.ac.uk>";
85 };
86
87 # [Classes]
88 #
89 # All connections to the server are associated with a certain "connection
90 # class", be they incoming or outgoing (initiated by the server), be they
91 # clients, servers or Martians. (Note that ircd doesn't have direct support
92 # Recommended client classes:
93 # for Martians (yet?); they will have to register as normal users. ;-)
94 # Take the following class blocks only as a guide.
95 # Class {
96 #  name = "<class>";
97 #  pingfreq = time;
98 #  connectfreq = time;
99 #  maxlinks = number;
100 #  sendq = size;
101 #  usermode = "+i";
102 # };
103 #
104 # maxlinks should be set at either 0 or 1.
105 #
106 # <connect freq> applies only to servers, and specifies the frequency 
107 # that the server tries to autoconnect. setting this to 0 will cause
108 # the server to attempt to connect repeatedly with no delay until the 
109 # <maximum links> condition is satisfied. This is a Bad Thing(tm).
110 # Note that times can be specified as a number, or by giving something
111 # like: 1 minutes 20 seconds, or 1*60+20.
112 #
113 # Recommended server classes:
114 # All your server uplinks you are not a hub for.
115 Class {
116  name = "Server";
117  pingfreq = 1 minutes 30 seconds;
118  connectfreq = 5 minutes;
119  maxlinks = 1;
120  sendq = 9000000;
121 };
122 # All the leaf servers you hub for.
123 Class {
124  name = "LeafServer";
125  pingfreq = 1 minutes 30 seconds;
126  connectfreq = 5 minutes;
127  maxlinks = 0;
128  sendq = 9000000;
129 };
130
131 # Client {
132 #  username = "ident";
133 #  host = "host";
134 #  ip = "127.0.0.0/8";
135 #  password = "password";
136 #  class = "classname";
137 #  maxlinks = 3;
138 # };
139 #
140 # Everything in a Client block is optional.  If a username mask is
141 # given, it must match the client's username from the IDENT protocol.
142 # If a host mask is given, the client's hostname must resolve and
143 # match the host mask.  If a CIDR-style IP mask is given, the client
144 # must have an IP matching that range.  If maxlinks is given, it is
145 # limits the number of matching clients allowed from a particular IP
146 # address.
147 #
148 # Recommended client classes:
149 # Client classes. 10 = locals; 2 = for all .net and .com that are not
150 # in Europe; 1 = for everybody.
151 Class {
152  name = "Local";
153  pingfreq = 1 minutes 30 seconds;
154  sendq = 160000;
155  maxlinks = 100;
156  usermode = "+iw";
157 };
158 Client
159 {
160  class = "Other";
161  username = "*";
162 };
163 Class {
164  name = "America";
165  pingfreq = 1 minutes 30 seconds;
166  sendq = 80000;
167  maxlinks = 5;
168 };
169 Class {
170  name = "Other";
171  pingfreq = 1 minutes 30 seconds;
172  sendq = 160000;
173  maxlinks = 400;
174 };
175 Class {
176  name = "Opers";
177  pingfreq = 1 minutes 30 seconds;
178  sendq = 160000;
179  maxlinks = 10;
180
181  # For connection classes intended for operator use, you can specify
182  # privileges used when the Operator block (see below) names this
183  # class.  The local (aka globally_opered) privilege MUST be defined
184  # by either the Class or Operator block.  The following privileges
185  # exist:
186  #
187  # local (or propagate, with the opposite sense)
188  # whox  (can use x flag with /WHO)
189  # display (oper status visible to lusers)
190  # chan_limit (can join local channels when in
191  #                              MAXCHANNELSPERUSER channels)
192  # mode_lchan (can /MODE &channel without chanops)
193  # deop_lchan (cannot be deopped or kicked on local channels)
194  # walk_lchan (can forcibly /JOIN &channel OVERRIDE)
195  # show_invis (see +i users in /WHO x)
196  # show_all_invis (see +i users in /WHO x)
197  # unlimit_query (show more results from /WHO)
198  # local_kill (can kill clients on this server)
199  # rehash (can use /REHASH)
200  # die (can use /DIE)
201  # local_jupe_server (not used)
202  # set (can use /SET)
203  # local_gline (can set a G-line for this server only)
204  # local_badchan (can set a Gchan for this server only)
205  # see_chan (can see users in +s channels in /WHO)
206  # wide_gline (can use ! to force a wide G-line)
207  # see_opers (can see opers without DISPLAY privilege)
208  # force_local_opmode (can use OPMODE/CLEARMODE on quarantined local channels)
209  # kill (can kill clients on other servers)
210  # gline (can issue G-lines to other servers)
211  # jupe_server (not used)
212  # opmode (can use /OPMODE)
213  # badchan (can issue Gchans to other servers)
214  # force_opmode (can use OPMODE/CLEARMODE on quarantined global channels)
215  #
216  # For global opers (with propagate = yes or local = no), the default
217  # is to grant all of the above privileges.  For local opers, the
218  # default is to grant ONLY the following privileges:
219  #  chan_limit, mode_lchan, show_invis, show_all_invis, local_kill,
220  #  rehash, local_gline, local_jupe, local_opmode, whox, display,
221  #  force_local_opmode
222  # Any privileges listed in a Class block override the defaults.
223
224  local = no;
225 };
226 # [Client]
227 #
228 # To allow clients to connect, they need authorization. This can be
229 # done based on hostmask, address mask, and/or with a password.
230 # With intelligent use of classes and the maxconnections field in the
231 # Client blocks, you can let in a specific domain, but get rid of all other
232 # domains in the same toplevel, thus setting up some sort of "reverse
233 # Kill block".
234 # Client {
235 #  host = "user@host";
236 #  ip = "ip@host";
237 #  password = "password";
238 #  class = "classname";
239 # };
240 #
241 # Technical description (for examples, see below):
242 # For every connecting client, the IP address is known.  A reverse lookup
243 # on this IP-number is done to get the (/all) hostname(s).
244 # Each hostname that belongs to this IP-number is matched to <hostmask>,
245 # and the Client {} is used when any matches; the client will then show
246 # with this particular hostname.  If none of the hostnames match, then
247 # the IP-number is matched against the <IP mask ...> field, if this matches
248 # then the Client{} is used nevertheless and the client will show with the
249 # first (main) hostname if any; if the IP-number did not resolve then the
250 # client will show with the dot notation of the IP-number.
251 # There is a special case for the UNIX domain sockets and localhost connections
252 # though; in this case the <IP mask ...> field is compared with the
253 # name of the server (thus not with any IP-number representation). The name
254 # of the server is the one returned in the numeric 002 reply, for example:
255 # 002 Your host is 2.undernet.org[jolan.ppro], running version ...
256 # Then the "jolan.ppro" is the name used for matching.
257 # Therefore, unix domain sockets, and connections to localhost would
258 # match this block:
259 # host = "*@jolan.ppro";
260 #
261 # This is the "fallback" entry. All .uk, .nl, and all unresolved are
262 # in these two lines.
263 # By using two different lines, multiple connections from a single IP
264 # are only allowed from hostnames which have both valid forward and
265 # reverse DNS mappings.
266 Client
267 {
268  class = "Other";
269  ip = "*@*";
270 };
271
272
273 Client
274 {
275  class = "Other";
276  host = "*@*";
277 };
278 # If you don't want unresolved dudes to be able to connect to your
279 # server, do not specify any "ip = " settings.
280 #
281 # Here, take care of all American ISPs.
282 Client
283 {
284  host = "*@*.com";
285  class = "America";
286 };
287
288 Client
289 {
290  host = "*@*.net";
291  class = "America";
292 };
293 # Now list all the .com / .net domains that you wish to have access...
294 # actually it's less work to do it this way than to do it the other
295 # way around - K-lining every single ISP in the US.
296 # I wish people in Holland just got a .nl domain, and not try to be
297 # cool and use .com...
298 Client { host = "*@*.wirehub.net"; class = "Other";};
299 Client { host = "*@*.planete.net"; class = "Other";};
300 Client { host = "*@*.ivg.com"; class = "Other";};
301 Client { host = "*@*.ib.com"; class = "Other";};
302 Client { host = "*@*.ibm.net"; class = "Other";};
303 Client { host = "*@*.hydro.com"; class = "Other";};
304 Client { host = "*@*.nl.net"; class = "Local";};
305
306 # You can request a more complete listing, including the "list of standard
307 # Kill blocks" from the Routing Committee; it will also be sent to you if
308 # you apply for a server and get accepted.
309 #
310 # Ourselves - this makes sure that we can get in, no matter how full
311 # the server is (hopefully).
312 Client
313 {
314  host = "*@*.london.ac.uk";
315  ip = "*@193.37.*";
316  class = "Local";
317 };
318
319 # You can put an expression in the maxlinks value, which will make ircd
320 # only accept a client when the total number of connections to the network
321 # from the same IP number doesn't exceed this number.
322 # The following example would accept at most one connection per IP number
323 # from "*.swipnet.se" and at most two connections from dial up accounts
324 # that have "dial??.*" as host mask:
325 # Client {
326 #  host = "*@*.swipnet.se";
327 #  maxlinks = 1;
328 #  class = "Other";
329 # };
330 # Client {
331 #  host = "*@dial??.*";
332 #  maxlinks = 2;
333 #  class = "Other";
334 # };
335 #
336 # If you are not worried about who connects, this line will allow everyone
337 # to connect.
338 Client {
339  host = "*@*";
340  ip = "*@*";
341  class = "Other";
342 };
343
344
345 # [motd]
346 #
347 # It is possible to show a different Message of the Day to a connecting
348 # client depending on its origin.
349 # motd {
350 #  # Note: host can also be a classname.
351 #  host = "Other";
352 #  file = "path/to/motd/file";
353 # };
354 #
355 # DPATH/net_com.motd contains a special MOTD where users are encouraged
356 # to register their domains and get their own client{} lines if they're in
357 # Europe, or move to US.UnderNet.org if they're in the USA.
358 motd {
359  host = "*.net";
360  file = "net_com.motd";
361 };
362 motd {
363  host = "*.com";
364  file = "net_com.motd";
365 };
366 motd {
367  host = "America";
368  file = "net_com.motd";
369 };
370
371 # A different MOTD for ourselves, where we point out that the helpdesk
372 # better not be bothered with questions regarding irc...
373 motd {
374  host = "*.london.ac.uk";
375  file = "london.motd";
376 };
377
378 # [UWorld]
379 #
380 # One of the many nice features of Undernet is "Uworld", a program
381 # connected to the net as a server. This allows it to broadcast any mode
382 # change, thus allowing opers to, for example, "unlock" a channel that
383 # has been taken over.
384 # There is only one slight problem: the TimeStamp protocol prevents this.
385 # So there is a configuration option to allow them anyway from a certain
386 # server.
387 # UWorld {
388 #  # The servername or wildcard mask for it that this applies to.
389 #  name = "relservername";
390 # };
391 #
392 # Note: (1) These lines are agreed on by every server admin on Undernet;
393 # (2) These lines must be the same on every single server, or results
394 # will be disasterous; (3) This is a useful feature, not something that
395 # is a liability and abused regularly (well... :-)
396 # If you're on Undernet, you MUST have these lines. I cannnot stress
397 # this enough.  If all of the servers don't have the same lines, the
398 # servers will try to undo the mode hacks that Uworld does.  Make SURE that
399 # all of the servers have the EXACT same UWorld blocks.
400 #
401 # If your server starts on a bit larger network, you'll probably get
402 # assigned one or two uplinks to which your server can connect.
403 # If your uplink(s) also connect to other servers than yours (which is
404 # probable), you need to define your uplink as being allowed to "hub".
405 # To do this, set "hub = yes;"
406 # You can also force a server(even one that doesn't connect to you)
407 # to be a leaf with "leaf = yes;"
408
409 UWorld {
410  name = "uworld.eu.undernet.org";
411 };
412 UWorld {
413  name = "uworld2.undernet.org";
414 };
415 UWorld {
416  name = "uworld.undernet.org";
417 };
418 UWorld {
419  name = "channels.undernet.org";
420 };
421 UWorld {
422  name = "channels2.undernet.org";
423 };
424 UWorld {
425  name = "channels3.undernet.org";
426 };
427 UWorld {
428  name = "channels4.undernet.org";
429 };
430 UWorld {
431  name = "channels5.undernet.org";
432 };
433 UWorld {
434  name = "channels6.undernet.org";
435 };
436 Server {
437  name = "Amsterdam.NL.Eu.UnderNet.org";
438  mask = "*";
439  hub = yes;
440 };
441 # An example just to make sure IRCnet doesn't get on undernet...
442 Server {
443  name = "*";
444  mask = "eris.berkeley.edu";
445  hub = yes;
446 };
447
448 # As of ircu2.10.05 is it possible to Jupe nicks. As per CFV-0095, the
449 # following nicks must be juped, it is not allowed to jupe others as well.
450 Jupe {
451  nick = "EuWorld,E,StatServ,NoteServ";
452  nick = "UWorld2,ChanSvr,ChanSaver,ChanServ";
453  nick = "Uworld,NickSvr,NickSaver,NickServ";
454  nick = "LPT1,X,login,LPT2,W,Undernet,COM1,V,protocol,COM2";
455  nick = "U,pass,COM3,Y,AUX,COM4,Z,newpass";
456 };
457
458 # [Kill]
459 #
460 # While running your server, you will most probably encounter individuals
461 # or groups of persons that you do not wish to have access to your server.
462 #
463 # For this purpose, the ircd understands "kill blocks". These are also
464 # known as K-lines, by virtue of the former config file format.
465 # Kill
466 # {
467 #   host = "user@host";
468 #   reason = "The reason the user will see";
469 # };
470 # It is possible to ban on the basis of the real name.
471 # It is also possible to use a file as comment for the ban, using
472 # file = "file":
473 # Kill
474 # {
475 #   realname = "realnametoban";
476 #   file = "path/to/file/with/reason/to/show";
477 # };
478 #
479 #
480 # The default reason is: "You are banned from this server"
481 # Note that K-lines are local to the server; if you ban a person or a
482 # whole domain from your server, they can get on IRC via any other server
483 # that doesn't have them K-lined (yet).
484 #
485 # With a simple comment, using quotes:
486 Kill { host = "*.au"; reason = "Please use a nearer server"; };
487 Kill { host = "*.edu"; reason = "Please use a nearer server"; };
488
489 # The file can contain for example, a reason, a link to the
490 # server rules and a contact address.
491 Kill
492 {
493  host = "*luser@unixbox.flooder.co.uk";
494  file = "kline/youflooded.txt";
495 };
496
497 # IP-based kill lines apply to all hosts, even if an IP address has a
498 # properly resolving host name.
499 Kill
500 {
501  host = "192.168.*";
502  file = "klines/martians";
503 };
504
505 # The realname field lets you ban by realname...
506 Kill
507 {
508  host = "*sub7*";
509  reason = "You are infected with a Trojan";
510 };
511
512 # [Connect]
513 #
514 # You probably want your server connected to other servers, so your users
515 # have other users to chat with.
516 # IRC servers connect to other servers forming a network with a star or
517 # tree topology. Loops are not allowed.
518 # In this network, two servers can be distinguished: "hub" and "leaf"
519 # servers. Leaf servers connect to hubs; hubs connect to each other.
520 # Of course, many servers can't be directly classified in one of these
521 # categories. Both a fixed and a rule-based decision making system for
522 # server links is provided for ircd to decide what links to allow, what
523 # to let humans do themselves, and what links to (forcefully) disallow.
524 #
525 # The Connect blocks
526 # define what servers the server connect to, and which servers are
527 # allowed to connect.
528 # Connect {
529 #  name = "servername";
530 #  host = "hostnameORip";
531 #  password = "passwd";
532 #  port = portno;
533 #  class = "classname";
534 #  maxhops = 2;
535 #  hub = "*.eu.undernet.org";
536 # };
537 #
538 # The "port" field defines the default port the server tries to connect
539 # to if an operator uses /connect without specifying a port. This is also
540 # the port used when the server attempts to auto-connect to the remote
541 # server. (See Class blocks for more informationa about auto-connects).
542 #
543 # The maxhops field causes an SQUIT if a hub tries to introduce
544 # servers farther away than that; the element 'leaf;' is an alias for
545 # 'maxhops = 0;'.  The hub field limits the names of servers that may
546 # be introduced by a hub; the element 'hub;' is an alias for
547 # 'hub = "*";'.
548 #
549 # Our primary uplink.
550 Connect {
551  name = "Amsterdam.NL.Eu.UnderNet.org";
552  host = "1.2.3.4";
553  password = "passwd";
554  port = 4400;
555  class = "Servers";
556  hub;
557 };
558
559 # [crule]
560 #
561 # For an advanced, real-time rule-based routing decision making system
562 # you can use crule blocks. For more information, see doc/readme.crules.
563 # CRULE
564 # {
565 #  server = "servermask";
566 #  rule = "connectrule";
567 #  # Setting all to yes makes the rule always apply. Otherwise it only
568 #  # applies to autoconnects.
569 #  all = yes;
570 # };
571 CRULE
572 {
573  server = "*.US.UnderNet.org";
574  rule = "connected(*.US.UnderNet.org)";
575 };
576 CRULE
577 {
578  server = "*.EU.UnderNet.org";
579  rule = "connected(Amsterdam.NL.EU.*)";
580 };
581
582 # The following block is recommended for leaf servers:
583 CRULE
584 {
585  server = "*";
586  rule = "directcon(*)";
587 };
588
589 # [Operator]
590 #
591 # Inevitably, you have reached the part about "IRC Operators". Oper status
592 # grants some special privileges to a user, like the power to make the
593 # server break or (try to) establish a connection with another server,
594 # and to "kill" users off IRC.
595 # I can write many pages about this; I will restrict myself to saying that
596 # if you want to appoint somebody as IRC Operator on your server, that
597 # person should be aware of his/her responsibilities, and that you, being
598 # the admin, will be held accountable for their actions.
599 #
600 # There are two sorts of IRC Operators: "local" and "global". Local opers
601 # can squit, connect and kill - but only locally: their +o user mode
602 # is not not passed along to other servers. On Undernet, this prevents
603 # them from using Uworld as well.
604 #
605 # Operator {
606 #  host = "host/IP mask";
607 #  name = "opername";
608 #  password = "encryptedpass";
609 #  class = "classname";
610 #  # You can also set any operator privilege; see the Class block
611 #  # documentation for details.  A privilege defined for a single
612 #  # Operator will override the privilege settings for the Class
613 #  # and the default setting.
614 # };
615 #
616 # The encrypted password is optional.  If you wish to encrypt your
617 # password, there is a utility in the ircd.  Please read the file
618 # tools/README.
619 # All privileges are shown with their default values; if you wish to
620 # override defaults, you should set only those privileges for the
621 # operator.  Listing defaulted privileges just makes things harder to
622 # find.
623 Operator {
624  local = no;
625  host = "*@*.cs.vu.nl";
626  password = "VRKLKuGKn0jLt";
627  name = "Niels";
628  class = "Local";
629 };
630 Operator {
631  host = "*@*.uu.net";
632  password = "notencryptedpass";
633  name = "Niels";
634  class = "Opers";
635 };
636
637 # Note that the <connection class> is optional, but leaving it away
638 # puts the opers in class "default", which usually only accepts one
639 # connection at a time.  If you want users to Oper up more then once per
640 # block, then use a connection class that allows more then one connection,
641 # for example (using class Local as in the example above):
642 #
643 # Once you OPER your connection class changes no matter where you are or
644 # your previous connection classes.  If the defined connection class is
645 # Local for the operator block, then your new connection class is Local.
646
647 # [Port]
648 # When your server gets more full, you will notice delays when trying to
649 # connect to your server's primary listening port. It is possible via the
650 # Port lines to specify additional ports for the ircd to listen to.
651 # De facto ports are: 6667 - standard; 6660-6669 - additional client
652 # ports;
653 # Undernet uses 4400 for server listener ports.
654 # These are just hints, they are in no way official IANA or IETF policies.
655 # IANA says we should use port 194, but that requires us to run as root,
656 # so we don't do that.
657 #
658 # Port {
659 #  port = number;
660 #  mask = "ipmask";
661 #  # Use this to control the interface you bind to.
662 #  vhost = "virtualhostip";
663 #  # Setting to yes makes this server only.
664 #  server = yes;
665 #  # Setting to yes makes the port "hidden" from stats.
666 #  hidden = yes;
667 # };
668 #
669 # The mask setting allows you to specify a range of IP addresses that
670 # you will allow connections from. This should only contain IP addresses
671 # and '*' if used. This field only uses IP addresses. This does not use
672 # DNS in any way so you can't use it to allow *.nl or *.uk. Attempting
673 # to specify anything other than numbers, dots and stars [0-9.*] will result
674 # in the port allowing connections from anyone.
675 #
676 # The interface setting allows multiply homed hosts to specify which
677 # interface to use on a port by port basis, if an interface is not specified
678 # the default interface will be used. The interface MUST be the complete
679 # IP address for a real hardware interface on the machine running ircd.
680 # If you want to use virtual hosting *YOU* *MUST* *USE* *THIS* otherwise it
681 # WILL bind to all interfaces - not what most people seem to expect.
682 #
683 Port {
684  server = yes;
685  port = 4400;
686 };
687
688 # This is a Server port that is Hidden
689 Port {
690  server = yes;
691  hidden = yes;
692  port = 4401;
693 };
694
695 # The following are normal client ports
696 Port { port = 6667; };
697 Port { port = 6668; };
698 Port {
699  mask = "192.168.*";
700  port = 6666;
701 };
702
703 # This is a hidden client port, listening on the interface associated
704 # with the IP address 168.8.21.107
705 Port {
706  mask = "168.8.21.107";
707  hidden = yes;
708  port = 7000;
709 };
710
711 # This is a server-implemented alias to send a message to a service.
712 # The string after Pseudo is the command name; the name entry inside
713 # is the service name, used for error messages.  More than one nick
714 # entry can be provided; the last one listed has highest priority.
715 Pseudo "CHANSERV" {
716  name = "X";
717  nick = "X@channels.undernet.org";
718 };
719
720 # You can also prepend text before the user's message.
721 Pseudo "LOGIN" {
722  name = "X";
723  prepend = "LOGIN ";
724  nick = "X@channels.undernet.org";
725 };
726
727 # You can ask a separate server whether to allow users to connect.
728 IAuth {
729  pass = "ircd-iauth";
730  host = "127.0.0.1";
731  port = 7700;
732  connectfreq = 30;
733  timeout = 60;
734 };
735
736 # [features]
737 # IRC servers have a large number of options and features.  Most of these
738 # are set at compile time through the use of #define's--see "make config"
739 # for more details--but we are working to move many of these into the
740 # configuration file.  Features let you configure these at runtime.
741 # You only need one feature block in which you use
742 # "featurename" = "value1" , "value2", ..., "valuen-1", "valuen";
743 #
744 # The entire purpose of F:lines are so that you do not have to recompile
745 # the IRCD everytime you want to change a feature.  All of the features
746 # are listed below, and at the bottom is how to set logging.
747 #
748 # A Special Thanks to Kev for writing the documentation of F:lines.  It can
749 # be found at doc/readme.features and the logging documentation can be
750 # found at doc/readme.log.  The defaults used by the Undernet network are
751 # below.
752 #
753 features
754 {
755 #  "DOMAINNAME"="<obtained from /etc/resolv.conf by ./configure>";
756 #  "RELIABLE_CLOCK"="FALSE";
757 #  "BUFFERPOOL"="27000000";
758 #  "HAS_FERGUSON_FLUSHER"="FALSE";
759 #  "CLIENT_FLOOD"="1024";
760 #  "SERVER_PORT"="4400";
761 #  "NODEFAULTMOTD"="TRUE";
762 #  "MOTD_BANNER"="TRUE";
763 #  "KILL_IPMISMATCH"="FALSE";
764 #  "IDLE_FROM_MSG"="TRUE";
765 #  "HUB"="FALSE";
766 #  "WALLOPS_OPER_ONLY"="FALSE";
767 #  "NODNS"="FALSE";
768 #  "RANDOM_SEED"="<you should set one explicitly>";
769 #  "DEFAULT_LIST_PARAM"="TRUE";
770 #  "NICKNAMEHISTORYLENGTH"="800";
771 #  "NETWORK"="UnderNet";
772 #  "HOST_HIDING"="FALSE";
773 #  "HIDDEN_HOST"="users.undernet.org";
774 #  "HIDDEN_IP"="127.0.0.1";
775 #  "KILLCHASETIMELIMIT"="30";
776 #  "MAXCHANNELSPERUSER"="10";
777 #  "NICKLEN" = "12";
778 #  "AVBANLEN"="40";
779 #  "MAXBANS"="30";
780 #  "MAXSILES"="15";
781 #  "HANGONGOODLINK"="300";
782 # "HANGONRETRYDELAY" = "10";
783 # "CONNECTTIMEOUT" = "90";
784 # "MAXIMUM_LINKS" = "1";
785 # "PINGFREQUENCY" = "120";
786 # "CONNECTFREQUENCY" = "600";
787 # "DEFAULTMAXSENDQLENGTH" = "40000";
788 # "GLINEMAXUSERCOUNT" = "20";
789 # "MPATH" = "ircd.motd";
790 # "RPATH" = "remote.motd";
791 # "PPATH" = "ircd.pid";
792 # "TOS_SERVER" = "0x08";
793 # "TOS_CLIENT" = "0x08";
794 # "POLLS_PER_LOOP" = "200";
795 # "IRCD_RES_TIMEOUT" = "4";
796 # "IRCD_RES_RETRIES" = "2";
797 # "AUTH_TIMEOUT" = "9";
798 # "IPCHECK_CLONE_LIMIT" = "4";
799 # "IPCHECK_CLONE_PERIOD" = "40";
800 # "IPCHECK_CLONE_DELAY" = "600";
801 # "CONFIG_OPERCMDS" = "FALSE";
802 # "OPLEVELS" = "TRUE";
803 # "LOCAL_CHANNELS" = "TRUE";
804 # "ANNOUNCE_INVITES" = "FALSE";
805 #  These were introduced by Undernet CFV-165 to add "Head-In-Sand" (HIS)
806 #  behavior to hide most network topology from users.
807 #  "HIS_SNOTICES" = "TRUE";
808 #  "HIS_SNOTICES_OPER_ONLY" = "TRUE";
809 #  "HIS_DEBUG_OPER_ONLY" = "TRUE";
810 #  "HIS_WALLOPS" = "TRUE";
811 #  "HIS_MAP" = "TRUE";
812 #  "HIS_LINKS" = "TRUE";
813 #  "HIS_TRACE" = "TRUE";
814 #  "HIS_STATS_a" = "TRUE";
815 #  "HIS_STATS_c" = "TRUE";
816 #  "HIS_STATS_d" = "TRUE";
817 #  "HIS_STATS_e" = "TRUE";
818 #  "HIS_STATS_f" = "TRUE";
819 #  "HIS_STATS_g" = "TRUE";
820 #  "HIS_STATS_h" = "TRUE";
821 #  "HIS_STATS_i" = "TRUE";
822 #  "HIS_STATS_j" = "TRUE";
823 #  "HIS_STATS_k" = "TRUE";
824 #  "HIS_STATS_l" = "TRUE";
825 #  "HIS_STATS_L" = "TRUE";
826 #  "HIS_STATS_m" = "TRUE";
827 #  "HIS_STATS_M" = "TRUE";
828 #  "HIS_STATS_o" = "TRUE";
829 #  "HIS_STATS_p" = "TRUE";
830 #  "HIS_STATS_q" = "TRUE";
831 #  "HIS_STATS_r" = "TRUE";
832 #  "HIS_STATS_R" = "TRUE";
833 #  "HIS_STATS_t" = "TRUE";
834 #  "HIS_STATS_T" = "TRUE";
835 #  "HIS_STATS_u" = "FALSE";
836 #  "HIS_STATS_U" = "TRUE";
837 #  "HIS_STATS_v" = "TRUE";
838 #  "HIS_STATS_w" = "TRUE";
839 #  "HIS_STATS_x" = "TRUE";
840 #  "HIS_STATS_y" = "TRUE";
841 #  "HIS_STATS_z" = "TRUE";
842 #  "HIS_WHOIS_SERVERNAME" = "TRUE";
843 #  "HIS_WHOIS_IDLETIME" = "TRUE";
844 #  "HIS_WHOIS_LOCALCHAN" = "TRUE";
845 #  "HIS_WHO_SERVERNAME" = "TRUE";
846 #  "HIS_WHO_HOPCOUNT" = "TRUE";
847 #  "HIS_BANWHO" = "TRUE";
848 #  "HIS_KILLWHO" = "TRUE";
849 #  "HIS_REWRITE" = "TRUE";
850 #  "HIS_REMOTE" = "TRUE";
851 #  "HIS_NETSPLIT" = "TRUE";
852 #  "HIS_SERVERNAME" = "*.undernet.org";
853 #  "HIS_SERVERINFO" = "The Undernet Underworld";
854 #  "HIS_URLSERVERS" = "http://www.undernet.org/servers.php";
855 };
856
857 # Well, you have now reached the end of this sample configuration
858 # file. If you have any questions, feel free to mail
859 # <coder-com@undernet.org>.  If you are interested in linking your
860 # server to the Undernet IRC network visit
861 # http://www.routing-com.undernet.org/, and if there are any
862 # problems then contact <routing-com@undernet.org> asking for
863 # information. Upgrades of the Undernet ircd can be found on
864 # http://coder-com.undernet.org/.
865 #
866 # For the rest:  Good Luck!
867 #
868 #       -- Niels.