]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - docs/conf/opers.conf.example
Improve support for wildcards in <link:name>.
[user/henk/code/inspircd.git] / docs / conf / opers.conf.example
1 #-#-#-#-#-#-#-#-#-#-#-#-#  CLASS CONFIGURATION  #-#-#-#-#-#-#-#-#-#-#-#
2 #                                                                     #
3 #   Classes are a group of commands which are grouped together and    #
4 #   given a unique name. They're used to define which commands        #
5 #   are available to certain types of Operators.                      #
6 #                                                                     #
7 #                                                                     #
8 #  Note: It is possible to make a class which covers all available    #
9 #  commands. To do this, specify commands="*". This is not really     #
10 #  recommended, as it negates the whole purpose of the class system,  #
11 #  however it is provided for fast configuration (e.g. in test nets). #
12 #                                                                     #
13
14 <class
15      name="Shutdown"
16
17      # commands: Oper-only commands that opers of this class can run.
18      commands="DIE RESTART REHASH LOADMODULE UNLOADMODULE RELOADMODULE GLOADMODULE GUNLOADMODULE GRELOADMODULE"
19
20      # privs: Special privileges that users with this class may utilise.
21      #  VIEWING:
22      #   - channels/auspex: allows opers with this priv to see more details about channels than normal users.
23      #   - users/auspex: allows opers with this priv to view more details about users than normal users, e.g. real host and IP.
24      #   - users/channel-spy: allows opers with this priv to view the private/secret channels that a user is on.
25      #   - servers/auspex: allows opers with this priv to see more details about server information than normal users.
26      # ACTIONS:
27      #   - users/mass-message: allows opers with this priv to PRIVMSG and NOTICE to a server mask (e.g. NOTICE $*).
28      #   - users/samode-usermodes: allows opers with this priv to change the user modes of any other user using /SAMODE.
29      # PERMISSIONS:
30      #   - channels/ignore-nonicks: allows opers with this priv to change their nick when on a +N channel.
31      #   - channels/restricted-create: allows opers with this priv to create channels if the restrictchans module is loaded.
32      #   - users/flood/no-fakelag: prevents opers from being penalized with fake lag for flooding (*NOTE).
33      #   - users/flood/no-throttle: allows opers with this priv to send commands without being throttled (*NOTE).
34      #   - users/flood/increased-buffers: allows opers with this priv to send and receive data without worrying about being disconnected for exceeding limits (*NOTE).
35      #   - users/callerid-override: allows opers with this priv to message people using callerid without being on their callerid list.
36      #   - users/sajoin-others: allows opers with this priv to /SAJOIN users other than themselves.
37      #   - servers/use-disabled-commands: allows opers with this priv to use disabled commands.
38      #   - servers/use-disabled-modes: allows opers with this priv to use disabled modes.
39      #
40      # *NOTE: These privs are potentially dangerous, as they grant users with them the ability to hammer your server's CPU/RAM as much as they want, essentially.
41      privs="users/auspex channels/auspex servers/auspex users/mass-message users/flood/no-throttle users/flood/increased-buffers"
42
43      # usermodes: Oper-only usermodes that opers with this class can use.
44      usermodes="*"
45
46      # chanmodes: Oper-only channel modes that opers with this class can use.
47      chanmodes="*">
48
49 <class name="SACommands" commands="SAJOIN SAPART SANICK SAQUIT SATOPIC SAKICK SAMODE OJOIN">
50 <class name="ServerLink" commands="CONNECT SQUIT RCONNECT RSQUIT MKPASSWD ALLTIME SWHOIS LOCKSERV UNLOCKSERV" usermodes="*" chanmodes="*" privs="servers/auspex">
51 <class name="BanControl" commands="KILL GLINE KLINE ZLINE QLINE ELINE TLINE RLINE CHECK NICKLOCK NICKUNLOCK SHUN CLONES CBAN" usermodes="*" chanmodes="*">
52 <class name="OperChat" commands="WALLOPS GLOBOPS" usermodes="*" chanmodes="*" privs="users/mass-message">
53 <class name="HostCloak" commands="SETHOST SETIDENT SETIDLE CHGNAME CHGHOST CHGIDENT" usermodes="*" chanmodes="*" privs="users/auspex">
54
55
56 #-#-#-#-#-#-#-#-#-#-#-#-  OPERATOR COMPOSITION   -#-#-#-#-#-#-#-#-#-#-#
57 #                                                                     #
58 #   This is where you specify which types of operators you have on    #
59 #   your server, as well as the commands they are allowed to use.     #
60 #   This works alongside with the classes specified above.            #
61 #                                                                     #
62
63 <type
64     # name: Name of the type. Used in actual server operator accounts below.
65     name="NetAdmin"
66
67     # classes: Classes (blocks above) that this type belongs to.
68     classes="SACommands OperChat BanControl HostCloak Shutdown ServerLink"
69
70     # vhost: Host that opers of this type get when they log in (oper up). This is optional.
71     vhost="netadmin.omega.example.org"
72
73     # maxchans: Maximum number of channels opers of this type can be in at once.
74     maxchans="60"
75
76     # modes: User modes besides +o that are set on an oper of this type
77     # when they oper up. Used for snomasks and other things.
78     # Requires the opermodes module to be loaded.
79     modes="+s +cCqQ">
80
81 <type name="GlobalOp" classes="SACommands OperChat BanControl HostCloak ServerLink" vhost="ircop.omega.example.org">
82 <type name="Helper" classes="HostCloak" vhost="helper.omega.example.org">
83
84
85 #-#-#-#-#-#-#-#-#-#-#-  OPERATOR CONFIGURATION   -#-#-#-#-#-#-#-#-#-#-#
86 #                                                                     #
87 #   Opers are defined here. This is a very important section.         #
88 #   Remember to only make operators out of trustworthy people.        #
89 #                                                                     #
90
91 # Operator account with a plaintext password.
92 <oper
93       # name: Oper login that is used to oper up (/OPER <username> <password>).
94       # Remember: This is case sensitive.
95       name="Attila"
96
97       # password: Case-sensitive, unhashed (plaintext).
98       password="s3cret"
99
100       # host: What hostnames and IPs are allowed to use this operator account.
101       # Multiple options can be separated by spaces and CIDRs are allowed.
102       # You can use just * or *@* for this section, but it is not recommended
103       # for security reasons.
104       host="attila@inspircd.org *@2001:db8::/32"
105
106       # ** ADVANCED ** This option is disabled by default.
107       # fingerprint: When using the sslinfo module, you may specify
108       # a key fingerprint here. This can be obtained by using the /SSLINFO
109       # command while the module is loaded, and is also noticed on connect.
110       # This enhances security by verifying that the person opering up has
111       # a matching SSL client certificate, which is very difficult to
112       # forge (impossible unless preimage attacks on the hash exist).
113       # If the sslinfo module isn't loaded, this option will be ignored.
114       #fingerprint="67cb9dc013248a829bb2171ed11becd4"
115
116       # autologin: If an SSL certificate fingerprint for this oper is specified,
117       # you can have the oper block automatically log in. This moves all security
118       # of the oper block to the protection of the client certificate, so be sure
119       # that the private key is well-protected! Requires the sslinfo module.
120       #autologin="on"
121
122       # sslonly: If on, this oper can only oper up if they're using an SSL connection.
123       # Setting this option adds a decent bit of security. Highly recommended
124       # if the oper is on wifi, or specifically, unsecured wifi. Note that it
125       # is redundant to specify this option if you specify a fingerprint.
126       # This setting only takes effect if the sslinfo module is loaded.
127       #sslonly="yes"
128
129       # vhost: Overrides the vhost in the type block. Class and modes may also
130       # be overridden.
131       vhost="attila.example.org"
132
133       # type: Which type of operator this person is; see the block
134       # above for the list of types. NOTE: This is case-sensitive as well.
135       type="NetAdmin">
136
137 # Operator with a plaintext password and no comments, for easy copy & paste.
138 <oper
139       name="Brain"
140       password="youshouldhashthis"
141       host="brain@dialup15.isp.test.com *@localhost *@example.com *@2001:db8::/32"
142       #fingerprint="67cb9dc013248a829bb2171ed11becd4"
143       type="NetAdmin">
144
145 # Operator with a hashed password. It is highly recommended to use hashed passwords.
146 <oper
147       # name: Oper login that is used to oper up (/OPER <username> <password>).
148       # Remember: This is case sensitive.
149       name="Adam"
150
151       # hash: The hash function this password is hashed with. Requires the
152       # module for the selected function (bcrypt, md5, sha1, or sha256) and
153       # the password hashing module (password_hash) to be loaded.
154       #
155       # You may also use any of the above other than bcrypt prefixed with
156       # either "hmac-" or "pbkdf2-hmac-" (requires the pbkdf2 module).
157       # Create hashed passwords with: /MKPASSWD <hashtype> <plaintext>.
158       hash="bcrypt"
159
160       # password: A hash of the password (see above option) hashed
161       # with /MKPASSWD <hashtype> <plaintext>. See the password_hash module
162       # in modules.conf for more information about password hashing.
163       password="qQmv3LcF$Qh63wzmtUqWp9OXnLwe7yv1GcBwHpq59k2a0UrY8xe0"
164
165       # host: What hostnames and IPs are allowed to use this operator account.
166       # Multiple options can be separated by spaces and CIDRs are allowed.
167       # You can use just * or *@* for this section, but it is not recommended
168       # for security reasons.
169       host="*@127.0.0.1 *@192.0.2.40 *@198.51.100.4"
170
171       # type: Which type of operator this person is; see the block
172       # above for the list of types. NOTE: This is case-sensitive as well.
173       type="Helper">
174
175 # Once you have edited this file you can remove this line. This is just to
176 # ensure that you don't hastily include the file without reading it.
177 <die reason="Using opers.conf.example without editing it is a security risk">