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