2 ################################################
3 ### Managed by someone's ansible provisioner ###
4 ################################################
5 # Part of: https://git.somenet.org/root/pub/somesible.git
6 # 2017-2024 by someone <someone@somenet.org>
10 * First, create the service.
11 * Note that an easy way to rename this service is to define{} the client name to something else.
17 host = "services.host"
18 gecos = "Operator Service"
39 * Core OperServ commands.
41 * In Anope modules can provide (multiple) commands, each of which has a unique command name. Once these modules
42 * are loaded you can then configure the commands to be added to any client you like with any name you like.
44 * Additionally, you may provide a permission name that must be in the opertype of users executing the command.
46 * Sane defaults are provided below that do not need to be edited unless you wish to change the default behavior.
49 /* Give it a help command. */
50 command { service = "OperServ"; name = "HELP"; command = "generic/help"; }
55 * Provides the command operserv/akill.
57 * Used to ban users from the network.
59 module { name = "os_akill" }
60 command { service = "OperServ"; name = "AKILL"; command = "operserv/akill"; permission = "operserv/akill"; }
65 * Provides the command operserv/chankill.
67 * Used to akill users from an entire channel.
69 module { name = "os_chankill" }
70 command { service = "OperServ"; name = "CHANKILL"; command = "operserv/chankill"; permission = "operserv/chankill"; }
75 * Provides the command operserv/defcon.
77 * Allows you to set services in defcon mode, which can be used to restrict services access
85 * Default DefCon level (1-5) to use when starting Services up. Level 5 constitutes normal operation
86 * while level 1 constitutes the most restrictive operation. If this setting is left out or set to
87 * 0, DefCon will be disabled and the rest of this block will be ignored.
92 * The following 4 directives define what operations will take place when DefCon is set to levels
93 * 1 through 4. Each level is a list that must be separated by spaces.
95 * The following operations can be defined at each level:
96 * - nonewchannels: Disables registering new channels
97 * - nonewnicks: Disables registering new nicks
98 * - nomlockchanges: Disables changing MLOCK on registered channels
99 * - forcechanmodes: Forces all channels to have the modes given in the later chanmodes directive
100 * - reducedsessions: Reduces the session limit to the value given in the later sessionlimit directive
101 * - nonewclients: KILL any new clients trying to connect
102 * - operonly: Services will ignore all non-IRCops
103 * - silentoperonly: Services will silently ignore all non-IRCops
104 * - akillnewclients: AKILL any new clients trying to connect
105 * - nonewmemos: No new memos will be sent to block MemoServ attacks
107 level4 = "nonewchannels nonewnicks nomlockchanges reducedsessions"
108 level3 = "nonewchannels nonewnicks nomlockchanges forcechanmodes reducedsessions"
109 level2 = "nonewchannels nonewnicks nomlockchanges forcechanmodes reducedsessions silentoperonly"
110 level1 = "nonewchannels nonewnicks nomlockchanges forcechanmodes reducedsessions silentoperonly akillnewclients"
113 * New session limit to use when a DefCon level is using "reduced" session limiting.
118 * Length of time to add an AKILL for when DefCon is preventing new clients from connecting to the
124 * The channel modes to set on all channels when the DefCon channel mode system is in use.
126 * Note 1: Choose these modes carefully, because when DefCon switches to a level which does NOT have
127 * the mode setting selected, Services will set the reverse on all channels, e.g. if this setting
128 * is +RN when DefCon is used, all channels will be set to +RN, when DefCon is removed, all
129 * channels will be set to -RN. You don't want to set this to +k for example, because when DefCon
130 * is removed, all channels are set -k, removing the key from previously keyed channels.
132 * Note 2: MLOCKed modes will not be lost.
137 * This value can be used to automatically return the network to DefCon level 5 after the specified
138 * time period, just in case any IRC Operator forgets to remove a DefCon setting.
140 * This directive is optional.
145 * If set, Services will send a global message on DefCon level changes.
147 * This directive is optional.
149 #globalondefcon = yes
152 * If set, Services will send the global message defined in the message directive on DefCon level
155 * This directive is optional.
157 #globalondefconmore = yes
160 * Defines the message that will be sent on DefCon level changes when globalondefconmore is set.
162 * This directive is required only when globalondefconmore is set.
164 #message = "Put your message to send your users here. Don't forget to uncomment globalondefconmore"
167 * Defines the message that will be sent when DefCon is returned to level 5. This directive is optional,
168 * and will also override globalondefcon and globalondefconmore when set.
170 #offmessage = "Services are now back to normal, sorry for any inconvenience"
173 * Defines the reason to use when clients are KILLed or AKILLed from the network while the proper
174 * DefCon operation is in effect.
176 #akillreason = "This network is currently not accepting connections, please try again later."
178 #command { service = "OperServ"; name = "DEFCON"; command = "operserv/defcon"; }
183 * Provides the command operserv/dns.
185 * This module requires that m_dns is loaded.
187 * This module allows controlling a DNS zone. This is useful for
188 * controlling what servers users are placed on for load balancing,
189 * and to automatically remove split servers.
191 * To use this module you must set a nameserver record for services
192 * so that DNS queries go to services.
194 * Alternatively, you may use a slave DNS server to hide service's IP,
195 * provide query caching, and provide better fault tolerance.
197 * To do this using BIND, configure similar to:
199 * options { max-refresh-time 60; };
200 * zone "irc.example.com" IN {
202 * masters { 127.0.0.1 port 5353; };
205 * Where 127.0.0.1:5353 is the IP and port services are listening on.
206 * We recommend you externally firewall both UDP and TCP to the port
207 * Anope is listening on.
209 * Finally set a NS record for irc.example.com. to BIND or services.
215 /* TTL for records. This should be very low if your records change often. */
218 /* If a server drops this many users the server is automatically removed from the DNS zone.
219 * This directive is optional.
223 /* The time used for user_drop_mark. */
226 /* When a server is removed from the zone for dropping users, it is readded after this time.
227 * This directive is optional.
229 user_drop_readd_time = 5m
231 /* If set, when a server splits, it is automatically removed from the zone. */
232 remove_split_servers = yes
234 /* If set, when a server connects to the network, it will be automatically added to
235 * the zone if it is a known server.
237 readd_connected_servers = no
239 #command { service = "OperServ"; name = "DNS"; command = "operserv/dns"; permission = "operserv/dns"; }
244 * Provides the command operserv/config.
246 * Used to view and set configuration options while services are running.
248 module { name = "os_config" }
249 command { service = "OperServ"; name = "CONFIG"; command = "operserv/config"; permission = "operserv/config"; }
254 * Provides the command operserv/forbid.
256 * Used to forbid specific nicks, channels, emails, etc. from being used.
258 module { name = "os_forbid" }
259 command { service = "OperServ"; name = "FORBID"; command = "operserv/forbid"; permission = "operserv/forbid"; }
264 * Provides the command operserv/ignore.
266 * Used to make Services ignore users.
268 module { name = "os_ignore" }
269 command { service = "OperServ"; name = "IGNORE"; command = "operserv/ignore"; permission = "operserv/ignore"; }
274 * Provides the command operserv/info.
276 * Used to add oper only notes to users and channels.
278 module { name = "os_info" }
279 command { service = "OperServ"; name = "INFO"; command = "operserv/info"; permission = "operserv/info"; }
284 * Provides the command operserv/jupe.
286 * Used to disconnect servers from the network and prevent them from relinking.
288 module { name = "os_jupe" }
289 command { service = "OperServ"; name = "JUPE"; command = "operserv/jupe"; permission = "operserv/jupe"; }
294 * Provides the command operserv/kick.
296 * Used to kick users from channels.
298 module { name = "os_kick" }
299 command { service = "OperServ"; name = "KICK"; command = "operserv/kick"; permission = "operserv/kick"; }
304 * Provides the command operserv/kill.
306 * Used to forcibly disconnect users from the network.
308 module { name = "os_kill" }
309 command { service = "OperServ"; name = "KILL"; command = "operserv/kill"; permission = "operserv/kill"; }
314 * Provides the commands operserv/chanlist and operserv/userlist.
316 * Used to list and search the channels and users currently on the network.
318 module { name = "os_list" }
319 command { service = "OperServ"; name = "CHANLIST"; command = "operserv/chanlist"; permission = "operserv/chanlist"; }
320 command { service = "OperServ"; name = "USERLIST"; command = "operserv/userlist"; permission = "operserv/userlist"; }
325 * Provides the commands operserv/login and operserv/logout.
327 * Used to login to OperServ, only required if your oper block requires this.
329 module { name = "os_login" }
330 command { service = "OperServ"; name = "LOGIN"; command = "operserv/login"; }
331 command { service = "OperServ"; name = "LOGOUT"; command = "operserv/logout"; }
336 * Provides the command operserv/logsearch.
338 * Used to search services log files.
342 name = "os_logsearch"
344 /* The log file name to search. There should be a log{} block configured to log
345 * to a file of this name.
347 logname = "services.log"
349 command { service = "OperServ"; name = "LOGSEARCH"; command = "operserv/logsearch"; permission = "operserv/logsearch"; }
354 * Provides the commands operserv/mode and operserv/umode.
356 * Used to change user and channel modes.
358 module { name = "os_mode" }
359 command { service = "OperServ"; name = "UMODE"; command = "operserv/umode"; permission = "operserv/umode"; }
360 command { service = "OperServ"; name = "MODE"; command = "operserv/mode"; permission = "operserv/mode"; }
365 * Provides the commands operserv/modinfo and operserv/modlist.
367 * Used to show information about loaded modules.
369 module { name = "os_modinfo" }
370 command { service = "OperServ"; name = "MODINFO"; command = "operserv/modinfo"; permission = "operserv/modinfo"; }
371 command { service = "OperServ"; name = "MODLIST"; command = "operserv/modlist"; permission = "operserv/modinfo"; }
376 * Provides the commands operserv/modload, operserv/modreload, and operserv/modunload.
378 * Used to load, reload, and unload modules.
380 module { name = "os_module" }
381 command { service = "OperServ"; name = "MODLOAD"; command = "operserv/modload"; permission = "operserv/modload"; }
382 command { service = "OperServ"; name = "MODRELOAD"; command = "operserv/modreload"; permission = "operserv/modload"; }
383 command { service = "OperServ"; name = "MODUNLOAD"; command = "operserv/modunload"; permission = "operserv/modload"; }
388 * Provides the commands operserv/logonnews, operserv/opernews, and operserv/randomnews.
390 * Used to configure news notices shown to users when they connect, and opers when they oper.
397 * The service bot names to use to send news to users on connection
398 * and to opers when they oper.
401 oper_announcer = "OperServ"
404 * The number of LOGON/OPER news items to display when a user logs on.
406 * This directive is optional, if no set it will default to 3.
411 command { service = "OperServ"; name = "LOGONNEWS"; command = "operserv/logonnews"; permission = "operserv/news"; }
412 command { service = "OperServ"; name = "OPERNEWS"; command = "operserv/opernews"; permission = "operserv/news"; }
413 command { service = "OperServ"; name = "RANDOMNEWS"; command = "operserv/randomnews"; permission = "operserv/news"; }
418 * Provides the command operserv/noop.
420 * Used to NOOP a server, which prevents users from opering on that server.
422 module { name = "os_noop" }
423 command { service = "OperServ"; name = "NOOP"; command = "operserv/noop"; permission = "operserv/noop"; }
428 * Provides the command operserv/oline.
430 * Used to set oper flags on users, and is specific to UnrealIRCd.
431 * See /helpop ?svso on your IRCd for more information.
433 module { name = "os_oline" }
434 command { service = "OperServ"; name = "OLINE"; command = "operserv/oline"; permission = "operserv/oline"; }
439 * Provides the command operserv/oper.
441 * Used to configure opers and show information about opertypes.
443 module { name = "os_oper" }
444 command { service = "OperServ"; name = "OPER"; command = "operserv/oper"; permission = "operserv/oper"; }
449 * Provides the command operserv/reload.
451 * Used to reload the services.conf configuration file.
453 module { name = "os_reload" }
454 command { service = "OperServ"; name = "RELOAD"; command = "operserv/reload"; permission = "operserv/reload"; }
459 * Provides the commands operserv/exception and operserv/session.
461 * This module enables session limiting. Session limiting prevents users from connecting more than a certain
462 * number of times from the same IP at the same time - thus preventing most types of cloning.
463 * Once a host reaches it's session limit, all clients attempting to connect from that host will
464 * be killed. Exceptions to the default session limit can be defined via the exception list.
466 * Used to manage the session limit exception list, and view currently active sessions.
473 * Default session limit per host. Once a host reaches it's session limit, all clients attempting
474 * to connect from that host will be killed.
476 * This directive is require if os_session is loaded.
478 defaultsessionlimit = 3
481 * The maximum session limit that may be set for a host in an exception.
483 * This directive is require if os_session is loaded.
485 maxsessionlimit = 100
488 * Sets the default expiry time for session exceptions.
490 * This directive is require if os_session is loaded.
495 * The message that will be NOTICE'd to a user just before they are removed from the network because
496 * their host's session limit has been exceeded. It may be used to give a slightly more descriptive
497 * reason for the impending kill as opposed to simply "Session limit exceeded".
499 * This directive is optional, if not set, nothing will be sent.
501 sessionlimitexceeded = "The session limit for your IP %IP% has been exceeded."
504 * Same as above, but should be used to provide a website address where users can find out more
505 * about session limits and how to go about applying for an exception.
507 * Note: This directive has been intentionally commented out in an effort to remind you to change
508 * the URL it contains. It is recommended that you supply an address/URL where people can get help
509 * regarding session limits.
511 * This directive is optional, if not set, nothing will be sent.
513 #sessionlimitdetailsloc = "Please visit http://your.website.url/ for more information about session limits."
516 * If set and is not 0, this directive tells Services to add an AKILL the number of subsequent kills
517 * for the same host exceeds this value, preventing the network from experiencing KILL floods.
519 * This directive is optional.
524 * Sets the expiry time for AKILLs set for hosts exceeding the maxsessionkill directive limit.
526 * This directive is optional, if not set, defaults to 30 minutes.
528 sessionautokillexpiry = 30m
531 * Sets the CIDR value used to determine which IP addresses represent the same person.
532 * By default this would limit 3 connections per IPv4 IP and 3 connections per IPv6 IP.
533 * If you are receiving IPv6 clone attacks it may be useful to set session_ipv6_cidr to
536 session_ipv4_cidr = 32
537 session_ipv6_cidr = 128
539 #command { service = "OperServ"; name = "EXCEPTION"; command = "operserv/exception"; permission = "operserv/exception"; }
540 #command { service = "OperServ"; name = "SESSION"; command = "operserv/session"; permission = "operserv/session"; }
545 * Provides the command operserv/set.
547 * Used to set various settings such as superadmin, debug mode, etc.
554 * If set, Services Admins will be able to use SUPERADMIN [ON|OFF] which will temporarily grant
555 * them extra privileges such as being a founder on ALL channels.
557 * This directive is optional.
562 command { service = "OperServ"; name = "SET"; command = "operserv/set"; permission = "operserv/set"; }
567 * Provides the commands operserv/quit, operserv/restart, and operserv/shutdown.
569 * Used to quit, restart, or shutdown services.
571 module { name = "os_shutdown" }
572 command { service = "OperServ"; name = "QUIT"; command = "operserv/quit"; permission = "operserv/quit"; }
573 command { service = "OperServ"; name = "RESTART"; command = "operserv/restart"; permission = "operserv/restart"; }
574 command { service = "OperServ"; name = "SHUTDOWN"; command = "operserv/shutdown"; permission = "operserv/shutdown"; }
579 * Provides the operserv/stats command.
581 * Used to show statistics about services.
583 module { name = "os_stats" }
584 command { service = "OperServ"; name = "STATS"; command = "operserv/stats"; permission = "operserv/stats"; }
589 * Provides the commands operserv/svsnick, operserv/svsjoin, and operserv/svspart.
591 * Used to force users to change nicks, join and part channels.
593 module { name = "os_svs" }
594 command { service = "OperServ"; name = "SVSNICK"; command = "operserv/svsnick"; permission = "operserv/svs"; }
595 command { service = "OperServ"; name = "SVSJOIN"; command = "operserv/svsjoin"; permission = "operserv/svs"; }
596 command { service = "OperServ"; name = "SVSPART"; command = "operserv/svspart"; permission = "operserv/svs"; }
601 * Provides the operserv/snline and operserv/sqline commands.
603 * Used to ban real names, nick names, and possibly channels.
605 module { name = "os_sxline" }
606 command { service = "OperServ"; name = "SNLINE"; command = "operserv/snline"; permission = "operserv/snline"; }
607 command { service = "OperServ"; name = "SQLINE"; command = "operserv/sqline"; permission = "operserv/sqline"; }
612 * Provides the operserv/update command.
614 * Use to immediately update the databases.
616 module { name = "os_update" }
617 command { service = "OperServ"; name = "UPDATE"; command = "operserv/update"; permission = "operserv/update"; }