sample-ngircd.conf 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. # $Id: sample-ngircd.conf,v 1.44 2008/01/07 23:02:29 alex Exp $
  2. #
  3. # This is a sample configuration file for the ngIRCd, which must be adepted
  4. # to the local preferences and needs.
  5. #
  6. # Comments are started with "#" or ";".
  7. #
  8. # A lot of configuration options in this file start with a ";". You have
  9. # to remove the ";" in front of each variable to actually set a value!
  10. # The disabled variables are shown with example values for completeness.
  11. #
  12. # Use "ngircd --configtest" (see manual page ngircd(8)) to validate that the
  13. # server interprets the configuration file as expected!
  14. #
  15. [Global]
  16. # The [Global] section of this file is used to define the main
  17. # configuration of the server, like the server name and the ports
  18. # on which the server should be listening.
  19. # Server name in the IRC network, must contain at least one dot
  20. # (".") and be unique in the IRC network. Required!
  21. Name = irc.the.net
  22. # Info text of the server. This will be shown by WHOIS and
  23. # LINKS requests for example.
  24. Info = Server Info Text
  25. # Global password for all users needed to connect to the server
  26. ;Password = abc
  27. # Information about the server and the administrator, used by the
  28. # ADMIN command. Not required by server but by RFC!
  29. ;AdminInfo1 = Description
  30. ;AdminInfo2 = Location
  31. ;AdminEMail = admin@irc.server
  32. # Ports on which the server should listen. There may be more than
  33. # one port, separated with ",". (Default: 6667)
  34. ;Ports = 6667, 6668, 6669
  35. # comma seperated list of IP addresses on which the server should
  36. # listen. Default values are:
  37. # "0.0.0.0" or (if compiled with IPv6 support) "::,0.0.0.0"
  38. # so the server listens on all IP addresses of the system by default.
  39. ;Listen = 127.0.0.1,192.168.0.1
  40. # Text file with the "message of the day" (MOTD). This message will
  41. # be shown to all users connecting to the server:
  42. ;MotdFile = /usr/local/etc/ngircd.motd
  43. # A simple Phrase (<256 chars) if you don't want to use a motd file.
  44. # If it is set no MotdFile will be read at all.
  45. ;MotdPhrase = "Hello world!"
  46. # User ID under which the server should run; you can use the name
  47. # of the user or the numerical ID. ATTENTION: For this to work the
  48. # server must have been started with root privileges! In addition,
  49. # the configuration and MOTD files must be readable by this user,
  50. # otherwise RESTART and REHASH won't work!
  51. ;ServerUID = 65534
  52. # Group ID under which the ngircd should run; you can use the name
  53. # of the group or the numerical ID. ATTENTION: For this to work the
  54. # server must have been started with root privileges!
  55. ;ServerGID = 65534
  56. # A directory to chroot in when everything is initialized. It
  57. # doesn't need to be populated if ngIRCd is compiled as a static
  58. # binary. By default ngIRCd won't use the chroot() feature.
  59. # ATTENTION: For this to work the server must have been started
  60. # with root privileges!
  61. ;ChrootDir = /var/empty
  62. # This tells ngircd to write its current process id to a file.
  63. # Note that the pidfile is written AFTER chroot and switching uid,
  64. # i. e. the Directory the pidfile resides in must be writeable by
  65. # the ngircd user and exist in the chroot directory.
  66. ;PidFile = /var/run/ngircd/ngircd.pid
  67. # After <PingTimeout> seconds of inactivity the server will send a
  68. # PING to the peer to test whether it is alive or not.
  69. ;PingTimeout = 120
  70. # If a client fails to answer a PING with a PONG within <PongTimeout>
  71. # seconds, it will be disconnected by the server.
  72. ;PongTimeout = 20
  73. # The server tries every <ConnectRetry> seconds to establish a link
  74. # to not yet (or no longer) connected servers.
  75. ;ConnectRetry = 60
  76. # Should IRC Operators be allowed to use the MODE command even if
  77. # they are not(!) channel-operators?
  78. ;OperCanUseMode = no
  79. # Mask IRC Operator mode requests as if they were coming from the
  80. # server? (This is a compatibility hack for ircd-irc2 servers)
  81. ;OperServerMode = no
  82. # Allow Pre-Defined Channels only (see Section [Channels])
  83. ;PredefChannelsOnly = no
  84. # Don't do any DNS lookups when a client connects to the server.
  85. ;NoDNS = no
  86. # try to connect to other irc servers using ipv4 and ipv6, if possible
  87. ;ConnectIPv6 = yes
  88. ;ConnectIPv4 = yes
  89. # Maximum number of simultaneous connection the server is allowed
  90. # to accept (0: unlimited):
  91. ;MaxConnections = 0
  92. # Maximum number of simultaneous connections from a single IP address
  93. # the server will accept (0: unlimited):
  94. ;MaxConnectionsIP = 5
  95. # Maximum number of channels a user can be member of (0: no limit):
  96. ;MaxJoins = 10
  97. # Maximum length of an user nick name (Default: 9, as in RFC 2812).
  98. # Please note that all servers in an IRC network MUST use the same
  99. # maximum nick name length!
  100. ;MaxNickLength = 9
  101. [Operator]
  102. # [Operator] sections are used to define IRC Operators. There may be
  103. # more than one [Operator] block, one for each local operator.
  104. # ID of the operator (may be different of the nick name)
  105. ;Name = TheOper
  106. # Password of the IRC operator
  107. ;Password = ThePwd
  108. # Optional Mask from which /OPER will be accepted
  109. ;Mask = *!ident@somewhere.example.com
  110. [Operator]
  111. # More [Operator] sections, if you like ...
  112. [Server]
  113. # Other servers are configured in [Server] sections. If you
  114. # configure a port for the connection, then this ngircd tries to
  115. # connect to to the other server on the given port; if not it waits
  116. # for the other server to connect.
  117. # There may be more than one server block, one for each server.
  118. #
  119. # Server Groups:
  120. # The ngIRCd allows "server groups": You can assign an "ID" to every
  121. # server with which you want this ngIRCd to link. If a server of a
  122. # group won't answer, the ngIRCd tries to connect to the next server
  123. # in the given group. But the ngircd never tries to connect to two
  124. # servers with the same group ID.
  125. # IRC name of the remote server, must match the "Name" variable in
  126. # the [Global] section of the other server (when using ngIRCd).
  127. ;Name = irc2.the.net
  128. # Internet host name or IP address of the peer (only required when
  129. # this server should establish the connection).
  130. ;Host = connect-to-host.the.net
  131. # IP address to use as _source_ address for the connection. if unspecified,
  132. # ngircd will let the operating system pick an address.
  133. ;Bind = 10.0.0.1
  134. # Port of the server to which the ngIRCd should connect. If you
  135. # assign no port the ngIRCd waits for incoming connections.
  136. ;Port = 6667
  137. # Own password for the connection. This password has to be configured
  138. # as "PeerPassword" on the other server.
  139. ;MyPassword = MySecret
  140. # Foreign password for this connection. This password has to be
  141. # configured as "MyPassword" on the other server.
  142. ;PeerPassword = PeerSecret
  143. # Group of this server (optional)
  144. ;Group = 123
  145. # Set the "Passive" option to "yes" if you don't want this ngIRCd to
  146. # connect to the configured peer (same as leaving the "Port" variable
  147. # empty). The advantage of this option is that you can actually configure
  148. # a port an use the IRC command CONNECT more easily to manually connect
  149. # this specific server later.
  150. ;Passive = no
  151. [Server]
  152. # More [Server] sections, if you like ...
  153. [Channel]
  154. # Pre-defined channels can be configured in [Channel] sections.
  155. # Such channels are created by the server when starting up and even
  156. # persist when there are no more members left.
  157. # Persistent channels are marked with the mode 'P', which can be set
  158. # and unset by IRC operators like other modes on the fly.
  159. # There may be more than one [Channel] block, one for each channel.
  160. # Name of the channel
  161. ;Name = #TheName
  162. # Topic for this channel
  163. ;Topic = a great topic
  164. # Initial channel modes
  165. ;Modes = tnk
  166. # initial channel password (mode k)
  167. ;Key = Secret
  168. # maximum users per channel (mode l)
  169. ;MaxUsers = 23
  170. [Channel]
  171. # More [Channel] sections, if you like ...
  172. # -eof-