1 #-#-#-#-#-#-#-#-#-#-#-#- CLASS CONFIGURATION -#-#-#-#-#-#-#-#-#-#-#-
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. #
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). #
17 # commands: Oper-only commands that opers of this class can run.
18 commands="DIE RESTART REHASH LOADMODULE UNLOADMODULE RELOADMODULE GUNLOADMODULE GRELOADMODULE"
20 # privs: Special privileges that users with this class may utilise.
22 # - channels/auspex: allows opers with this priv to see more detail 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 # - servers/auspex: allows opers with this priv to see more detail about server information than normal users.
26 # - users/mass-message: allows opers with this priv to PRIVMSG and NOTICE to a server mask (e.g. NOTICE $*)
27 # - users/samode-usermodes: allows opers with this priv to change the user modes of any other user using /SAMODE
29 # - users/flood/no-fakelag: prevents opers from being penalized with fake lag for flooding (*NOTE)
30 # - users/flood/no-throttle: allows opers with this priv to send commands without being throttled (*NOTE)
31 # - users/flood/increased-buffers: allows opers with this priv to send and receive data without worrying about being disconnected for exceeding limits (*NOTE)
33 # *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.
34 privs="users/auspex channels/auspex servers/auspex users/mass-message users/flood/no-throttle users/flood/increased-buffers"
36 # usermodes: Oper-only usermodes that opers with this class can use.
39 # chanmodes: Oper-only channel modes that opers with this class can use.
42 <class name="SACommands" commands="SAJOIN SAPART SANICK SAQUIT SATOPIC SAKICK SAMODE">
43 <class name="ServerLink" commands="CONNECT SQUIT RCONNECT RSQUIT MKPASSWD ALLTIME SWHOIS JUMPSERVER LOCKSERV UNLOCKSERV" usermodes="*" chanmodes="*" privs="servers/auspex">
44 <class name="BanControl" commands="KILL GLINE KLINE ZLINE QLINE ELINE TLINE RLINE CHECK NICKLOCK NICKUNLOCK SHUN CLONES CBAN CLOSE" usermodes="*" chanmodes="*">
45 <class name="OperChat" commands="WALLOPS GLOBOPS" usermodes="*" chanmodes="*" privs="users/mass-message">
46 <class name="HostCloak" commands="SETHOST SETIDENT CHGNAME CHGHOST CHGIDENT SETIDLE" usermodes="*" chanmodes="*" privs="users/auspex">
49 #-#-#-#-#-#-#-#-#-#-#-#- OPERATOR COMPOSITION -#-#-#-#-#-#-#-#-#-#-#
51 # This is where you specify which types of operators you have on #
52 # your server, as well as the commands they are allowed to use. #
53 # This works alongside with the classes specified above. #
57 # name: Name of type. Used in actual server operator accounts below.
60 # classes: Classes (blocks above) that this type belongs to.
61 classes="SACommands OperChat BanControl HostCloak Shutdown ServerLink"
63 # vhost: Host opers of this type get when they log in (oper up). This is optional.
64 vhost="netadmin.omega.example.org"
66 # maxchans: Maximum number of channels opers of this type can be in at once.
69 # modes: User modes besides +o that are set on an oper of this type
70 # when they oper up. Used for snomasks and other things.
71 # Requires that m_opermodes.so be loaded.
74 <type name="GlobalOp" classes="SACommands OperChat BanControl HostCloak ServerLink" vhost="ircop.omega.example.org">
75 <type name="Helper" classes="HostCloak" vhost="helper.omega.example.org">
78 #-#-#-#-#-#-#-#-#-#-#- OPERATOR CONFIGURATION -#-#-#-#-#-#-#-#-#-#-#
80 # Opers are defined here. This is a very important section. #
81 # Remember to only make operators out of trustworthy people. #
84 # Operator account with a plain-text password.
86 # name: Oper login that is used to oper up (/oper name password).
87 # Remember: This is case sensitive.
90 # password: Case-sensitive, unhashed (plaintext).
93 # host: What hostnames and IPs are allowed to use this operator account.
94 # Multiple options can be separated by spaces and CIDRs are allowed.
95 # You can use just * or *@* for this section, but it is not recommended
96 # for security reasons.
97 host="attila@inspircd.org *@2001:db8::/32"
99 # ** ADVANCED ** This option is disabled by default.
100 # fingerprint: When using the m_sslinfo module, you may specify
101 # a key fingerprint here. This can be obtained by using the /sslinfo
102 # command while the module is loaded, and is also noticed on connect.
103 # This enhances security by verifying that the person opering up has
104 # a matching SSL client certificate, which is very difficult to
105 # forge (impossible unless preimage attacks on the hash exist).
106 # If m_sslinfo isn't loaded, this option will be ignored.
107 #fingerprint="67cb9dc013248a829bb2171ed11becd4"
109 # autologin: If an SSL fingerprint for this oper is specified, you can
110 # have the oper block automatically log in. This moves all security of the
111 # oper block to the protection of the client certificate, so be sure that
112 # the private key is well-protected! Requires m_sslinfo.
115 # sslonly: If on, this oper can only oper up if they're using a SSL connection.
116 # Setting this option adds a decent bit of security. Highly recommended
117 # if the oper is on wifi, or specifically, unsecured wifi. Note that it
118 # is redundant to specify this option if you specify a fingerprint.
119 # This setting only takes effect if m_sslinfo is loaded.
122 # vhost: Overrides the vhost in the type block. Class and modes may also
124 vhost="attila.example.org"
126 # type: Which type of operator this person is; see the block
127 # above for the list of types. NOTE: This is case-sensitive as well.
130 # Operator with a plaintext password and no comments, for easy copy & paste.
134 host="brain@dialup15.isp.com *@localhost *@example.com *@2001:db8::/32"
135 #fingerprint="67cb9dc013248a829bb2171ed11becd4"
138 # Operator with a hashed password. It is highly recommended to use hashed passwords.
140 # name: Oper login that is used to oper up (/oper name password).
141 # Remember: This is case sensitive.
144 # hash: What hash this password is hashed with.
145 # Requires the module for selected hash (m_md5.so, m_sha256.so
146 # or m_ripemd160.so) be loaded and the password hashing module
147 # (m_password_hash.so) loaded.
148 # Options here are: "md5", "sha256" and "ripemd160", or one of
149 # these prefixed with "hmac-", e.g.: "hmac-sha256".
150 # Create hashed passwords with: /mkpasswd <hash> <password>
153 # password: A hash of the password (see above option) hashed
154 # with /mkpasswd <hash> <password>. See m_password_hash in modules.conf
155 # for more information about password hashing.
156 password="qQmv3LcF$Qh63wzmtUqWp9OXnLwe7yv1GcBwHpq59k2a0UrY8xe0"
158 # host: What hostnames and IPs are allowed to use this operator account.
159 # Multiple options can be separated by spaces and CIDRs are allowed.
160 # You can use just * or *@* for this section, but it is not recommended
161 # for security reasons.
162 host="*@127.0.0.1 *@192.0.2.40 *@198.51.100.4"
164 # type: Which type of operator this person is; see the block
165 # above for the list of types. NOTE: This is case-sensitive as well.