]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/inspircd.conf.example
6042dc3cf56a9869dbda06cd2efc3ae57a724b26
[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 : 30/10/2002                         #
15 #                 Written by      : CC  (cc@backchat.co.za)            #
16 #                                                                      #
17 ########################################################################
18
19
20
21 #-#-#-#-#-#-#-#-#-#-#-#-  SERVER DESCRIPTION  -#-#-#-#-#-#-#-#-#-#-#-#-
22 #                                                                     #
23 #   Here is where you enter the information about your server.        #
24 #                                                                     #
25 #  Syntax is as follows:                                              #
26 #     <server name="server.name"                                      #
27 #      description="Server Description"                               #
28 #      network="MyNetwork">                                           #
29 #                                                                     #
30
31 <server name="penguin.omega.org.za"
32         description="Waddle World"
33         network="Omega">
34
35
36 #-#-#-#-#-#-#-#-#-#-#-#-   ADMIN INFORMATION   -#-#-#-#-#-#-#-#-#-#-#-#
37 #                                                                     #
38 #   Describes the Server Administrator's real name, nick              #
39 #   and email address.                                                #
40 #                                                                     #
41 #  Syntax is as follows:                                              #
42 #       <admin name="real name"                                       #
43 #              nick="nick name"                                       #
44 #              email="email@address.com">                             #
45 #                                                                     #
46
47 <admin  name="Johnny Casino"
48         nick="CC"
49         email="cc@monkeynut.co.za">
50
51
52 #-#-#-#-#-#-#-#-#-#-#-#-   PORT CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#-
53 #                                                                     #
54 #   Enter the port and address bindings here.                         #
55 #                                                                     #
56 #  bind address - specifies which the address which ports bind        # 
57 #  port         - opens an unused port                                #
58 #  type         - can be 'clients' or 'servers'. The clients type is  #
59 #                 a standard tcp based socket, the servers type is a  #
60 #                 UDP based connection.                               #
61 #  default      - if the port type is 'servers' then this can be      #
62 #                 specified. If set to 'yes', it indicates that this  #
63 #                 port is the default route for all /connect commands.#
64 #                 if you do not bind your default route to an         #
65 #                 external ip, or all ip's, you may have connection   #
66 #                 problems.                                           #
67 #                                                                     #
68 #  Leaving address empty binds to all available interfaces            #
69 #                                                                     #
70 #  Syntax is as follows:                                              #
71 #                                                                     #
72 # <bind address="ip number" port="port" type="clients">               #
73 # <bind address="ip number" port="port" type="servers">               #
74 # <bind address="ip number" port="port" type="servers" default="yes"> #
75 #                                                                     #
76
77 <bind address="" port="6660" type="clients">
78 <bind address="" port="7000" type="servers" default="yes">
79 <bind address="" port="7001" type="servers">
80
81
82 #-#-#-#-#-#-#-#-#-#-  DIE/RESTART CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-
83 #                                                                     #
84 #   You can configure the passwords here which you wish to use for    #
85 #   the die and restart commands. Only trusted ircops who will        #
86 #   need this ability should know the die and restart password.       #
87 #                                                                     #
88 #  Syntax is as follows:                                              #
89 #       <power diepass="die password" restartpass="restart password"  #
90 #        pause="secs before dying">                                   #
91 #                                                                     #
92
93 <power diepass="diepass" restartpass="restartpass" pause="2">
94
95
96 #-#-#-#-#-#-#-#-#-#-  CONNECTIONS CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-
97 #                                                                     #
98 #   This is where you can configure which connections are allowed     #
99 #   and denied access onto your server.                               #
100 #   The password is optional.                                         #
101 #   You may have as many of these as you require.                     #
102 #   To allow/deny all connections use a *                             #
103 #                                                                     #
104 #  Syntax is as follows:                                              #
105 #       <connect allow="ip number">                                   #
106 #       <connect allow="ip number" password="blahblah">               #
107 #       <connect allow="ip number" password="blah" timeout="10">      #
108 #       <connect allow="ip number" timeout="blah" flood="5">          #
109 #       <connect deny="ip number">                                    #
110 #                                                                     #
111 #   You may optionally include timeout="x" on any allow line, which   #
112 #   specifies the amount of time given before an unknown connection   #
113 #   is closed if USER/NICK/PASS are not given. This value is in secs  #
114 #                                                                     #
115 #   You may also optionally include a flood="x" line which indicates  #
116 #   the number of lines a user may place into their buffer at once    #
117 #   before they are disconnected for excess flood. The default is to  #
118 #   DISABLE this feature. A recommended value is 10.                  #
119
120
121 <connect allow="196.12.*"  password="tiffany">
122 <connect allow="*" timeout="60" flood="10">
123
124 <connect deny="69.254.*">
125
126
127 #-#-#-#-#-#-#-#-#-#-#-#-  CLASS CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#-
128 #                                                                     #
129 #   Classes are a group of commands which are grouped together        #
130 #   and given a unique name. They used to define which commands       #
131 #   are available to certain types of Operators.                      #
132 #                                                                     #
133 #  Syntax is as follow:                                               #
134 #       <class name="name" commands="oper commands">                  #
135 #                                                                     #
136     
137 <class name="Shutdown" commands="DIE RESTART REHASH">
138 <class name="ServerLink" commands="CONNECT SQUIT">
139 <class name="BanControl" commands="KILL GLINE KLINE ZLINE QLINE SHUN">
140 <class name="OperChat" commands="WALLOPS CHATOPS">
141 <class name="HostCloak" commands="SETHOST SETIDENT SETNAME">
142
143
144 #-#-#-#-#-#-#-#-#-#-#-#-  OPERATOR COMPOSITION   -#-#-#-#-#-#-#-#-#-#-#
145 #                                                                     #
146 #   This is where you specify which types of operators you have on    #
147 #   your server, as well as the commands they are allowed to use.     #
148 #   This works alongside with the classes specified above.            #
149 #                                                                     #
150 #  type name  - a name for the combined class types                   #
151 #  classes    - specified above, used for flexibility for the         #
152 #               server admin to decide on which operators get         #
153 #               what commands                                         #
154 #  host       - hostmask operators will recieve on oper-up            #
155 #                                                                     #
156 #  Syntax is as follows:                                              #
157 #       <type name="name" classes="class name" host="oper hostmask">  #
158 #                                                                     #
159
160 <type name="NetAdmin" classes="OperChat BanControl HostCloak Shutdown ServerLink" host="netadmin.omega.org.za">
161 <type name="GlobalOp" classes="OperChat BanControl HostCloak ServerLink" host="ircop.omega.org.za">
162 <type name="LocalOp" classes="OperChat BanControl HostCloak" host="local.omega.org.za">
163 <type name="Helper" classes="HostCloak" host="helper.omega.org.za">
164
165
166 #-#-#-#-#-#-#-#-#-#-#-  OPERATOR CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#
167 #                                                                     #
168 #   Opers are defined here. This is a very important section.         #
169 #   Remember to only make operators out of truthworthy people.        #
170 #                                                                     #
171 #  name      - oper name, best to use lower-case                      #
172 #  password  - password to oper-up,                                   #
173 #              encryption not yet available                           #
174 #  host      - host of client allowed to oper-up, more hostmasks      #
175 #              seperated by spaces, wildcards accepted                #
176 #  type      - specified above, defines the kind of operator          #
177 #                                                                     #
178 #  Syntax is as follows:                                              #
179 #       <oper name="login"                                            #
180 #             password="pass"                                         #
181 #             host="hostmask@of.oper"                                 #
182 #             type="oper type">                                       #
183 #                                                                     #
184
185 <oper   name="cc"
186         password="s3cret"
187         host="*@*"
188         type="NetAdmin">
189
190
191 #-#-#-#-#-#-#-#-#-#-#-  SERVER LINK CONFIGURATION  -#-#-#-#-#-#-#-#-#-#
192 #                                                                     #
193 # Defines which servers can link to this one, and which servers this  #
194 # server may create outbound links to.                                #
195 #                                                                     #
196 # name      - The name is the canocial name of the server, it does    #
197 #             not have to resolve - but it is expected to be sent in  #
198 #             the remote servers connection info.                     #
199 # ipaddr    - Valid ip address for remote server.                     #
200 # port      - Valid listening UDP port for remote server.             #
201 # sendpass  - Password to send to create an outbound connection to    #
202 #             this server.                                            #
203 # recvpass  - Password to receive to accept an inbound connection     #
204 #             from this server.                                       #
205 #                                                                     #
206
207 <link name="hub.penguin.org"
208         ipaddr="12.34.56.78"
209         port="7000"
210         sendpass="outgoing!password"
211         recvpass="incoming!password">
212
213
214
215 #-#-#-#-#-#-#-#-#-#-  MISCELLANEOUS CONFIGURATION  -#-#-#-#-#-#-#-#-#-#
216 #                                                                     #
217 #   These options let you define the path to your motd and rules      #
218 #   files.                                                            #
219 #                                                                     #
220
221 <files  motd="/home/cc/inspircd-1.0/conf/inspire.motd"
222         rules="/home/cc/inspircd-1.0/conf/inspire.rules">
223
224
225
226 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-  RTFM LINE  -#-#-#-#-#-#-#-#-#-#-#-#-#-#
227 #                                                                     #
228 #   Just remove this... Its here to make you read ALL of the config   #
229 #   file options ;)                                                   #
230
231 <die value="And god came down from the heavens and smote down the noob.">
232
233
234
235 #-#-#-#-#-#-#-#-#-#-#-#-#-  SERVER OPTIONS   -#-#-#-#-#-#-#-#-#-#-#-#-#
236 #                                                                     #
237 #   Settings to define which features are useable on your server.     #
238 #                                                                     #
239 #  prefixquit    - a prefix for a client's quit message               #
240 #  loglevel      - specifies what detail of messages to log in the    #
241 #                  log file. You may select from debug, verbose,      #
242 #                  default, sparse and none.                          #
243 #  allowhalfop   - allows the +h channel mode                         #
244 #  allowprotect  - allows the +a channel mode                         #
245 #  allowfounder  - allows the +q channel mode                         #
246 #  netbuffersize - size of the buffer used to receive data from       #
247 #                  clients. The ircd may only read() this amount      #
248 #                  of text in one go at any time. (OPTIONAL)          #
249
250 <options prefixquit="Quit: "
251          loglevel="default"
252          netbuffersize="10240"
253          allowhalfop="yes"
254          allowprotect="yes"
255          allowfounder="yes">
256
257
258
259 #-#-#-#-#-#-#-#-#-#-#-#-#-  MODULE OPTIONS   -#-#-#-#-#-#-#-#-#-#-#-#-#
260 #                                                                     #
261 #  These tags define which modules will be loaded on startup by your  #
262 #  server. Add modules without any paths. When you make your ircd     #
263 #  using the 'make' command, all compiled modules will be moved into  #
264 #  the folder you specified when you ran ./configure. The module tag  #
265 #  automatically looks for modules in this location.                  #
266
267 <module name="m_foobar.so">
268
269
270
271 #-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#- YAWN  -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
272 #                                                                     #
273 #   You should already know what to do here :)                        #
274
275 <die value="All l33t noobs must edit their configs.">
276
277
278 #########################################################################
279 #                                                                       #
280 #                -InspIRCd Development and Coding Team-                 #
281 #                          www.inspircd.org                             #
282 #                                                                       #
283 #########################################################################