ngircd.conf.5 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. .\"
  2. .\" $Id: ngircd.conf.5,v 1.20 2005/09/02 14:39:00 fw Exp $
  3. .\"
  4. .TH ngircd.conf 5 "August 2005" ngircd "ngIRCd Manual"
  5. .SH NAME
  6. ngircd.conf \- configuration file of ngIRCd
  7. .SH SYNOPSIS
  8. .B /usr/local/etc/ngircd.conf
  9. .SH DESCRIPTION
  10. .BR ngircd.conf
  11. is the configuration file of the
  12. .BR ngircd (8)
  13. Internet Relay Chat (IRC) daemon which you should adept to your local
  14. preferences and needs.
  15. .SH "FILE FORMAT"
  16. The file consists of sections and parameters. A section begins with the name
  17. of the section in square brackets and continues until the next section
  18. begins.
  19. .PP
  20. Sections contain parameters of the form
  21. .PP
  22. .RS
  23. .I name
  24. =
  25. .I value
  26. .RE
  27. .PP
  28. Empty lines and any line beginning with a semicolon (';') or a hash ('#')
  29. character is treated as a comment and will be ignored.
  30. .PP
  31. The file format is line-based - that means, each newline-terminated line
  32. represents either a comment, a section name or a parameter.
  33. .PP
  34. Section and parameter names are not case sensitive.
  35. .SH "SECTION OVERVIEW"
  36. The file can contain blocks of four types: [Global], [Operator], [Server],
  37. and [Channel].
  38. .PP
  39. In the
  40. .I [Global]
  41. section, there is the main configuration like the server name and the
  42. ports on which the server should be listening. IRC operators of this
  43. server are defined in
  44. .I [Operator]
  45. blocks.
  46. .I [Server]
  47. is the section where server links are configured. And
  48. .I [Channel]
  49. blocks are used to configure pre-defined ("persistent") IRC channels.
  50. .PP
  51. There can be more than one [Operator], [Server] and [Channel] sections
  52. per configuration file, but only one [Global] section.
  53. .SH [GLOBAL]
  54. The
  55. .I [Global]
  56. section is used to define the server main configuration, like the server
  57. name and the ports on which the server should be listening.
  58. .TP
  59. \fBName\fR
  60. Server name in the IRC network
  61. .TP
  62. \fBInfo\fR
  63. Info text of the server. This will be shown by WHOIS and LINKS requests for
  64. example.
  65. .TP
  66. \fBAdminInfo1\fR, \fBAdminInfo2\fR, \fBAdminEMail\fR
  67. Information about the server and the administrator, used by the ADMIN
  68. command.
  69. .TP
  70. \fBPorts\fR
  71. Ports on which the server should listen. There may be more than one port,
  72. separated with ','. Default: 6667.
  73. .TP
  74. \fBListen\fR
  75. The IP address on which the server should listen. Default is empty, so
  76. the server listens on all configured IP addresses and interfaces.
  77. .TP
  78. \fBMotdFile\fR
  79. Text file with the "message of the day" (MOTD). This message will be shown
  80. to all users connecting to the server.
  81. .TP
  82. \fBMotdPhrase\fR
  83. A simple Phrase (<256 chars) if you don't want to use a MOTD file.
  84. If it is set no MotdFile will be read at all.
  85. .TP
  86. \fBServerUID\fR
  87. User ID under which the server should run; you can use the name of the user
  88. or the numerical ID.
  89. .PP
  90. .RS
  91. .B Attention:
  92. .br
  93. For this to work the server must have been
  94. started with root privileges! In addition, the configuration and MOTD files
  95. must be readable by this user, otherwise RESTART and REHASH won't work!
  96. .RE
  97. .TP
  98. \fBServerGID\fR
  99. Group ID under which the ngIRCd should run; you can use the name of the
  100. group or the numerical ID.
  101. .PP
  102. .RS
  103. .B Attention:
  104. .br
  105. For this to work the server must have
  106. been started with root privileges!
  107. .RE
  108. .TP
  109. \fBChrootDir\fR
  110. A directory to chroot in when everything is initialized. It doesn't need
  111. to be populated if ngIRCd is compiled as a static binary. By default ngIRCd
  112. won't use the chroot() feature.
  113. .PP
  114. .RS
  115. .B Attention:
  116. .br
  117. For this to work the server must have
  118. been started with root privileges!
  119. .RE
  120. .TP
  121. \fBPidFile\fR
  122. This tells ngIRCd to write its current process ID to a file. Note that the
  123. pidfile is written AFTER chroot and switching the user ID, i. e. the
  124. directory the pidfile resides in must be writeable by the ngIRCd user and
  125. exist in the chroot directory (if configured, see above).
  126. .RE
  127. .TP
  128. \fBPingTimeout\fR
  129. After <PingTimeout> seconds of inactivity the server will send a PING to
  130. the peer to test whether it is alive or not. Default: 120.
  131. .TP
  132. \fBPongTimeout\fR
  133. If a client fails to answer a PING with a PONG within <PongTimeout>
  134. seconds, it will be disconnected by the server. Default: 20.
  135. .TP
  136. \fBConnectRetry\fR
  137. The server tries every <ConnectRetry> seconds to establish a link to not yet
  138. (or no longer) connected servers. Default: 60.
  139. .TP
  140. \fBOperCanUseMode\fR
  141. Should IRC Operators be allowed to use the MODE command even if they are
  142. not(!) channel-operators? Default: no.
  143. .TP
  144. \fBOperServerMode\fR
  145. If OperCanUseMode is enabled, this may lead the compatibility problems with
  146. Servers that run the ircd-irc2 Software. This Option "masks" mode requests
  147. by non-chanops as if they were coming from the server. Default: no.
  148. .TP
  149. \fBMaxConnections\fR
  150. Maximum number of simultaneous connection the server is allowed to accept
  151. (<=0: unlimited). Default: -1.
  152. .TP
  153. \fBMaxConnectionsIP\fR
  154. Maximum number of simultaneous connections from a single IP address that
  155. the server will accept (<=0: unlimited). This configuration options lowers
  156. the risk of denial of service attacks (DoS). Default: 5.
  157. .TP
  158. \fBMaxJoins\fR
  159. Maximum number of channels a user can be member of (<=0: no limit).
  160. Default: 10.
  161. .SH [OPERATOR]
  162. .I [Operator]
  163. sections are used to define IRC Operators. There may be more than one
  164. .I [Operator]
  165. block, one for each local operator.
  166. .TP
  167. \fBName\fR
  168. ID of the operator (may be different of the nick name).
  169. .TP
  170. \fBPassword\fR
  171. Password of the IRC operator.
  172. .TP
  173. \fBMask\fR
  174. Mask that is to be checked before an /OPER for this account is accepted.
  175. Example: nick!ident@*.example.com
  176. .SH [SERVER]
  177. Other servers are configured in
  178. .I [Server]
  179. sections. If you configure a port for the connection, then this ngIRCd
  180. tries to connect to to the other server on the given port; if not, it waits
  181. for the other server to connect.
  182. .PP
  183. The ngIRCd allows "server groups": You can assign an "ID" to every server
  184. with which you want this ngIRCd to link. If a server of a group won't
  185. answer, the ngIRCd tries to connect to the next server in the given group.
  186. But ngIRCd never tries to connect to two servers with the same group ID.
  187. .PP
  188. There may be more than one
  189. .I [Server]
  190. block.
  191. .TP
  192. \fBName\fR
  193. IRC name of the server
  194. .TP
  195. \fBHost\fR
  196. Internet host name of the peer
  197. .TP
  198. \fBPort\fR
  199. Port of the server to which the ngIRCd should connect. If you assign no port
  200. the ngIRCd waits for incoming connections.
  201. .TP
  202. \fBMyPassword\fR
  203. Own password for this connection. This password has to be configured as
  204. "PeerPassword" on the other server. Must not have ':' as first character.
  205. .TP
  206. \fBPeerPassword\fR
  207. Foreign password for this connection. This password has to be configured as
  208. "MyPassword" on the other server.
  209. .TP
  210. \fBGroup\fR
  211. Group of this server (optional).
  212. .SH [CHANNEL]
  213. Pre-defined channels can be configured in
  214. .I [Channel]
  215. sections. Such channels are created by the server when starting up and even
  216. persist when there are no more members left.
  217. .PP
  218. Persistent channels are marked with the mode 'P', which can be set and unset
  219. by IRC operators like other modes on the fly.
  220. .PP
  221. There may be more than one
  222. .I [Channel]
  223. block.
  224. .TP
  225. \fBName\fR
  226. Name of the channel
  227. .TP
  228. \fBTopic\fR
  229. Topic for this channel
  230. .TP
  231. \fBModes\fR
  232. Initial channel modes.
  233. .SH HINTS
  234. It's wise to use "ngircd --configtest" to validate the configuration file
  235. after changing it. See
  236. .BR ngircd (8)
  237. for details.
  238. .SH AUTHOR
  239. Alexander Barton,
  240. .UR mailto:alex@barton.de
  241. alex@barton.de
  242. .UE
  243. .br
  244. Homepage:
  245. .UR http://ngircd.barton.de/
  246. http://ngircd.barton.de/
  247. .UE
  248. .SH "SEE ALSO"
  249. .BR ngircd (8)
  250. .\"
  251. .\" -eof-