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