sample-ngircd.conf 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. # $Id: sample-ngircd.conf,v 1.33 2005/03/15 16:58:01 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. # Use "ngircd --configtest" (see manual page ngircd(8)) to validate that the
  9. # server interpreted the configuration file as expected!
  10. #
  11. [Global]
  12. # The [Global] section of this file is used to define the main
  13. # configuration of the server, like the server name and the ports
  14. # on which the server should be listening.
  15. # Server name in the IRC network, must contain at least one dot
  16. # (".") and be unique in the IRC network. Required!
  17. Name = irc.the.net
  18. # Info text of the server. This will be shown by WHOIS and
  19. # LINKS requests for example.
  20. Info = Server Info Text
  21. # Global password for all users needed to connect to the server
  22. ;Password = abc
  23. # Information about the server and the administrator, used by the
  24. # ADMIN command. Not required by server but by RFC!
  25. ;AdminInfo1 = Description
  26. ;AdminInfo2 = Location
  27. ;AdminEMail = admin@irc.server
  28. # Ports on which the server should listen. There may be more than
  29. # one port, separated with ",". (Default: 6667)
  30. ;Ports = 6667, 6668, 6669
  31. # IP address on which the server should listen. (Default: empty,
  32. # so the server listens on all IP addresses of the system)
  33. ;Listen = 1.2.3.4
  34. # Text file with the "message of the day" (MOTD). This message will
  35. # be shown to all users connecting to the server:
  36. ;MotdFile = /usr/local/etc/ngircd.motd
  37. # A simple Phrase (<256 chars) if you don't want to use a motd file.
  38. # If it is set no MotdFile will be read at all.
  39. ;MotdPhrase = "Hello world!"
  40. # User ID under which the server should run; you can use the name
  41. # of the user or the numerical ID. ATTENTION: For this to work the
  42. # server must have been started with root privileges! In addition,
  43. # the configuration and MOTD files must be readable by this user,
  44. # otherwise RESTART and REHASH won't work!
  45. ;ServerUID = 65534
  46. # Group ID under which the ngircd should run; you can use the name
  47. # of the group or the numerical ID. ATTENTION: For this to work the
  48. # server must have been started with root privileges!
  49. ;ServerGID = 65534
  50. # A directory to chroot in when everything is initialized. It
  51. # doesn't need to be populated if ngIRCd is compiled as a static
  52. # binary. By default ngIRCd won't use the chroot() feature.
  53. # ATTENTION: For this to work the server must have been started
  54. # with root privileges!
  55. ;ChrootDir = /var/empty
  56. # This tells ngircd to write its current process id to a file.
  57. # Note that the pidfile is written AFTER chroot and switching uid,
  58. # i. e. the Directory the pidfile resides in must be writeable by
  59. # the ngircd user and exist in the chroot directory.
  60. ;PidFile = /var/run/ngircd/ngircd.pid
  61. # After <PingTimeout> seconds of inactivity the server will send a
  62. # PING to the peer to test whether it is alive or not.
  63. ;PingTimeout = 120
  64. # If a client fails to answer a PING with a PONG within <PongTimeout>
  65. # seconds, it will be disconnected by the server.
  66. ;PongTimeout = 20
  67. # The server tries every <ConnectRetry> seconds to establish a link
  68. # to not yet (or no longer) connected servers.
  69. ;ConnectRetry = 60
  70. # Should IRC Operators be allowed to use the MODE command even if
  71. # they are not(!) channel-operators?
  72. ;OperCanUseMode = no
  73. # Mask IRC Operator mode requests as if they were coming from the
  74. # server? (This is a compatibility hack for ircd-irc2 servers)
  75. ;OperServerMode = no
  76. # Maximum number of simultaneous connection the server is allowed
  77. # to accept (<=0: unlimited):
  78. ;MaxConnections = -1
  79. # Maximum number of simultaneous connections from a single IP address
  80. # the server will accept (<=0: unlimited):
  81. ;MaxConnectionsIP = 5
  82. # Maximum number of channels a user can be member of (<=0: no limit):
  83. ;MaxJoins = 10
  84. [Operator]
  85. # [Operator] sections are used to define IRC Operators. There may be
  86. # more than one [Operator] block, one for each local operator.
  87. # ID of the operator (may be different of the nick name)
  88. ;Name = TheOper
  89. # Password of the IRC operator
  90. ;Password = ThePwd
  91. # Optional Mask from which /OPER will be accepted
  92. ;Mask = *!ident@somewhere.example.com
  93. [Operator]
  94. # More [Operator] sections, if you like ...
  95. [Server]
  96. # Other servers are configured in [Server] sections. If you
  97. # configure a port for the connection, then this ngircd tries to
  98. # connect to to the other server on the given port; if not it waits
  99. # for the other server to connect.
  100. # There may be more than one server block.
  101. #
  102. # Server Groups:
  103. # The ngIRCd allows "server groups": You can assign an "ID" to every
  104. # server with which you want this ngIRCd to link. If a server of a
  105. # group won't answer, the ngIRCd tries to connect to the next server
  106. # in the given group. But the ngircd never tries to connect to two
  107. # servers with the same group ID.
  108. # IRC name of the server
  109. ;Name = irc2.the.net
  110. # Internet host name of the peer
  111. ;Host = connect-to-host.the.net
  112. # Port of the server to which the ngIRCd should connect. If you
  113. # assign no port the ngIRCd waits for incoming connections.
  114. ;Port = 6666
  115. # Own password for the connection. This password has to be configured
  116. # as "PeerPassword" on the other server.
  117. ;MyPassword = MySecret
  118. # Foreign password for this connection. This password has to be
  119. # configured as "MyPassword" on the other server.
  120. ;PeerPassword = PeerSecret
  121. # Group of this server (optional)
  122. ;Group = 123
  123. [Server]
  124. # More [Server] sections, if you like ...
  125. [Channel]
  126. # Pre-defined channels can be configured in [Channel] sections.
  127. # Such channels are created by the server when starting up and even
  128. # persist when there are no more members left.
  129. # Persistent channels are marked with the mode 'P', which can be set
  130. # and unset by IRC operators like other modes on the fly.
  131. # There may be more than one [Channel] block.
  132. # Name of the channel
  133. ;Name = #TheName
  134. # Topic for this channel
  135. ;Topic = a great topic
  136. # Initial channel modes
  137. ;Modes = tn
  138. [Channel]
  139. # More [Channel] sections, if you like ...
  140. # -eof-