Blame


1 6dacec7d 2005-01-17 alex # $Id: sample-ngircd.conf,v 1.29 2005/01/17 12:51:17 alex Exp $
2 0fa00df6 2001-12-31 alex
3 c46f623d 2002-03-12 alex #
4 05170bc9 2003-12-19 alex # This is a sample configuration file for the ngIRCd, which must be adepted
5 05170bc9 2003-12-19 alex # to the local preferences and needs.
6 c46f623d 2002-03-12 alex #
7 5b333085 2003-01-04 alex # Comments are started with "#" or ";".
8 c46f623d 2002-03-12 alex #
9 05170bc9 2003-12-19 alex # Use "ngircd --configtest" (see manual page ngircd(8)) to validate that the
10 05170bc9 2003-12-19 alex # server interpreted the configuration file as expected!
11 bf84670a 2002-11-08 alex #
12 c46f623d 2002-03-12 alex
13 969e5f1c 2002-01-06 alex [Global]
14 10bb43c6 2003-03-10 alex # The [Global] section of this file is used to define the main
15 10bb43c6 2003-03-10 alex # configuration of the server, like the server name and the ports
16 10bb43c6 2003-03-10 alex # on which the server should be listening.
17 5b333085 2003-01-04 alex
18 e541da2a 2003-04-29 alex # Server name in the IRC network, must contain at least one dot
19 05170bc9 2003-12-19 alex # (".") and be unique in the IRC network. Required!
20 969e5f1c 2002-01-06 alex Name = irc.the.net
21 5b333085 2003-01-04 alex
22 10bb43c6 2003-03-10 alex # Info text of the server. This will be shown by WHOIS and
23 10bb43c6 2003-03-10 alex # LINKS requests for example.
24 969e5f1c 2002-01-06 alex Info = Server Info Text
25 927e626f 2003-04-27 alex
26 927e626f 2003-04-27 alex # Global password for all users needed to connect to the server
27 927e626f 2003-04-27 alex ;Password = abc
28 efeba4a7 2002-09-16 alex
29 10bb43c6 2003-03-10 alex # Information about the server and the administrator, used by the
30 05170bc9 2003-12-19 alex # ADMIN command. Not required by server but by RFC!
31 5b333085 2003-01-04 alex ;AdminInfo1 = Description
32 5b333085 2003-01-04 alex ;AdminInfo2 = Location
33 efeba4a7 2002-09-16 alex ;AdminEMail = admin@irc.server
34 5b333085 2003-01-04 alex
35 10bb43c6 2003-03-10 alex # Ports on which the server should listen. There may be more than
36 6dacec7d 2005-01-17 alex # one port, separated with ",". (Default: 6667)
37 386d3b9e 2004-12-27 alex ;Ports = 6667, 6668, 6669
38 e33ab903 2003-09-11 alex
39 e33ab903 2003-09-11 alex # IP address on which the server should listen. (Default: empty,
40 e33ab903 2003-09-11 alex # so the server listens on all IP addresses of the system)
41 e33ab903 2003-09-11 alex ;Listen = 1.2.3.4
42 5b333085 2003-01-04 alex
43 10bb43c6 2003-03-10 alex # Text file with the "message of the day" (MOTD). This message will
44 10bb43c6 2003-03-10 alex # be shown to all users connecting to the server:
45 7efefd30 2002-03-29 alex ;MotdFile = /usr/local/etc/ngircd.motd
46 a8aab6bf 2002-03-10 alex
47 7281b8dd 2004-05-07 alex # A simple Phrase (<256 chars) if you don't want to use a motd file.
48 7281b8dd 2004-05-07 alex # If it is set no MotdFile will be read at all.
49 7281b8dd 2004-05-07 alex ;MotdPhrase = "Hello world!"
50 7281b8dd 2004-05-07 alex
51 10bb43c6 2003-03-10 alex # User ID under which the server should run; you can use the name
52 10bb43c6 2003-03-10 alex # of the user or the numerical ID. ATTENTION: For this to work the
53 10bb43c6 2003-03-10 alex # server must have been started with root privileges! In addition,
54 10bb43c6 2003-03-10 alex # the configuration and MOTD files must be readable by this user,
55 10bb43c6 2003-03-10 alex # otherwise RESTART and REHASH won't work!
56 5b333085 2003-01-04 alex ;ServerUID = 65534
57 7efefd30 2002-03-29 alex
58 10bb43c6 2003-03-10 alex # Group ID under which the ngircd should run; you can use the name
59 10bb43c6 2003-03-10 alex # of the group or the numerical ID. ATTENTION: For this to work the
60 10bb43c6 2003-03-10 alex # server must have been started with root privileges!
61 5b333085 2003-01-04 alex ;ServerGID = 65534
62 7efefd30 2002-03-29 alex
63 7281b8dd 2004-05-07 alex # A directory to chroot in when everything is initialized. It
64 7281b8dd 2004-05-07 alex # doesn't need to be populated if ngIRCd is compiled as a static
65 7281b8dd 2004-05-07 alex # binary. By default ngIRCd won't use the chroot() feature.
66 7281b8dd 2004-05-07 alex # ATTENTION: For this to work the server must have been started
67 7281b8dd 2004-05-07 alex # with root privileges!
68 7281b8dd 2004-05-07 alex ;ChrootDir = /var/empty
69 7281b8dd 2004-05-07 alex
70 10bb43c6 2003-03-10 alex # After <PingTimeout> seconds of inactivity the server will send a
71 10bb43c6 2003-03-10 alex # PING to the peer to test whether it is alive or not.
72 7efefd30 2002-03-29 alex ;PingTimeout = 120
73 a8aab6bf 2002-03-10 alex
74 10bb43c6 2003-03-10 alex # If a client fails to answer a PING with a PONG within <PongTimeout>
75 10bb43c6 2003-03-10 alex # seconds, it will be disconnected by the server.
76 7efefd30 2002-03-29 alex ;PongTimeout = 20
77 a8aab6bf 2002-03-10 alex
78 10bb43c6 2003-03-10 alex # The server tries every <ConnectRetry> seconds to establish a link
79 10bb43c6 2003-03-10 alex # to not yet (or no longer) connected servers.
80 7efefd30 2002-03-29 alex ;ConnectRetry = 60
81 5b333085 2003-01-04 alex
82 10bb43c6 2003-03-10 alex # Should IRC Operators be allowed to use the MODE command even if
83 5b333085 2003-01-04 alex # they are not(!) channel-operators?
84 efeba4a7 2002-09-16 alex ;OperCanUseMode = no
85 0fa00df6 2001-12-31 alex
86 a84b9d99 2003-03-09 alex # Maximum number of simultaneous connection the server is allowed
87 5b333085 2003-01-04 alex # to accept (<=0: unlimited):
88 aabe013d 2002-11-02 alex ;MaxConnections = -1
89 2981fe9e 2003-11-05 alex
90 2981fe9e 2003-11-05 alex # Maximum number of simultaneous connections from a single IP address
91 2981fe9e 2003-11-05 alex # the server will accept (<=0: unlimited):
92 2981fe9e 2003-11-05 alex ;MaxConnectionsIP = 5
93 aabe013d 2002-11-02 alex
94 5b333085 2003-01-04 alex # Maximum number of channels a user can be member of (<=0: no limit):
95 e65ab4a3 2002-12-14 alex ;MaxJoins = 10
96 e65ab4a3 2002-12-14 alex
97 969e5f1c 2002-01-06 alex [Operator]
98 10bb43c6 2003-03-10 alex # [Operator] sections are used to define IRC Operators. There may be
99 10bb43c6 2003-03-10 alex # more than one [Operator] block, one for each local operator.
100 5b333085 2003-01-04 alex
101 10bb43c6 2003-03-10 alex # ID of the operator (may be different of the nick name)
102 a8aab6bf 2002-03-10 alex ;Name = TheOper
103 a8aab6bf 2002-03-10 alex
104 10bb43c6 2003-03-10 alex # Password of the IRC operator
105 a8aab6bf 2002-03-10 alex ;Password = ThePwd
106 a8aab6bf 2002-03-10 alex
107 7b61b34c 2004-12-27 alex [Operator]
108 7b61b34c 2004-12-27 alex # More [Operator] sections, if you like ...
109 7b61b34c 2004-12-27 alex
110 ce2738c9 2002-02-17 alex [Server]
111 10bb43c6 2003-03-10 alex # Other servers are configured in [Server] sections. If you
112 10bb43c6 2003-03-10 alex # configure a port for the connection, then this ngircd tries to
113 10bb43c6 2003-03-10 alex # connect to to the other server on the given port; if not it waits
114 10bb43c6 2003-03-10 alex # for the other server to connect.
115 10bb43c6 2003-03-10 alex # There may be more than one server block.
116 a8aab6bf 2002-03-10 alex #
117 10bb43c6 2003-03-10 alex # Server Groups:
118 10bb43c6 2003-03-10 alex # The ngIRCd allows "server groups": You can assign an "ID" to every
119 10bb43c6 2003-03-10 alex # server with which you want this ngIRCd to link. If a server of a
120 10bb43c6 2003-03-10 alex # group won't answer, the ngIRCd tries to connect to the next server
121 10bb43c6 2003-03-10 alex # in the given group. But the ngircd never tries to connect to two
122 10bb43c6 2003-03-10 alex # servers with the same group ID.
123 5b333085 2003-01-04 alex
124 10bb43c6 2003-03-10 alex # IRC name of the server
125 a8aab6bf 2002-03-10 alex ;Name = irc2.the.net
126 5b333085 2003-01-04 alex
127 10bb43c6 2003-03-10 alex # Internet host name of the peer
128 03d5fd6c 2002-12-18 alex ;Host = connect-to-host.the.net
129 03d5fd6c 2002-12-18 alex
130 10bb43c6 2003-03-10 alex # Port of the server to which the ngIRCd should connect. If you
131 10bb43c6 2003-03-10 alex # assign no port the ngIRCd waits for incoming connections.
132 a8aab6bf 2002-03-10 alex ;Port = 6666
133 a8aab6bf 2002-03-10 alex
134 5b333085 2003-01-04 alex # Own password for the connection. This password has to be configured
135 5b333085 2003-01-04 alex # as "PeerPassword" on the other server.
136 caa7049e 2002-11-19 alex ;MyPassword = MySecret
137 a8aab6bf 2002-03-10 alex
138 5b333085 2003-01-04 alex # Foreign password for this connection. This password has to be
139 5b333085 2003-01-04 alex # configured as "MyPassword" on the other server.
140 caa7049e 2002-11-19 alex ;PeerPassword = PeerSecret
141 5b333085 2003-01-04 alex
142 10bb43c6 2003-03-10 alex # Group of this server (optional)
143 a8aab6bf 2002-03-10 alex ;Group = 123
144 a8aab6bf 2002-03-10 alex
145 7b61b34c 2004-12-27 alex [Server]
146 7b61b34c 2004-12-27 alex # More [Server] sections, if you like ...
147 7b61b34c 2004-12-27 alex
148 c3aac8dd 2002-05-21 alex [Channel]
149 10bb43c6 2003-03-10 alex # Pre-defined channels can be configured in [Channel] sections.
150 10bb43c6 2003-03-10 alex # Such channels are created by the server when starting up and even
151 10bb43c6 2003-03-10 alex # persist when there are no more members left.
152 10bb43c6 2003-03-10 alex # Persistent channels are marked with the mode 'P', which can be set
153 10bb43c6 2003-03-10 alex # and unset by IRC operators like other modes on the fly.
154 10bb43c6 2003-03-10 alex # There may be more than one [Channel] block.
155 5b333085 2003-01-04 alex
156 5b333085 2003-01-04 alex # Name of the channel
157 c3aac8dd 2002-05-21 alex ;Name = #TheName
158 c3aac8dd 2002-05-21 alex
159 10bb43c6 2003-03-10 alex # Topic for this channel
160 5b333085 2003-01-04 alex ;Topic = a great topic
161 5b333085 2003-01-04 alex
162 10bb43c6 2003-03-10 alex # Initial channel modes
163 c3aac8dd 2002-05-21 alex ;Modes = tn
164 c3aac8dd 2002-05-21 alex
165 7b61b34c 2004-12-27 alex [Channel]
166 7b61b34c 2004-12-27 alex # More [Channel] sections, if you like ...
167 7b61b34c 2004-12-27 alex
168 0fa00df6 2001-12-31 alex # -eof-