home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Online / Unreal / ircd.conf < prev    next >
Text File  |  1999-11-28  |  20KB  |  460 lines

  1. #
  2. # IRC - Internet Relay Chat, doc/example.conf
  3. # Copyright (C) 1994, Helen Rose
  4. # $Id: example.conf,v 1.1.1.1 1999/09/01 23:20:35 stskeeps Exp $
  5. #
  6. #   This program is free software; you can redistribute it and/or modify
  7. #   it under the terms of the GNU General Public License as published by
  8. #   the Free Software Foundation; either version 1, or (at your option)
  9. #   any later version.
  10. #
  11. #   This program is distributed in the hope that it will be useful,
  12. #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. #   GNU General Public License for more details.
  15. #
  16. #   You should have received a copy of the GNU General Public License
  17. #   along with this program; if not, write to the Free Software
  18. #   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20. # This is an example configuration file for the irc2.8.21mu3.dal3
  21. # and higher IRC servers.
  22. # You only need an ircd.conf (IRC server configuration file) if you are
  23. # running an IRC server. If you are running a standalone client this file
  24. # is not necessary.
  25. #
  26. # This file will explain the various lines in the IRC server
  27. # configuration file. Not all lines are mandatory. You can check to make
  28. # sure that your configuration file is correct by using the program
  29. # "chkconf", provided in the server distribution (and when you do "make
  30. # install" this program will be installed in the same directory as the irc
  31. # server). 
  32. #
  33. # This document modified for use by the DALnet IRC network and its upgraded
  34. # server versions by Russell on 10/22/95.
  35. #
  36. # This document updated to comform to current ircd changes and features by
  37. # Cabal95 on 06/21/97.
  38. #
  39. # The options for whether a line is needed or not are: 
  40. # MANDATORY: you absolutely MUST have this line
  41. # NETWORKED: you must have this line if you are connecting this irc
  42. #            server to any other server (servers can run standalone).
  43. # SUGGESTED: it is highly suggested that you use this line
  44. # OPTIONAL: it's completely up to you whether to define this or not
  45. # DISCOURAGED: you really really should not use this line if at all
  46. #              possible. 
  47. # OBSOLETE: an old or out of date line that isn't needed.
  48. #
  49. # MANDATORY lines are absolute *musts*, that is, if you do not have this
  50. # line then your server will not work properly. SUGGESTED lines are
  51. # close-to-mandatory (that is, the server will run without it, but you are
  52. # highly encouraged to use these lines).
  53. #
  54. # Note that "*" in a field indicates an "unused" field.
  55. #
  56. #
  57. # ========================================================================
  58. # NOTE! this entire configuration file is read UPSIDE-DOWN! So if you have
  59. # to put something in a specific order (for example, client-connection
  60. # lines), put them in reverse order!
  61. # ========================================================================
  62. #
  63. #
  64. # M: [MANDATORY]. This line sets your server's name, description, port
  65. # number, and IP address to bind to. Fields, in order, are: 
  66. #
  67. # If you are compiling this server for use on dalnet, port number 7000
  68. # as the default is recommended.  If you leave IP address field blank or
  69. # *, it defaults to binding all local IP addresses on the machine.
  70. #
  71. # M:hostname:IP:Description Of Your Server:7000
  72. #
  73. M:server.dal.net:*:East Coast Dalnet Server:7000
  74. #
  75. # A: [MANDATORY]. This line lists your administrative information
  76. # (contact address, etc). To view this information, /admin (server) will
  77. # show it to you.
  78. #
  79. # The A: line has no set information, in fact, you can put arbitrary text
  80. # in there if you wish (it is encouraged that you put at *least* a contact
  81. # address for a person responsible for the irc server, however)
  82. #
  83. A:Generic Internet Access:Admin John Doe:jdoe@generic.com
  84. #
  85. # Y: [SUGGESTED]. These lines define connection classes. Connection
  86. # classes allow you to fine-tune your client and server connections. It is
  87. # suggested that clients and servers be placed in seperate classes, and if
  88. # you have lots of server connections (if you do have lots of servers you
  89. # shouldn't be reading this file :-) each set of servers (defined
  90. # arbitrarily by you) should have its own class. If you have clients
  91. # coming in from lots of different sites, you may want to seperate them
  92. # out into classes. For instance, you may want to put local users in one
  93. # class, with remote users in another class.
  94. #
  95. # The class numbers are not arbitrary. In auto-connecting servers -- that
  96. # is, servers that you have a port number (e.g. 6667) on the end of the C:
  97. # line (see below) the higher the number the higher the priority in
  98. # auto-connecting.
  99. #
  100. # The fields in order are: class number, ping frequency (in seconds),
  101. # connect frequency (in seconds), maximum number of links (used for
  102. # auto-connecting, and for limiting the number of clients in that class),
  103. # and sendq (this overrides any value set in include/config.h for #define
  104. # MAXSENDQLENGTH).
  105. #
  106. # Note that it is a good idea to have ping frequency the same at both ends
  107. # of the link.
  108. # in this case, connect-frequency is 0 indicating that this is a client
  109. # class (servers never connect to clients, it is the other way around).
  110. Y:1:90:0:20:100000
  111. #
  112. # These are the recommended server Y:lines for connecting to dalnet.
  113. # In addition to these you should have at *least* one client class, and one
  114. # oper class (see O:lines).  By convention on dalnet, these are usually
  115. # numbered from 5 to 10.
  116. #
  117. # Class 50 - Hub to hub, autoconnect
  118. Y:50:90:60:1:4000000
  119. #
  120. # Class 51 - Hub to hub, no autoconnect
  121. Y:51:90:60:0:4000000
  122. #
  123. # Class 30 - Hub to US leaf
  124. Y:30:90:0:0:3500000 
  125. #
  126. # Class 32 - Hub to EU leaf
  127. Y:32:180:0:0:3500000
  128. #
  129. # Class 34 - Hub to AU leaf
  130. Y:34:300:0:0:3500000
  131. #
  132. # Class 40 - US leaf to hub, autoconnect
  133. Y:40:90:90:1:3500000
  134. #
  135. # Class 41 - US leaf to hub, no autoconnect
  136. Y:41:90:90:0:3500000
  137. #
  138. # Class 42 - EU leaf hub
  139. Y:42:180:90:1:3500000
  140. #
  141. # Class 44 - AU leaf to hub
  142. Y:44:300:120:1:3500000
  143. #
  144. # I: [MANDATORY]. The I: lines are client-authorization lines. Without
  145. # these lines, no clients will be able to connect to your server.
  146. # Wildcards ("*") are permitted. Passwords are also permitted (clients can
  147. # be configured to send passwords).
  148. # Ident (for more information on this, see rfc1413) can also be used by
  149. # placing a @ in the appropriate fields.
  150. #
  151. # Fields are as follows:
  152. # I:IP-address-mask:optional password:domain-mask::connection class (opt)
  153. #
  154. # With a password..... This will allow anyone from anywhere to connect
  155. # as long as they know the password ("foobar"). Note listing this I: line
  156. # first, it will be read *last*, meaning it is the "fall-through". That
  157. # is, anyone who doesn't match the I: lines listed below must know the
  158. # password ("foobar") to connect.
  159. #
  160. I:*@*:foobar:*@*::1
  161. # This is a standard vanilla I: line which will permit anyone with an IP
  162. # address starting with 205.133 OR with a hostname ending in 
  163. # .toledolink.com to connect to the server. NOTE, the ircd matches on the 
  164. # *right-most* match, so if I connect as rmiller@glass.toledolink.com 
  165. # (which is rmiller@205.133.127.8) I will show up on irc as 
  166. # rmiller@glass.toledolink.com since that is the first match it found. 
  167. # (Even though the second match is valid). 
  168. I:205.133.*::*.toledolink.com::1
  169. # using ident
  170. I:*@205.133.*::*@*.toledolink.com::1
  171. # and you can even specify just certain usernames running ident (as long
  172. # as the client's site is running the ident daemon):
  173. I:NOMATCH::rmiller@glass.toledolink.com::1
  174. # putting NOMATCH in the first field will stop the ircd from matching
  175. # automatically against the IP address and it will force the server to
  176. # match against the hostname. (the "NOMATCH" string is not mandatory, you
  177. # can use any arbitrary text in the first field).
  178. #
  179. # O: [OPTIONAL]. These lines define operator access. You do not need to
  180. # have an operator to run a server. A well configured leaf site should not
  181. # need an operator online, if it's connections are well defined, the irc
  182. # administrator can use kill -HUP on the ircd to reload the configuration
  183. # file. 
  184. # The fields are as follows:
  185. # O:hostname (ident "@" permitted):password:NickName:AccessFlags:class
  186. # if the person in "NickName" is not coming from the hostname defined in
  187. # the first field then the person will get the error message "No O: lines
  188. # for your host". 
  189. # NOTE that since Crypted Passwords are defined by default in
  190. # include/config.h this text probably will not be plaintext. See
  191. # ircd/crypt/README for more information.
  192. #
  193. # class is the Y:Line class you want this operator to end up in after they
  194. # have successfully /oper'd.
  195. #
  196. # Access flags may be left blank, or * to give full access rights. Flags
  197. # are in the form of single characters making a string.  Any combination
  198. # of the following can be used(these are cAsE sensitive characters):
  199. #
  200. # r = access to /rehash server
  201. # R = access to /restart server
  202. # D = access to /die server
  203. # h = oper can send /help ops
  204. # g = oper can send /globops
  205. # w = oper can send /wallops
  206. # l = oper can send /locops
  207. # c = access to do local /squits and /connects
  208. # C = access to do remote /squits and /connects
  209. # k = access to do local /kills
  210. # K = access to do global /kills
  211. # b = oper can /kline users from server
  212. # B = oper can /unkline users from server
  213. # n = oper can send local server notices(/notice $servername message)
  214. # N = oper can send global notices(/notice $*.dal.net message)
  215. # A = admin - currently does nothing
  216. # u = oper can set /umode +c
  217. # f = oper can set /umode +f
  218. # o = local oper, flags included: rhgwlckbBnuf
  219. # O = global oper, flags included: oRDCKN
  220. #
  221. # This is a plain vanilla O:line:
  222. O:*.toledolink.com:nopassword:Russell:*:10
  223. #
  224. # and this line forces ident:
  225. O:rmiller@glass.toledolink.com:nopassword:Russell::10
  226. # This line is a generic "local operator", because of the flags, the only
  227. # thing that really makes them global operators, is if they have the flags
  228. # CKN set in their access flags.
  229. #
  230. # this line permits the nickname "jhs" with the password of "ITBites" to
  231. # be a local operator only (be able to issue commands locally -- can /kill
  232. # and /squit and /connect -- but *only* locally)
  233. #
  234. O:*.something.net:ITBites:jhs:o:10
  235. #
  236. # a crypted password line (NOTE that if you have crypted passwords, *all*
  237. # of you passwords must be crypted! In fact, if you are getting an error
  238. # "Incorrect Password" it may well be because crypted passwords are
  239. # defined and you have used plaintext.  So my example of plaintext and
  240. # crypted strings in the same IRC server configuration file is an
  241. # impossibility (but it is just theoretical, which is why I explained both).
  242. #
  243. O:rmiller@*.toledolink.com:T0eiVgHrqeKTQ:Russell::10
  244. #
  245. # U: [OPTIONAL]. This line defines the servers that IRC recognizes as being
  246. # allowed to make various changes to the IRC environment (mode changes, for
  247. # example), without complaining or otherwise obstructing them. For example,
  248. # DALnet requires the following line:
  249. U:services.dal.net:*:*
  250. #
  251. # X: [ENCOURAGED]. This line defines the password that an operator must use
  252. # to restart or die the server. Note that they still myst have they R and D
  253. # flags. This is just a security precaution against  accidentaly typing
  254. # /die or /restart
  255. # X:<password for /DIE>:<password for /RESTART>
  256. X:diepass:restartpass
  257.  
  258. # C: [NETWORKED]. These lines define what servers your server tries to
  259. # connect to. 
  260. # N: [NETWORKED]. These lines define what servers your server permits
  261. # connections to be initiated from. 
  262. # C/N lines MUST be used in pairs. You cannot have one without the other. 
  263. #
  264. # C: lines contain the following fields:
  265. # C:remote server's hostname:passwd:remote server's name:port:conn class
  266. # (connection class)
  267. # N: lines contain the following fields:
  268. # N:remote server's hostname:passwd:remote server's name:host mask:conn class
  269. # (connection class)
  270. # "host mask" is the number of parts in *your* hostname to mask to. For
  271. # instance, with my servername being "csa.bu.edu", if I wanted to present
  272. # my servername to be "*.bu.edu" I would have a host-mask portion of "1". 
  273. #
  274. # it is *strongly* advised that your C/N line passwords be different for
  275. # security's sake.
  276. #
  277. # ident is allowed in the server's hostname part of the field.
  278. # these lines tell the server to automatically (note the port number, that
  279. # means automatic connection) connect to mindijari.ca.us.dal.net:
  280. C:dalvenjah@nowhere.he.us.dal.net:bigspark:nowhere.he.us.dal.net:7000:32
  281. N:dalvenjah@nowhere.he.us.dal.net:bigalpha:nowhere.he.us.dal.net::32
  282. #
  283. # This server's connection lines are more vanilla, masking the host to
  284. # *.toledolink.com (as described above):
  285. C:*.dalnet.com:camelsrk00l:*.dalnet.com::32
  286. N:*.dalnet.com:andsoarellamas:*.dalnet.com:1:32
  287. #
  288. # K: [OPTIONAL]. These lines define user@host patterns to be banned from
  289. # this particular server (with an optional time field). Note that K: lines
  290. # are *not* global, and if you ban a user they can still use any other IRC
  291. # server (unless they have specifically been banned there as well).
  292. #
  293. # The time field (same as reason) is only used if you #define
  294. # TIMED_KLINES in config.h, and even then they are discouraged.
  295. # the fields are defined as:
  296. # K:hostmask:reason:username
  297. # wildcards are permitted in any one of the fields, in other words, you can
  298. # K:*::* if you wanted (but your server wouldn't be used much ;-)
  299. #
  300. # Spaces are permitted in the reason field (you don't have to use _).
  301. # The /stats command has been modified to replace all spaces with _'s when
  302. # doing a /stats k.
  303. #
  304. # This K: line bans the username "hrose" (the wildcards are used to make
  305. # sure that any ident-checking character will match) on any machine from
  306. # the University of Boston.
  307. K:*.bu.edu:Hacking #dragonrealm:*hrose*
  308. #
  309. # This K: line bans any users from acs*.bu.edu between the hours of 8am
  310. # and 12pm and 1pm and 5pm (the time is always the server's local time).
  311. # Time-based K-lines such as this require TIMED_KLINES in config.h to be
  312. # #defined.
  313. K:acs*.bu.edu:0800-1200,1300-1700:*
  314. # Note that 24 hour time is used (no "AM" or "PM").
  315.  
  316. # E:Lines
  317. #
  318. # This is a exception to K:Lines.. if a person matches the person is let in
  319. #
  320. E:hostmask:reason:usermask
  321. # R: [OBSOLETE]. These lines restrict user access based on a more
  322. # stringent checking system than is available in the K: line. It looks for
  323. # a match (based on hostname and username) and then runs an outside
  324. # program (which MUST be specified using a full pathname). The output of
  325. # the program should be a string in the form "Y <message>" (which permits
  326. # access for the user) or "N <message>" (which denies access for the
  327. # user). If "Y <message>" is received by the server, the server ignores
  328. # the message and permits access for the user. If "N <message>" is
  329. # returned, the server tells the user that he/she is not permitted to
  330. # access that irc server, and gives the reason.
  331. #
  332. # Again, like K: lines, R: lines are local and thus not very effective in
  333. # blocking certain machines from having IRC access.
  334. #
  335. # Use of R: requires that you have defined R_LINES in include/config.h
  336. #
  337. # The fields are as follows:
  338. # R:hostmask:/full/path/to/program:username
  339. # you can use wildcards in either the hostmask or username portion
  340. #
  341. R:csl.bu.edu:/home/hrose/bin.sun3/sun3access:*
  342. #
  343. # q: [DISCOURAGED]. These lines "quarantine" specified servers.  Because
  344. # of the way they operates, the same q: lines MUST be installed by
  345. # everyone or the net will keep breaking. I CANNOT EMPHASIZE THIS ENOUGH.
  346. # Do NOT use q: lines lightly!
  347. #
  348. # This is NOT a nick q-line, if you wish to quarantine a NICK, see below.
  349. #
  350. # The fields are as follows:
  351. # q:*:reason why quarantine is in place:servername
  352. #
  353. q::this server is too slow and lags the net:cm5.eng.umd.edu
  354. #
  355. # Q: [OPTIONAL]. Different from the above type of q: line, these lines
  356. # prevent users on your server from picking certain nicks. This is useful
  357. # if your network has 'reserved' nicknames that should not be taken by
  358. # normal users.  Note the difference in capitalization and BE CAREFUL!
  359. #
  360. # The fields are as follows:
  361. # Q:*:reason why quarantine is in place:nickname
  362. #
  363. # For example, DALnet servers MUST have the following lines at minimum:
  364. Q::Reserved for services:ChanServ
  365. Q::Reserved for services:NickServ
  366. Q::Reserved for services:MemoServ
  367. Q::Reserved for services:OperServ
  368. Q::Reserved for services:HelpServ
  369. #
  370. Q::Reserved for operators:DALnet
  371. Q::Reserved for operators:IRCop
  372. #
  373. # Z: [DISCOURAGED]. These block ALL incoming connections from a certain
  374. # IP address mask.  They can stop users who log on and issue the SERVER
  375. # command a couple of times just to annoy irc ops.  They are more
  376. # powerful that K-lines because they can stop users before they've had a
  377. # chance to register.  This works on servers, SO BE VERY CAREFUL WITH
  378. # YOUR Z-LINE MASKS.  Z-lines are a LAST RESORT.  They are much too
  379. # dangerous and powerful to be using them instead of K-lines and akills.
  380. #
  381. # NOTE 1: Z-lines do NOT work on host names!  Only IP addresses.
  382. # NOTE 2: Z-lines are part of /stats k.  
  383. # NOTE 3: The :* at the end is REQUIRED.  Not using it will cause both
  384. # ircd and chkconf to segfault without saying why.
  385. #
  386. # Syntax:
  387. # Z:IP mask:reason for zapping:*
  388. Z:127.0.0.1:Please don't log on from the local machine:*
  389. #
  390. # L: [OPTIONAL]. These lines "Leaf" specified servers. They are only
  391. # useful if you are a non-leaf site yourself. There are two ways you can
  392. # use L: lines. The first will limit one particular site to a particular
  393. # tree depth (including 0, which would mean the server has to connect with
  394. # no servers linked behind it otherwise the connection will fail). The
  395. # second will allow you to be selective about which other servers you wish
  396. # the connecting server to behave as a leaf towards.
  397. #
  398. # The fields are as follows:
  399. # L:disallow connections to this hostmask::server name:depth
  400. # For example, this will force kaja.gi.alaska.edu to connect only as a
  401. # leaf (if it is not a leaf, the link will be dropped):
  402. L:::kaja.gi.alaska.edu
  403. # This line will force cm5.eng.umd.edu to have a depth of only 1 below it
  404. # (that is, it is allowed to have only leaves connected to it):
  405. L:::cm5.eng.umd.edu:1
  406. #
  407. # This line will prohibit anything matching *.edu to be connected behind
  408. # any server matching *.au:
  409. L:*.edu::*.au
  410. #
  411. # H: [OPTIONAL]. These lines define who you permit to act as a "hub" to
  412. # you (that is, who you permit to connect non-leafed servers to you).
  413. #
  414. # the first field may use wildcards, the third field *must* be an exact
  415. # match for a server's name (NOT a server's hostname, if they differ, the
  416. # server's name must be used). If the servername is a wildcard (e.g. *.au)
  417. # that is an acceptable name for the third field. 
  418. #
  419. # The fields are as follows:
  420. # H:servers which are permitted entry::hub server
  421. #
  422. # Example, permit mindijari.ca.us.dal.net to allow any servers behind it to 
  423. # connect: 
  424. H:*::nowhere.he.us.dal.net
  425. #
  426. # Example, permit irc-2.mit.edu to allow any MIT servers behind it to
  427. # connect: 
  428. H:*.mit.edu::irc-2.mit.edu
  429. #
  430. # P: [OPTIONAL]. This field allows the server to listen on various ports
  431. # (other than 7000) for connections. Any internet domain port that is
  432. # below 1024 means the ircd has to be run from inetd. The server can
  433. # listen to ports in the UNIX domain or the internet domain. If you wish
  434. # to create a port in the UNIX domain you must compile with UNIXPORT
  435. # defined in include/config.h. If you are permitting connections to a
  436. # seperate port, you can control access to that port by the host field.
  437. #
  438. # You can now bind internet ports to specific IP interface devices.  To do
  439. # this put the IP address of the interface in the host field.  To bind to
  440. # all interfaces, leave empty or put * in.
  441. #
  442. # The fields are as follows::
  443. # P:IP# or UNIX socket file:*:*:port number
  444. # for example, an internet domain socket on port 6665 for the local
  445. # computer
  446. P:127.0.0.1:*:*:6665
  447. #
  448. # This line is an example of a UNIX domain socket in /tmp
  449. P:/tmp/.ircd:*:*:6666
  450.  
  451.