]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/inspircd.conf.example
Added m_alias module which provides command aliases.
[user/henk/code/inspircd.git] / docs / inspircd.conf.example
1 ########################################################################
2 #                                                                      #
3 #                     ---------------------------                      #
4 #                     InspIRCd Configuration File                      #
5 #                     ---------------------------                      #
6 #                                                                      #
7 ##################################||####################################
8                                  #||#
9 ##################################||####################################
10 #                                                                      #
11 #         This is an example of the config file for InspIRCd.          #
12 #             Change the options to suit your network                  #
13 #                                                                      #
14 #                 Last updated on : 24/04/2004                         #
15 #                 Written by      : CC  (cc@backchat.co.za)            #
16 #                 Updated by      : Brain (brain@inspircd.org)         #
17 #                                                                      #
18 ########################################################################
19
20
21
22 #-#-#-#-#-#-#-#-#-#-#-#-  SERVER DESCRIPTION  -#-#-#-#-#-#-#-#-#-#-#-#-
23 #                                                                     #
24 #   Here is where you enter the information about your server.        #
25 #                                                                     #
26 #  Syntax is as follows:                                              #
27 #     <server name="server.name"                                      #
28 #      description="Server Description"                               #
29 #      network="MyNetwork">                                           #
30 #                                                                     #
31
32 <server name="penguin.omega.org.za"
33         description="Waddle World"
34         network="Omega">
35
36
37 #-#-#-#-#-#-#-#-#-#-#-#-   ADMIN INFORMATION   -#-#-#-#-#-#-#-#-#-#-#-#
38 #                                                                     #
39 #   Describes the Server Administrator's real name, nick              #
40 #   and email address.                                                #
41 #                                                                     #
42 #  Syntax is as follows:                                              #
43 #       <admin name="real name"                                       #
44 #              nick="nick name"                                       #
45 #              email="email@address.com">                             #
46 #                                                                     #
47
48 <admin  name="Johnny Casino"
49         nick="CC"
50         email="cc@monkeynut.co.za">
51
52
53 #-#-#-#-#-#-#-#-#-#-#-#-   PORT CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#-
54 #                                                                     #
55 #   Enter the port and address bindings here.                         #
56 #                                                                     #
57 #  bind address - specifies which the address which ports bind        # 
58 #  port         - opens an unused port                                #
59 #  type         - can be 'clients' or 'servers'. The clients type is  #
60 #                 a standard tcp based socket, the servers type is a  #
61 #                 also a TCP based connection but of a different      #
62 #                 format.                                             #
63 #  default      - if the port type is 'servers' then this can be      #
64 #                 specified. If set to 'yes', it indicates that this  #
65 #                 port is the default route for all /connect commands.#
66 #                 if you do not bind your default route to an         #
67 #                 external ip, or all ip's, you may have connection   #
68 #                 problems.                                           #
69 #                                                                     #
70 #  Leaving address empty binds to all available interfaces            #
71 #                                                                     #
72 #  Syntax is as follows:                                              #
73 #                                                                     #
74 # <bind address="ip number" port="port" type="clients">               #
75 # <bind address="ip number" port="port" type="servers">               #
76 # <bind address="ip number" port="port" type="servers" default="yes"> #
77 #                                                                     #
78
79 <bind address="" port="6660" type="clients">
80 <bind address="" port="7000" type="servers" default="yes">
81 <bind address="" port="7001" type="servers">
82
83
84 #-#-#-#-#-#-#-#-#-#-  DIE/RESTART CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-
85 #                                                                     #
86 #   You can configure the passwords here which you wish to use for    #
87 #   the die and restart commands. Only trusted ircops who will        #
88 #   need this ability should know the die and restart password.       #
89 #                                                                     #
90 #  Syntax is as follows:                                              #
91 #       <power diepass="die password" restartpass="restart password"  #
92 #        pause="secs before dying">                                   #
93 #                                                                     #
94
95 <power diepass="diepass" restartpass="restartpass" pause="2">
96
97
98 #-#-#-#-#-#-#-#-#-#-  CONNECTIONS CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-
99 #                                                                     #
100 #   This is where you can configure which connections are allowed     #
101 #   and denied access onto your server.                               #
102 #   The password is optional.                                         #
103 #   You may have as many of these as you require.                     #
104 #   To allow/deny all connections use a *                             #
105 #                                                                     #
106 #  Syntax is as follows:                                              #
107 #       <connect allow="ip number">                                   #
108 #       <connect allow="ip number" password="blahblah">               #
109 #       <connect allow="ip number" password="blah" timeout="10">      #
110 #       <connect allow="ip number" timeout="blah" flood="5">          #
111 #       <connect deny="ip number">                                    #
112 #                                                                     #
113 #   You may optionally include timeout="x" on any allow line, which   #
114 #   specifies the amount of time given before an unknown connection   #
115 #   is closed if USER/NICK/PASS are not given. This value is in secs  #
116 #                                                                     #
117 #   You may also optionally include a flood="x" line which indicates  #
118 #   the number of lines a user may place into their buffer at once    #
119 #   before they are disconnected for excess flood. The default is to  #
120 #   DISABLE this feature. A recommended value is 10.                  #
121
122
123 <connect allow="196.12.*"  password="secret">
124 <connect allow="*" timeout="60" flood="10">
125
126 <connect deny="69.254.*">
127
128
129 #-#-#-#-#-#-#-#-#-#-#-#-  CLASS CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#-
130 #                                                                     #
131 #   Classes are a group of commands which are grouped together        #
132 #   and given a unique name. They used to define which commands       #
133 #   are available to certain types of Operators.                      #
134 #                                                                     #
135 #  Syntax is as follow:                                               #
136 #       <class name="name" commands="oper commands">                  #
137 #                                                                     #
138     
139 <class name="Shutdown" commands="DIE RESTART REHASH">
140 <class name="ServerLink" commands="CONNECT SQUIT">
141 <class name="BanControl" commands="KILL GLINE KLINE ZLINE QLINE SHUN">
142 <class name="OperChat" commands="WALLOPS CHATOPS">
143 <class name="HostCloak" commands="SETHOST SETIDENT SETNAME">
144
145
146 #-#-#-#-#-#-#-#-#-#-#-#-  OPERATOR COMPOSITION   -#-#-#-#-#-#-#-#-#-#-#
147 #                                                                     #
148 #   This is where you specify which types of operators you have on    #
149 #   your server, as well as the commands they are allowed to use.     #
150 #   This works alongside with the classes specified above.            #
151 #                                                                     #
152 #  type name  - a name for the combined class types                   #
153 #  classes    - specified above, used for flexibility for the         #
154 #               server admin to decide on which operators get         #
155 #               what commands                                         #
156 #  host       - hostmask operators will recieve on oper-up            #
157 #                                                                     #
158 #  Syntax is as follows:                                              #
159 #       <type name="name" classes="class name" host="oper hostmask">  #
160 #                                                                     #
161
162 <type name="NetAdmin" classes="OperChat BanControl HostCloak Shutdown ServerLink" host="netadmin.omega.org.za">
163 <type name="GlobalOp" classes="OperChat BanControl HostCloak ServerLink" host="ircop.omega.org.za">
164 <type name="LocalOp" classes="OperChat BanControl HostCloak" host="local.omega.org.za">
165 <type name="Helper" classes="HostCloak" host="helper.omega.org.za">
166
167
168 #-#-#-#-#-#-#-#-#-#-#-  OPERATOR CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#
169 #                                                                     #
170 #   Opers are defined here. This is a very important section.         #
171 #   Remember to only make operators out of truthworthy people.        #
172 #                                                                     #
173 #  name      - oper name, best to use lower-case                      #
174 #  password  - password to oper-up,                                   #
175 #              encryption not yet available                           #
176 #  host      - host of client allowed to oper-up, more hostmasks      #
177 #              seperated by spaces, wildcards accepted                #
178 #  type      - specified above, defines the kind of operator          #
179 #                                                                     #
180 #  Syntax is as follows:                                              #
181 #       <oper name="login"                                            #
182 #             password="pass"                                         #
183 #             host="hostmask@of.oper"                                 #
184 #             type="oper type">                                       #
185 #                                                                     #
186
187 <oper   name="cc"
188         password="s3cret"
189         host="*@*"
190         type="NetAdmin">
191
192
193 #-#-#-#-#-#-#-#-#-#-#-  SERVER LINK CONFIGURATION  -#-#-#-#-#-#-#-#-#-#
194 #                                                                     #
195 # Defines which servers can link to this one, and which servers this  #
196 # server may create outbound links to.                                #
197 #                                                                     #
198 # name      - The name is the canocial name of the server, it does    #
199 #             not have to resolve - but it is expected to be sent in  #
200 #             the remote servers connection info.                     #
201 # ipaddr    - Valid ip address for remote server.                     #
202 # port      - Valid listening UDP port for remote server.             #
203 # sendpass  - Password to send to create an outbound connection to    #
204 #             this server.                                            #
205 # recvpass  - Password to receive to accept an inbound connection     #
206 #             from this server.                                       #
207 #                                                                     #
208 # to u:line a server (give it extra privilages required for running   #
209 # services, Q, etc) you must include the <uline server> tag as shown  #
210 # in the example below. You can have as many of these as you like.    #
211 #                                                                     #
212 # WARNING: Unlike other ircds, u:lining a server allows ALL users on  #
213 # that server to operoverride modes. This should only be used for     #
214 # services and protected oper servers!                                #
215 #                                                                     #
216
217 <link name="hub.penguin.org"
218         ipaddr="12.34.56.78"
219         port="7000"
220         sendpass="outgoing!password"
221         recvpass="incoming!password">
222
223 <link name="services.antarctic.com"
224         ipaddr="98.76.54.32"
225         port="7000"
226         sendpass="penguins"
227         recvpass="polarbears">
228
229 <uline server="services.antarctic.com">
230
231
232
233 #-#-#-#-#-#-#-#-#-#-  MISCELLANEOUS CONFIGURATION  -#-#-#-#-#-#-#-#-#-#
234 #                                                                     #
235 #   These options let you define the path to your motd and rules      #
236 #   files.                                                            #
237 #                                                                     #
238
239 <files  motd="/home/cc/inspircd-1.0/conf/inspire.motd"
240         rules="/home/cc/inspircd-1.0/conf/inspire.rules">
241
242
243
244 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-  RTFM LINE  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
245 #                                                                     #
246 #   Just remove this... Its here to make you read ALL of the config   #
247 #   file options ;)                                                   #
248
249 <die value="And god came down from the heavens and smote down the noob.">
250
251
252
253 #-#-#-#-#-#-#-#-#-#-#-#-#-  SERVER OPTIONS   -#-#-#-#-#-#-#-#-#-#-#-#-#
254 #                                                                     #
255 #   Settings to define which features are useable on your server.     #
256 #                                                                     #
257 #  prefixquit    - a prefix for a client's quit message               #
258 #  loglevel      - specifies what detail of messages to log in the    #
259 #                  log file. You may select from debug, verbose,      #
260 #                  default, sparse and none.                          #
261 #  allowhalfop   - allows the +h channel mode                         #
262 #  allowprotect  - allows the +a channel mode                         #
263 #  allowfounder  - allows the +q channel mode                         #
264 #  netbuffersize - size of the buffer used to receive data from       #
265 #                  clients. The ircd may only read() this amount      #
266 #                  of text in one go at any time. (OPTIONAL)          #
267 #  maxwho        - The maximum number of results returned by a /WHO   #
268 #                  query. This is to prevent /WHO being used as a     #
269 #                  spam vector or means of flooding an ircd. The      #
270 #                  default is 128, it is not recommended to raise it  #
271 #                  above 1024. Values up to 65535 are permitted.      #
272
273 <options prefixquit="Quit: "
274          loglevel="default"
275          netbuffersize="10240"
276          maxwho="128"
277          allowhalfop="yes"
278          allowprotect="yes"
279          allowfounder="yes">
280
281
282
283 #-#-#-#-#-#-#-#-#-#-#-#-#-  MODULE OPTIONS   -#-#-#-#-#-#-#-#-#-#-#-#-#
284 #                                                                     #
285 #  These tags define which modules will be loaded on startup by your  #
286 #  server. Add modules without any paths. When you make your ircd     #
287 #  using the 'make' command, all compiled modules will be moved into  #
288 #  the folder you specified when you ran ./configure. The module tag  #
289 #  automatically looks for modules in this location.                  #
290
291 <module name="m_foobar.so">
292
293
294 #-#-#-#-#-#-#-#-#-#-#-#-#-#-  BAN OPTIONS  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
295 #                                                                     #
296 # The ban tags define nick masks, host masks and ip ranges which are  #
297 # banned from your server. All details in these tags are local to     #
298 # Your server.                                                        #
299 #                                                                     #
300 #                                                                     #
301 # badip lines ban an ip range (same as a zline)                       #
302 #                                                                     #
303 # ipmask       -          The ip range to ban (wildcards possible)    #
304 # reason       -          Reason to display when disconnected         #
305 #                                                                     #
306 # badnick lines ban a nick mask (same as a qline)                     #
307 #                                                                     #
308 # nick         -          Nick mask to ban (wildcards possible)       #
309 # reason       -          Reason to display on /NICK                  #
310 #                                                                     #
311 # badhost lines ban a user@host mask (same as a kline)                #
312 #                                                                     #
313 # host         -          ident@hostname (wildcards possible)         #
314 # reason       -          Reason to display on disconnection          #
315 #                                                                     #
316
317 <badip ipmask="69.69.69.69" reason="No porn here thanks.">
318
319 <badnick nick="ChanServ" reason="Reserved For Services">
320 <badnick nick="NickServ" reason="Reserved For Services">
321 <badnick nick="OperServ" reason="Reserved For Services">
322 <badnick nick="MemoServ" reason="Reserved For Services">
323
324 <badhost host="*@hundredz.n.hundredz.o.1337.kiddies.com" reason="Too many 1337 kiddiots">
325 <badhost host="*@localhost" reason="No irc from localhost!">
326
327 #-#-#-#-#-#-#-#-#-#-#-  ALIAS DEFINITIONS  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
328 #                                                                     #
329 # If you have the m_alias.so module loaded, you may also define       #
330 # aliases as shown below. They are commonly used to provide shortcut  #
331 # commands to services, however they are not limited to jsut this use.#
332 # An alias tag requires the following values to be defined in it:     #
333 #                                                                     #
334 # text        -      The text to detect at the start of the line,     #
335 #                    must be at the start of the line to trigger the  #
336 #                    alias. May contain spaces, but case insensitive. #
337 # replace     -      The text to replace 'text' with. Usually this    #
338 #                    will be "PRIVMSG ServiceName :" or similar.      #
339 # requires    -      If you provide a value for 'requires' this means #
340 #                    the given nickname MUST be online for the alias  #
341 #                    to successfully trigger. If they are not, then   #
342 #                    the user receives a 'no such nick' 401 numeric.  #
343 # uline       -      Defining this value with 'yes', 'true' or '1'    #
344 #                    will ensure that the user given in 'requires'    #
345 #                    must also be on a u-lined server, as well as     #
346 #                    actually being on the network. If the user is    #
347 #                    online, but not on a u-lined server, then an     #
348 #                    oper-alert is sent out as this is possibly signs #
349 #                    of a user trying to impersonate a service.       #
350 #                                                                     #
351
352 <alias text="NICKSERV" replace="PRIVMSG NickServ :" requires="NickServ" uline="yes">
353 <alias text="CHANSERV" replace="PRIVMSG ChanServ :" requires="ChanServ" uline="yes">
354 <alias text="NS ID" replace="PRIVMSG NickServ :identify" requires="NickServ" uline="yes">
355 <alias text="NS" replace="PRIVMSG NickServ :" requires="NickServ" uline="yes">
356 <alias text="CS" replace="PRIVMSG ChanServ :" requires="ChanServ" uline="yes">
357
358 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- YAWN  -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
359 #                                                                     #
360 #   You should already know what to do here :)                        #
361
362 <die value="All l33t noobs must edit their configs.">
363
364
365 #########################################################################
366 #                                                                       #
367 #                -InspIRCd Development and Coding Team-                 #
368 #                          www.inspircd.org                             #
369 #                                                                       #
370 #########################################################################
371