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