]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/inspircd.conf.example
Q-lines fully working, can add and remove other types of ban (but not enforced yet)
[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 #                 UDP based connection.                               #
62 #  default      - if the port type is 'servers' then this can be      #
63 #                 specified. If set to 'yes', it indicates that this  #
64 #                 port is the default route for all /connect commands.#
65 #                 if you do not bind your default route to an         #
66 #                 external ip, or all ip's, you may have connection   #
67 #                 problems.                                           #
68 #                                                                     #
69 #  Leaving address empty binds to all available interfaces            #
70 #                                                                     #
71 #  Syntax is as follows:                                              #
72 #                                                                     #
73 # <bind address="ip number" port="port" type="clients">               #
74 # <bind address="ip number" port="port" type="servers">               #
75 # <bind address="ip number" port="port" type="servers" default="yes"> #
76 #                                                                     #
77
78 <bind address="" port="6660" type="clients">
79 <bind address="" port="7000" type="servers" default="yes">
80 <bind address="" port="7001" type="servers">
81
82
83 #-#-#-#-#-#-#-#-#-#-  DIE/RESTART CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-
84 #                                                                     #
85 #   You can configure the passwords here which you wish to use for    #
86 #   the die and restart commands. Only trusted ircops who will        #
87 #   need this ability should know the die and restart password.       #
88 #                                                                     #
89 #  Syntax is as follows:                                              #
90 #       <power diepass="die password" restartpass="restart password"  #
91 #        pause="secs before dying">                                   #
92 #                                                                     #
93
94 <power diepass="diepass" restartpass="restartpass" pause="2">
95
96
97 #-#-#-#-#-#-#-#-#-#-  CONNECTIONS CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-
98 #                                                                     #
99 #   This is where you can configure which connections are allowed     #
100 #   and denied access onto your server.                               #
101 #   The password is optional.                                         #
102 #   You may have as many of these as you require.                     #
103 #   To allow/deny all connections use a *                             #
104 #                                                                     #
105 #  Syntax is as follows:                                              #
106 #       <connect allow="ip number">                                   #
107 #       <connect allow="ip number" password="blahblah">               #
108 #       <connect allow="ip number" password="blah" timeout="10">      #
109 #       <connect allow="ip number" timeout="blah" flood="5">          #
110 #       <connect deny="ip number">                                    #
111 #                                                                     #
112 #   You may optionally include timeout="x" on any allow line, which   #
113 #   specifies the amount of time given before an unknown connection   #
114 #   is closed if USER/NICK/PASS are not given. This value is in secs  #
115 #                                                                     #
116 #   You may also optionally include a flood="x" line which indicates  #
117 #   the number of lines a user may place into their buffer at once    #
118 #   before they are disconnected for excess flood. The default is to  #
119 #   DISABLE this feature. A recommended value is 10.                  #
120
121
122 <connect allow="196.12.*"  password="secret">
123 <connect allow="*" timeout="60" flood="10">
124
125 <connect deny="69.254.*">
126
127
128 #-#-#-#-#-#-#-#-#-#-#-#-  CLASS CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#-
129 #                                                                     #
130 #   Classes are a group of commands which are grouped together        #
131 #   and given a unique name. They used to define which commands       #
132 #   are available to certain types of Operators.                      #
133 #                                                                     #
134 #  Syntax is as follow:                                               #
135 #       <class name="name" commands="oper commands">                  #
136 #                                                                     #
137     
138 <class name="Shutdown" commands="DIE RESTART REHASH">
139 <class name="ServerLink" commands="CONNECT SQUIT">
140 <class name="BanControl" commands="KILL GLINE KLINE ZLINE QLINE SHUN">
141 <class name="OperChat" commands="WALLOPS CHATOPS">
142 <class name="HostCloak" commands="SETHOST SETIDENT SETNAME">
143
144
145 #-#-#-#-#-#-#-#-#-#-#-#-  OPERATOR COMPOSITION   -#-#-#-#-#-#-#-#-#-#-#
146 #                                                                     #
147 #   This is where you specify which types of operators you have on    #
148 #   your server, as well as the commands they are allowed to use.     #
149 #   This works alongside with the classes specified above.            #
150 #                                                                     #
151 #  type name  - a name for the combined class types                   #
152 #  classes    - specified above, used for flexibility for the         #
153 #               server admin to decide on which operators get         #
154 #               what commands                                         #
155 #  host       - hostmask operators will recieve on oper-up            #
156 #                                                                     #
157 #  Syntax is as follows:                                              #
158 #       <type name="name" classes="class name" host="oper hostmask">  #
159 #                                                                     #
160
161 <type name="NetAdmin" classes="OperChat BanControl HostCloak Shutdown ServerLink" host="netadmin.omega.org.za">
162 <type name="GlobalOp" classes="OperChat BanControl HostCloak ServerLink" host="ircop.omega.org.za">
163 <type name="LocalOp" classes="OperChat BanControl HostCloak" host="local.omega.org.za">
164 <type name="Helper" classes="HostCloak" host="helper.omega.org.za">
165
166
167 #-#-#-#-#-#-#-#-#-#-#-  OPERATOR CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#
168 #                                                                     #
169 #   Opers are defined here. This is a very important section.         #
170 #   Remember to only make operators out of truthworthy people.        #
171 #                                                                     #
172 #  name      - oper name, best to use lower-case                      #
173 #  password  - password to oper-up,                                   #
174 #              encryption not yet available                           #
175 #  host      - host of client allowed to oper-up, more hostmasks      #
176 #              seperated by spaces, wildcards accepted                #
177 #  type      - specified above, defines the kind of operator          #
178 #                                                                     #
179 #  Syntax is as follows:                                              #
180 #       <oper name="login"                                            #
181 #             password="pass"                                         #
182 #             host="hostmask@of.oper"                                 #
183 #             type="oper type">                                       #
184 #                                                                     #
185
186 <oper   name="cc"
187         password="s3cret"
188         host="*@*"
189         type="NetAdmin">
190
191
192 #-#-#-#-#-#-#-#-#-#-#-  SERVER LINK CONFIGURATION  -#-#-#-#-#-#-#-#-#-#
193 #                                                                     #
194 # Defines which servers can link to this one, and which servers this  #
195 # server may create outbound links to.                                #
196 #                                                                     #
197 # name      - The name is the canocial name of the server, it does    #
198 #             not have to resolve - but it is expected to be sent in  #
199 #             the remote servers connection info.                     #
200 # ipaddr    - Valid ip address for remote server.                     #
201 # port      - Valid listening UDP port for remote server.             #
202 # sendpass  - Password to send to create an outbound connection to    #
203 #             this server.                                            #
204 # recvpass  - Password to receive to accept an inbound connection     #
205 #             from this server.                                       #
206 #                                                                     #
207 # to u:line a server (give it extra privilages required for running   #
208 # services, Q, etc) you must include the <uline server> tag as shown  #
209 # in the example below. You can have as many of these as you like.    #
210 #                                                                     #
211 # WARNING: Unlike other ircds, u:lining a server allows ALL users on  #
212 # that server to operoverride modes. This should only be used for     #
213 # services and protected oper servers!                                #
214 #                                                                     #
215
216 <link name="hub.penguin.org"
217         ipaddr="12.34.56.78"
218         port="7000"
219         sendpass="outgoing!password"
220         recvpass="incoming!password">
221
222 <link name="services.antarctic.com"
223         ipaddr="98.76.54.32"
224         port="7000"
225         sendpass="penguins"
226         recvpass="polarbears">
227
228 <uline server="services.antarctic.com">
229
230
231
232 #-#-#-#-#-#-#-#-#-#-  MISCELLANEOUS CONFIGURATION  -#-#-#-#-#-#-#-#-#-#
233 #                                                                     #
234 #   These options let you define the path to your motd and rules      #
235 #   files.                                                            #
236 #                                                                     #
237
238 <files  motd="/home/cc/inspircd-1.0/conf/inspire.motd"
239         rules="/home/cc/inspircd-1.0/conf/inspire.rules">
240
241
242
243 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-  RTFM LINE  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
244 #                                                                     #
245 #   Just remove this... Its here to make you read ALL of the config   #
246 #   file options ;)                                                   #
247
248 <die value="And god came down from the heavens and smote down the noob.">
249
250
251
252 #-#-#-#-#-#-#-#-#-#-#-#-#-  SERVER OPTIONS   -#-#-#-#-#-#-#-#-#-#-#-#-#
253 #                                                                     #
254 #   Settings to define which features are useable on your server.     #
255 #                                                                     #
256 #  prefixquit    - a prefix for a client's quit message               #
257 #  loglevel      - specifies what detail of messages to log in the    #
258 #                  log file. You may select from debug, verbose,      #
259 #                  default, sparse and none.                          #
260 #  allowhalfop   - allows the +h channel mode                         #
261 #  allowprotect  - allows the +a channel mode                         #
262 #  allowfounder  - allows the +q channel mode                         #
263 #  netbuffersize - size of the buffer used to receive data from       #
264 #                  clients. The ircd may only read() this amount      #
265 #                  of text in one go at any time. (OPTIONAL)          #
266
267 <options prefixquit="Quit: "
268          loglevel="default"
269          netbuffersize="10240"
270          allowhalfop="yes"
271          allowprotect="yes"
272          allowfounder="yes">
273
274
275
276 #-#-#-#-#-#-#-#-#-#-#-#-#-  MODULE OPTIONS   -#-#-#-#-#-#-#-#-#-#-#-#-#
277 #                                                                     #
278 #  These tags define which modules will be loaded on startup by your  #
279 #  server. Add modules without any paths. When you make your ircd     #
280 #  using the 'make' command, all compiled modules will be moved into  #
281 #  the folder you specified when you ran ./configure. The module tag  #
282 #  automatically looks for modules in this location.                  #
283
284 <module name="m_foobar.so">
285
286
287 #-#-#-#-#-#-#-#-#-#-#-#-#-#-  BAN OPTIONS  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
288 #                                                                     #
289 # The ban tags define nick masks, host masks and ip ranges which are  #
290 # banned from your server. All details in these tags are local to     #
291 # Your server.                                                        #
292 #                                                                     #
293 #                                                                     #
294 # badip lines ban an ip range (same as a zline)                       #
295 #                                                                     #
296 # ipmask       -          The ip range to ban (wildcards possible)    #
297 # reason       -          Reason to display when disconnected         #
298 #                                                                     #
299 # badnick lines ban a nick mask (same as a qline)                     #
300 #                                                                     #
301 # nick         -          Nick mask to ban (wildcards possible)       #
302 # reason       -          Reason to display on /NICK                  #
303 #                                                                     #
304 # badhost lines ban a user@host mask (same as a kline)                #
305 #                                                                     #
306 # host         -          ident@hostname (wildcards possible)         #
307 # reason       -          Reason to display on disconnection          #
308 #                                                                     #
309
310 <badip ipmask="69.69.69.69" reason="No porn here thanks.">
311
312 <badnick nick="ChanServ" reason="Reserved For Services">
313 <badnick nick="NickServ" reason="Reserved For Services">
314 <badnick nick="OperServ" reason="Reserved For Services">
315 <badnick nick="MemoServ" reason="Reserved For Services">
316
317 <badhost host="*@hundredz.n.hundredz.o.1337.kiddies.com" reason="Too many 1337 kiddiots">
318 <badhost host="*@localhost" reason="No irc from localhost!">
319
320
321 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- YAWN  -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
322 #                                                                     #
323 #   You should already know what to do here :)                        #
324
325 <die value="All l33t noobs must edit their configs.">
326
327
328 #########################################################################
329 #                                                                       #
330 #                -InspIRCd Development and Coding Team-                 #
331 #                          www.inspircd.org                             #
332 #                                                                       #
333 #########################################################################
334