home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Online / Unreal / ircd.conf < prev    next >
Text File  |  2000-08-20  |  20KB  |  482 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.6.1 2000/05/28 08:55:18 cmunk 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 Unreal3.0-Morrigan
  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 with the Unreal3.0 IRCD
  34. #
  35. #
  36. # The options for whether a line is needed or not are: 
  37. # MANDATORY: you absolutely MUST have this line
  38. # NETWORKED: you must have this line if you are connecting this irc
  39. #            server to any other server (servers can run standalone).
  40. # SUGGESTED: it is highly suggested that you use this line
  41. # OPTIONAL: it's completely up to you whether to define this or not
  42. # DISCOURAGED: you really really should not use this line if at all
  43. #              possible. 
  44. # OBSOLETE: an old or out of date line that isn't needed.
  45. #
  46. # MANDATORY lines are absolute *musts*, that is, if you do not have this
  47. # line then your server will not work properly. SUGGESTED lines are
  48. # close-to-mandatory (that is, the server will run without it, but you are
  49. # highly encouraged to use these lines).
  50. #
  51. # Note that "*" in a field indicates an "unused" field.
  52. #
  53. #
  54. # ========================================================================
  55. # NOTE! this entire configuration file is read UPSIDE-DOWN! So if you have
  56. # to put something in a specific order (for example, client-connection
  57. # lines), put them in reverse order!
  58. # ========================================================================
  59. #
  60. #
  61. # M: [MANDATORY]. This line sets your server's name, description, port
  62. # number, and IP address to bind to. Fields, in order, are: 
  63. #
  64. # If you are compiling this server for use on dalnet, port number 7000
  65. # as the default is recommended.  If you leave IP address field blank or
  66. # *, it defaults to binding all local IP addresses on the machine.
  67. #
  68. # M:hostname:IP:Description Of Your Server:7000
  69. #
  70. M:server.my.net:*:My IRC Server:7000
  71. #
  72. # A: [MANDATORY]. This line lists your administrative information
  73. # (contact address, etc). To view this information, /admin (server) will
  74. # show it to you.
  75. #
  76. # The A: line has no set information, in fact, you can put arbitrary text
  77. # in there if you wish (it is encouraged that you put at *least* a contact
  78. # address for a person responsible for the irc server, however)
  79. #
  80. A:Generic Internet Access:Admin John Doe:jdoe@generic.com
  81. #
  82. # Y: [SUGGESTED]. These lines define connection classes. Connection
  83. # classes allow you to fine-tune your client and server connections. It is
  84. # suggested that clients and servers be placed in seperate classes, and if
  85. # you have lots of server connections (if you do have lots of servers you
  86. # shouldn't be reading this file :-) each set of servers (defined
  87. # arbitrarily by you) should have its own class. If you have clients
  88. # coming in from lots of different sites, you may want to seperate them
  89. # out into classes. For instance, you may want to put local users in one
  90. # class, with remote users in another class.
  91. #
  92. # The class numbers are not arbitrary. In auto-connecting servers -- that
  93. # is, servers that you have a port number (e.g. 6667) on the end of the C:
  94. # line (see below) the higher the number the higher the priority in
  95. # auto-connecting.
  96. #
  97. # The fields in order are: class number, ping frequency (in seconds),
  98. # connect frequency (in seconds), maximum number of links (used for
  99. # auto-connecting, and for limiting the number of clients in that class),
  100. # and sendq (this overrides any value set in include/config.h for #define
  101. # MAXSENDQLENGTH).
  102. #
  103. # Note that it is a good idea to have ping frequency the same at both ends
  104. # of the link.
  105. # in this case, connect-frequency is 0 indicating that this is a client
  106. # class (servers never connect to clients, it is the other way around).
  107. Y:1:90:0:20:100000
  108. #
  109. # These are the recommended server Y:lines for connecting to dalnet.
  110. # In addition to these you should have at *least* one client class, and one
  111. # oper class (see O:lines).  By convention on dalnet, these are usually
  112. # numbered from 5 to 10.
  113. #
  114. # Class 50 - Hub to hub, autoconnect
  115. Y:50:90:60:1:4000000
  116. #
  117. # Class 51 - Hub to hub, no autoconnect
  118. Y:51:90:60:0:4000000
  119. #
  120. # Class 30 - Hub to US leaf
  121. Y:30:90:0:0:3500000 
  122. #
  123. # Class 32 - Hub to EU leaf
  124. Y:32:180:0:0:3500000
  125. #
  126. # Class 34 - Hub to AU leaf
  127. Y:34:300:0:0:3500000
  128. #
  129. # Class 40 - US leaf to hub, autoconnect
  130. Y:40:90:90:1:3500000
  131. #
  132. # Class 41 - US leaf to hub, no autoconnect
  133. Y:41:90:90:0:3500000
  134. #
  135. # Class 42 - EU leaf hub
  136. Y:42:180:90:1:3500000
  137. #
  138. # Class 44 - AU leaf to hub
  139. Y:44:300:120:1:3500000
  140. #
  141. # I: [MANDATORY]. The I: lines are client-authorization lines. Without
  142. # these lines, no clients will be able to connect to your server.
  143. # Wildcards ("*") are permitted. Passwords are also permitted (clients can
  144. # be configured to send passwords).
  145. # Ident (for more information on this, see rfc1413) can also be used by
  146. # placing a @ in the appropriate fields.
  147. #
  148. # Fields are as follows:
  149. # I:IP-address-mask:optional password:domain-mask::connection class (opt)
  150. #
  151. # With a password..... This will allow anyone from anywhere to connect
  152. # as long as they know the password ("foobar"). Note listing this I: line
  153. # first, it will be read *last*, meaning it is the "fall-through". That
  154. # is, anyone who doesn't match the I: lines listed below must know the
  155. # password ("foobar") to connect.
  156. #
  157. I:*@*:foobar:*@*::1
  158. # This is a standard vanilla I: line which will permit anyone with an IP
  159. # address starting with 205.133 OR with a hostname ending in 
  160. # .toledolink.com to connect to the server. NOTE, the ircd matches on the 
  161. # *right-most* match, so if I connect as rmiller@glass.toledolink.com 
  162. # (which is rmiller@205.133.127.8) I will show up on irc as 
  163. # rmiller@glass.toledolink.com since that is the first match it found. 
  164. # (Even though the second match is valid). 
  165. I:205.133.*::*.toledolink.com::1
  166. # using ident
  167. I:*@205.133.*::*@*.toledolink.com::1
  168. # and you can even specify just certain usernames running ident (as long
  169. # as the client's site is running the ident daemon):
  170. I:NOMATCH::rmiller@glass.toledolink.com::1
  171. # putting NOMATCH in the first field will stop the ircd from matching
  172. # automatically against the IP address and it will force the server to
  173. # match against the hostname. (the "NOMATCH" string is not mandatory, you
  174. # can use any arbitrary text in the first field).
  175. I:*@*:ONE:*@*::1
  176. # putting the ONE in the password field makes it so that only 1 user matching
  177. # that host or IP can connect through that I:line.
  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. # L = 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. # G = oper can send global server notices(/notce $*.my.net message)
  215. # S = oper can join unlimited amount of channels
  216. # A = admin
  217. # u = oper can set /umode +c
  218. # f = oper can set /umode +f
  219. # ^ = oper can set /umode +I
  220. # e = oper can set /umode +e
  221. # W = oper can set /umode +W
  222. # H = oper gets auto +x on /oper
  223. # o = local oper, flags included: rhgwlckbBnuf
  224. # O = global oper, flags included: oRDCK
  225. # a = services admin, access to /samode
  226. # C = co admin
  227. # T = tech admin
  228. # A = admin
  229. # N = network admin access to remote /rehash and remote /restart and a bunch more
  230. # * = flags included: AaNCTzSHW^
  231.  
  232. #
  233. # This is a plain vanilla O:line:
  234. O:*.toledolink.com:nopassword:Russell:*:10
  235. #
  236. # and this line forces ident:
  237. O:rmiller@glass.toledolink.com:nopassword:Russell::10
  238. # This line is a generic "local operator", because of the flags, the only
  239. # thing that really makes them global operators, is if they have the flags
  240. # CKN set in their access flags.
  241. #
  242. # this line permits the nickname "jhs" with the password of "ITBites" to
  243. # be a local operator only (be able to issue commands locally -- can /kill
  244. # and /squit and /connect -- but *only* locally)
  245. #
  246. O:*.something.net:ITBites:jhs:o:10
  247. #
  248. # a crypted password line (NOTE that if you have crypted passwords, *all*
  249. # of you passwords must be crypted! In fact, if you are getting an error
  250. # "Incorrect Password" it may well be because crypted passwords are
  251. # defined and you have used plaintext.  So my example of plaintext and
  252. # crypted strings in the same IRC server configuration file is an
  253. # impossibility (but it is just theoretical, which is why I explained both).
  254. #
  255. O:rmiller@*.toledolink.com:T0eiVgHrqeKTQ:Russell::10
  256. #
  257. # U: [OPTIONAL]. This line defines the servers that IRC recognizes as being
  258. # allowed to make various changes to the IRC environment (mode changes, for
  259. # example), without complaining or otherwise obstructing them. For example,
  260. # DALnet requires the following line:
  261. U:services.my.net:*:*
  262. #
  263. # X: [ENCOURAGED]. This line defines the password that an operator must use
  264. # to restart or die the server. Note that they still myst have they R and D
  265. # flags. This is just a security precaution against  accidentaly typing
  266. # /die or /restart
  267. # X:<password for /DIE>:<password for /RESTART>
  268. X:diepass:restartpass
  269.  
  270. # C: [NETWORKED]. These lines define what servers your server tries to
  271. # connect to. 
  272. # N: [NETWORKED]. These lines define what servers your server permits
  273. # connections to be initiated from. 
  274. # C/N lines MUST be used in pairs. You cannot have one without the other. 
  275. #
  276. # C: lines contain the following fields:
  277. # C:remote server's hostname:passwd:remote server's name:port:conn class
  278. # (connection class)
  279. # N: lines contain the following fields:
  280. # N:remote server's hostname:passwd:remote server's name:host mask:conn class
  281. # (connection class)
  282. # "host mask" is the number of parts in *your* hostname to mask to. For
  283. # instance, with my servername being "csa.bu.edu", if I wanted to present
  284. # my servername to be "*.bu.edu" I would have a host-mask portion of "1". 
  285. #
  286. # it is *strongly* advised that your C/N line passwords be different for
  287. # security's sake.
  288. #
  289. # ident is allowed in the server's hostname part of the field.
  290. # these lines tell the server to automatically (note the port number, that
  291. # means automatic connection) connect to server2.my.net:
  292. C:foobar@server2.my.net:bigspark:server2.my.net:7000:32
  293. N:foobar@server2.my.net:bigalpha:server2.my.net::32
  294. #
  295. # This server's connection lines are more vanilla, masking the host to
  296. # *.toledolink.com (as described above):
  297. C:*.my.net:camelsrk00l:*.my.net::32
  298. N:*.my.net:andsoarellamas:*.my.net:1:32
  299. #
  300. # K: [OPTIONAL]. These lines define user@host patterns to be banned from
  301. # this particular server (with an optional time field). Note that K: lines
  302. # are *not* global, and if you ban a user they can still use any other IRC
  303. # server (unless they have specifically been banned there as well).
  304. #
  305. # The time field (same as reason) is only used if you #define
  306. # TIMED_KLINES in config.h, and even then they are discouraged.
  307. # the fields are defined as:
  308. # K:hostmask:reason:username
  309. # wildcards are permitted in any one of the fields, in other words, you can
  310. # K:*::* if you wanted (but your server wouldn't be used much ;-)
  311. #
  312. # Spaces are permitted in the reason field (you don't have to use _).
  313. # The /stats command has been modified to replace all spaces with _'s when
  314. # doing a /stats k. K:lines also allows you to specify a file to play to the
  315. # user when they are K:lined. To use this feature the reason must be in the
  316. # format of |filename. the filename must be kc.anythinghere, this is to prevent
  317. # the sending of text files such as your ircd.conf.
  318. #
  319. # This K: line bans the username "hrose" (the wildcards are used to make
  320. # sure that any ident-checking character will match) on any machine from
  321. # the University of Boston.
  322. K:*.bu.edu:Hacking #UnrealIRCD:*hrose*
  323. #
  324. # This K: line bans any users from acs*.bu.edu between the hours of 8am
  325. # and 12pm and 1pm and 5pm (the time is always the server's local time).
  326. # Time-based K-lines such as this require TIMED_KLINES in config.h to be
  327. # #defined.
  328. K:acs*.bu.edu:0800-1200,1300-1700:*
  329. # Note that 24 hour time is used (no "AM" or "PM").
  330. # This K: line bans all *.foobar.com users and will play the file |kc.flooding
  331. # to the user as the reason.
  332. K:*.foobar.com:|kc.flooding:*
  333. # E: [OPTIONAL]. This allows kline exceptions, even if a person matches
  334. # a K:line or /kline they are still allowed to connect.
  335. #
  336. # The fields are as follows
  337. # E:hostmask:reason:usermask
  338. E:foo.bar.com:Oper on this server:*john21*
  339. #
  340. #
  341. # q: [DISCOURAGED]. These lines "quarantine" specified servers.  Because
  342. # of the way they operates, the same q: lines MUST be installed by
  343. # everyone or the net will keep breaking. I CANNOT EMPHASIZE THIS ENOUGH.
  344. # Do NOT use q: lines lightly!
  345. #
  346. # This is NOT a nick q-line, if you wish to quarantine a NICK, see below.
  347. #
  348. # The fields are as follows:
  349. # q:*:reason why quarantine is in place:servername
  350. #
  351. q::this server is too slow and lags the net:cm5.eng.umd.edu
  352. #
  353. # Q: [OPTIONAL]. Different from the above type of q: line, these lines
  354. # prevent users on your server from picking certain nicks. This is useful
  355. # if your network has 'reserved' nicknames that should not be taken by
  356. # normal users.  Note the difference in capitalization and BE CAREFUL!
  357. #
  358. # The fields are as follows:
  359. # Q:*:reason why quarantine is in place:nickname
  360. #
  361. # For example, You might want to use the following lines:
  362. Q::Reserved for services:ChanServ
  363. Q::Reserved for services:NickServ
  364. Q::Reserved for services:MemoServ
  365. Q::Reserved for services:OperServ
  366. Q::Reserved for services:HelpServ
  367. Q::Reserved for services:StatServ
  368. Q::Reserved for operators:IRCop
  369. Q::Reserved for operators:*Oper*
  370. Q::Reserved for administrators:Admin*
  371. #
  372. # T: [OPTIONAL]. These allow you to specify different MOTD and RULES files
  373. # based on a users host.  This is made so you can have MOTDs in different
  374. # languages so all users can see the MOTD and understand it.
  375. #
  376. # The fields are as follows:
  377. # T:host:motdfile:rulesfile
  378. #
  379. # T:*.fr:french.motd:french.rules
  380. #
  381. #
  382. # e: [OPTIONAL]. These lines allow you to specify a host which will not 
  383. # be scanned by the proxy scanner when they connect. This is made so you
  384. # can allow some open proxys to connect while still killing others. Make
  385. # sure you use an IP and not a host for this line or it will not work.
  386. # NOTE: These are not the same as E:lines.
  387. #
  388. # The fields are as follows:
  389. # e:IP:*:*
  390. #
  391. # e:123.123.123:*:*
  392. #
  393. #
  394. # Z: [DISCOURAGED]. These block ALL incoming connections from a certain
  395. # IP address mask.  They can stop users who log on and issue the SERVER
  396. # command a couple of times just to annoy irc ops.  They are more
  397. # powerful that K-lines because they can stop users before they've had a
  398. # chance to register.  This works on servers, SO BE VERY CAREFUL WITH
  399. # YOUR Z-LINE MASKS.  Z-lines are a LAST RESORT.  They are much too
  400. # dangerous and powerful to be using them instead of K-lines and akills.
  401. #
  402. # NOTE 1: Z-lines do NOT work on host names!  Only IP addresses.
  403. # NOTE 2: Z-lines are part of /stats k.  
  404. # NOTE 3: The :* at the end is REQUIRED.  Not using it will cause both
  405. # ircd and chkconf to segfault without saying why.
  406. #
  407. # Syntax:
  408. # Z:IP mask:reason for zapping:*
  409. Z:127.0.0.1:Please don't log on from the local machine:*
  410. #
  411. # L: [OPTIONAL]. These lines "Leaf" specified servers. They are only
  412. # useful if you are a non-leaf site yourself. There are two ways you can
  413. # use L: lines. The first will limit one particular site to a particular
  414. # tree depth (including 0, which would mean the server has to connect with
  415. # no servers linked behind it otherwise the connection will fail). The
  416. # second will allow you to be selective about which other servers you wish
  417. # the connecting server to behave as a leaf towards.
  418. #
  419. # The fields are as follows:
  420. # L:disallow connections to this hostmask::server name:depth
  421. # For example, this will force kaja.gi.alaska.edu to connect only as a
  422. # leaf (if it is not a leaf, the link will be dropped):
  423. L:::kaja.gi.alaska.edu
  424. # This line will force cm5.eng.umd.edu to have a depth of only 1 below it
  425. # (that is, it is allowed to have only leaves connected to it):
  426. L:::cm5.eng.umd.edu:1
  427. #
  428. # This line will prohibit anything matching *.edu to be connected behind
  429. # any server matching *.au:
  430. L:*.edu::*.au
  431. #
  432. # H: [OPTIONAL]. These lines define who you permit to act as a "hub" to
  433. # you (that is, who you permit to connect non-leafed servers to you).
  434. #
  435. # the first field may use wildcards, the third field *must* be an exact
  436. # match for a server's name (NOT a server's hostname, if they differ, the
  437. # server's name must be used). If the servername is a wildcard (e.g. *.au)
  438. # that is an acceptable name for the third field. 
  439. #
  440. # The fields are as follows:
  441. # H:servers which are permitted entry::hub server
  442. #
  443. # Example, permit server.my.net to allow any servers behind it to 
  444. # connect: 
  445. H:*::server2.my.net
  446. #
  447. # Example, permit irc-2.mit.edu to allow any MIT servers behind it to
  448. # connect: 
  449. H:*.mit.edu::irc-2.mit.edu
  450. #
  451. # P: [OPTIONAL]. This field allows the server to listen on various ports
  452. # (other than 7000) for connections. Any internet domain port that is
  453. # below 1024 means the ircd has to be run from inetd. The server can
  454. # listen to ports in the UNIX domain or the internet domain. If you wish
  455. # to create a port in the UNIX domain you must compile with UNIXPORT
  456. # defined in include/config.h. If you are permitting connections to a
  457. # seperate port, you can control access to that port by the host field.
  458. #
  459. # You can now bind internet ports to specific IP interface devices.  To do
  460. # this put the IP address of the interface in the host field.  To bind to
  461. # all interfaces, leave empty or put * in.
  462. #
  463. # The fields are as follows::
  464. # P:IP# or UNIX socket file:*:*:port number
  465. # for example, an internet domain socket on port 6665 for the local
  466. # computer
  467. P:127.0.0.1:*:*:6665
  468. #
  469. # This line is an example of a UNIX domain socket in /tmp
  470. P:/tmp/.ircd:*:*:6666
  471.  
  472.