/etc/ratbox-services/ratbox-services.conf is in ratbox-services-mysql 1.2.4-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 | # doc/example.conf - ratbox-services example configuration file
# Copyright (C) 2003-2007 Lee Hardy
# Copyright (C) 2003-2007 ircd-ratbox development team
#
# $Id: example.conf 26716 2010-01-03 18:30:48Z leeh $
/* serverinfo: contains services information */
serverinfo {
/* name: the name of our services */
name = "ratbox.services";
/* sid: the unique server id of services. This follows the same
* form as ircd, eg [0-9][A-Z0-9][A-Z0-9]
*/
sid = "36D";
/* description: the description of our services */
description = "ratbox services";
/* vhost: default vhost to use for connections */
# vhost = "127.0.0.1";
/* dcc vhost: default vhost to use for dcc connections.
* this must be set for /ctcp <service> chat to work.
*/
dcc_vhost = "192.168.4.2";
/* dcc ports: specifies the portrange to use for inbound
* chat requests.
*/
dcc_low_port = 3000;
dcc_high_port = 5000;
/* reconnect time: time duration between reconnections to
* our uplinks.
*/
reconnect_time = 5 minutes;
/* ping time: time duration to send PINGs after no data */
ping_time = 5 minutes;
/* ratbox: pure ircd-ratbox/hyb7 network */
ratbox = yes;
/* client flood settings: control how many commands an individual
* user may issue in the given time. The limits work on a penalty
* points system, with between 1-3 points per command. HELP has
* a penalty of 2.
*/
/* client flood max: the maximum score a client may have before we
* stop parsing commands from them.
*/
client_flood_max = 20;
/* client flood max ignore: the score at which we start ignoring a
* client.
*/
client_flood_max_ignore = 30;
/* client flood ignore time: the duration for which we ignore a
* client.
*/
client_flood_ignore_time = 5 minutes;
/* client flood time: the length of time to keep the clients current
* flooding score for.
*/
client_flood_time = 1 minute;
/* allow stats o: allow stats O requests to list opers. This
* will only ever be allowed from ircops/services opers
*/
allow_stats_o = yes;
/* allow sslonly: allow users to set +S (SSL only) channelmode
* through chanserv. This affects chanserv only -- services will
* always parse and accept +S from the ircd.
*
* IMPORTANT: do not enable this, if it is not enabled on the ircd.
*/
allow_sslonly = no;
/* default language: the default language to use when communicating
* with users. If userserv is enabled, users may also pick their
* own language from the list. Note, there is no error checking
* for whether this is a valid/available language.
*
* Available languages:
* en - English
*/
#default_language = "en";
};
/* database: contains database information
* This will not be used with the sqlite backend.
*/
database {
/* host: the host or ip address to connect to the database server */
host = "127.0.0.1";
/* name: the name of the database we are attaching to */
name = "ratbox_services";
/* username: the username we login to the database with */
username = "rserv";
/* password: the password we login to the database with */
password = "something";
};
/* email settings: these settings configure how (if at all) we send email.
*
* IMPORTANT: sending emails carries with it a risk of exposing the
* hidden ips of services servers -- your local mail server should
* take whatever steps are necessary to avoid disclosing private
* ips. Ideally, this would involve relaying through another
* (public) mail server which strips out originating headers.
*/
email {
/* disable email: a master switch to disable sending of emails.
* This will prevent ratbox-services from ever sending emails, and
* will disable usage of commands that require emails.
*/
disable_email = yes;
/* program: email will only ever be sent through a local program,
* this controls the program we call to do it. This should
* be a comma seperated list of quoted strings, starting with the
* email program instead and then optionally any arguments it takes.
*/
email_program = "/usr/sbin/sendmail", "-t";
/* email name: the "name" of the user emails originate from */
email_name = "services";
/* email address: the address emails originate from */
email_address = "services@example.com";
/* email limits: these two options control the maximum number of
* emails we will send in a specified duration
*/
email_number = 15;
email_duration = 1 minute;
};
/* admin: contains general admin information */
admin {
name = "admin";
description = "ratbox services";
email = "<admin@services>";
};
/* connect: specifies a server to connect to, name of uplink
* is specified in quotation marks
*/
connect "irc.uplink.com" {
/* host: the host to connect to */
host = "10.0.0.1";
/* vhost: optional vhost to use for this connection */
# vhost = "10.0.0.2";
/* password: the password to use */
password = "fooble";
/* port: the port to connect on */
port = 5555;
/* autoconn: auto connect to this server. default yes */
# autoconn = no;
};
/* operator: specifies an oper who has extended access to services.
* The username is specified in quotation marks.
*/
operator "leeh" {
/* user: specifies a user@host who may connect.
* multiple may be specified, wildcards are accepted.
*/
user = "flame@127.0.0.1";
/* you may also restrict the oper to a specific server, they will
* then only be able to connect when using that server.
*/
#user = "flame@127.0.0.1", "irc.ircd-ratbox.org";
/* password: the password to login */
password = "meep";
/* encrypted: specifies whether the above password has been
* encrypted or not. default: yes
*/
#encrypted = no;
/* flags: specifies what general privs an oper has
* admin - services admin, .die etc
* dcc - ability to dcc
* route - ability to route services to uplinks
*/
flags = admin, dcc, route;
/* userserv flags:
* admin - all of the below
* register - access to register any username
* suspend - access to (un)suspend users
* drop - access to drop usernames
* setpass - access to reset passwords on accounts
* setemail - access to reset email addresses on accounts
* oper - all of the below
* list - access to list registered users
* info - access to extended username info
*/
userserv = admin;
/* chanserv flags:
* admin - all of the below
* register - access to register any channel to any user
* suspend - access to (un)suspend channels
* drop - access to drop channel registrations
* oper - all of the below
* list - access to list registered chans
* info - access to extended channel info
*/
chanserv = admin;
/* nickserv flags:
* drop - access to drop nickname registrations
*/
nickserv = drop;
/* operserv flags:
* maintain - access to OPERSERV::DIE OPERSERV::REHASH and
* OPERSERV::DBSYNC
* ignore - control over services ignore list
* admin - all of the below
* channel - access to control the channels operserv is in
* takeover - access to OPERSERV::TAKEOVER
* osmode - access to OPERSERV::OSMODE
*/
operserv = admin;
/* operbot flags:
* channel - access to control the channels operbot is in
*/
operbot = channel;
/* global flags:
* netmsg - access to GLOBAL::NETMSG
* welcome - ability to modify welcome messages sent when a
* user connects to irc
*/
global = netmsg, welcome;
/* jupeserv flags:
* jupe - access to (un)jupe
*/
jupeserv = jupe;
/* banserv flags:
* kline - access to set klines
* xline - access to set xlines
* resv - access to set resvs
* perm - access to set permanent bans
* remove - access to remove other opers bans
* sync - access to sync bans to a given server Opers
* can always sync bans to their own server.
* regexp - access to set regular expression matches
* against connecting clients
* nomax - client is exempt from any limits on maximum
* matches to a ban
*/
banserv = kline, xline, resv, perm, remove, regexp, sync;
};
/* userserv - provides facilities to users for the registration of
* usernames. Required for channel registration.
*/
service "userserv" {
/* nick: specify the nick of the service */
nick = "USERSERV";
/* username: specify the username of the service */
username = "user";
/* host: specify the host of the service */
host = "services.int";
/* realname: the real name field of the service */
realname = "user registration service";
/* flags: specifies options for this service
* opered - this service is opered
* msg_self - messages from this service come from its nickname,
* rather than our servername
* disabled - this service is disabled
* short_help - send an simple list of commands, rather than an
* index containing brief documentation of each command
* stealth - service ignores any messages from normal users
* who havent issued OLOGIN. OLOGIN itself will
* always be accepted. ircops are exempt.
* login_help - requires normal users are logged in before HELP
* can be used
* wallop_adm - send server wallops when admin commands are used
* jupeserv sends wallops even without this
* require_shortcut - require commands to this service are sent
* using the command shortcuts (eg /chanserv)
*/
flags = opered, msg_self;
/* loglevel: level to log at, 0 to disable logging
* 1 - Admin commands
* 2 - REGISTER
* 3 - SET, RESETPASS
* 4 -
* 5 - LOGIN
*/
loglevel = 5;
/* disable register: disables USERSERV::REGISTER for users */
#disable_register = yes;
/* register url: optional url to point users towards when
* disable_register is set above.
*/
#register_url = "http://whatever/";
/* register limits: amount of user registrations to allow overall
* from all clients, in the given time
*/
register_time = 1 minute;
register_amount = 5;
/* host register limits: amount of user registrations to allow from
* a specific host, in the given time
*/
host_register_time = 1 day;
host_register_amount = 2;
/* register email: require an email address to register a username */
register_email = no;
/* register verify: ignore the password the user supplies when
* registering a username and email them a password instead.
*/
register_verify = no;
/* expire times: these durations control how long usernames can be
* unused before they are expired. Settings are for normal
* usernames, suspended usernames and unverified usernames.
*/
expire_time = 4 weeks;
expire_suspended_time = 4 weeks;
expire_unverified_time = 1 day;
/* expiry bonuses: these allow you to grant extra expiry bonuses to
* usernames that have been registered for a given length of time,
* extending the length of time they can be unused before expiry.
*/
/* expire bonus regtime: start granting expiry bonuses once a
* username has been registered for this length of time
*/
expire_bonus_regtime = 2 months;
/* expire bonus: grant an expiry bonus of a given duration, for
* every length of time a username has been registered, upto a
* maximum bonus of a given limit.
*/
expire_bonus = 1 day;
expire_bonus_per_time = 2 weeks;
expire_bonus_max = 4 weeks;
/* allow set password: allow users to change their password */
allow_set_password = yes;
/* allow resetpass: allow users to request a reset of their
* password. They will be sent an email containing a token, which
* they must then use to confirm the password reset.
*/
allow_resetpass = no;
/* allow resetemail: allow users to request a reset of their
* email. This happens by two steps. They will be sent an email
* to their current email containing a token, which they must
* then use to confirm the email reset. Another mail is then
* sent to the new address to verify it's validity.
*/
allow_resetemail = no;
/* resetpass_duration: the duration a USERSERV::RESETPASS request is
* kept around whilst waiting for confirmation. Note: users can
* only have one request pending for confirmation.
*/
resetpass_duration = 1 day;
/* resetemail_duration: the duration a USERSERV::RESETEMAIL request is
* kept around whilst waiting for confirmation. Note: users can
* only have one request pending for confirmation.
*/
resetemail_duration = 1 day;
/* reset regtime duration: duration a username must be registered for
* before they can use resetpass/resetemail commands on it
*/
reset_regtime_duration = 2 weeks;
/* allow set email: allow users to change their email addy */
allow_set_email = yes;
/* max logins: maximum amount of clients who may be logged into a
* single username
*/
max_logins = 5;
/* show suspend reasons: show suspend reasons to users (but not the
* admin who suspended the channel)
*/
show_suspend_reasons = no;
};
/* chanserv - provides facilities for the registration of channels. */
service "chanserv" {
nick = "CHANSERV";
username = "chan";
host = "services.int";
realname = "channel registration service";
flags = opered, login_help;
/* loglevel: level to log at, 0 to disable logging
* 1 - Admin commands
* 2 - REGISTER
* 3 - LISTUSERS, DELOWNER
* 4 - CLEARMODES, CLEAROPS, CLEARALLOPS, CLEARBANS
* 5 - ADDUSER, DELUSER, MODUSER
* 6 - Everything.
*/
loglevel = 3;
/* disable register: disables CHANSERV::REGISTER for users */
#disable_register = yes;
/* register limits: amount of user registrations to allow overall
* from all clients, in the given time
*/
register_time = 1 minute;
register_amount = 5;
/* host register limits: amount of user registrations to allow from
* a specific host, in the given time
*/
host_register_time = 1 day;
host_register_amount = 4;
/* expire times: these durations control how long channels can be
* unused before they are expired. Settings are for normal
* channels and suspended channels
*/
expire_time = 4 weeks;
expire_suspended_time = 4 weeks;
/* max bans: maximum amount of bans a channel may have */
max_bans = 50;
/* expireban frequency: how often to run the expiry of channel
* bans. It is advised this is not set lower than 5 minutes, as the
* expiry code is quite cpu intensive. This value is also only
* used on startup and is not changed on rehash.
*/
expireban_frequency = 15 minutes;
/* enforcetopic frequency: how often to reset topics on channels to
* that stored within chanserv.
*/
enforcetopic_frequency = 1 hour;
/* autojoin empty: honour autojoin flags for empty channels. With
* this off (as is default) chanserv will instead automatically
* remove itself from channels where its the only member, except when
* it needs to enforce bans etc.
*
* Enabling this can lead to lots of channels where chanserv is the
* only person in there.
*/
autojoin_empty = no;
/* email delowner: require users removing themselves as owner of a
* channel to confirm the action using a token sent through email
*/
email_delowner = no;
/* delowner duration: if email_delowner is enabled, the duration the
* tokens last.
*/
delowner_duration = 1 day;
/* show suspend reasons: show suspend reasons to users (but not the
* admin who suspended the channel)
*/
show_suspend_reasons = no;
};
/* nickserv - provides nickname registration. These require a username
* registration.
*/
service "nickserv" {
nick = "NICKSERV";
username = "nick";
host = "services.int";
realname = "nickname services";
/* disabled by default */
flags = opered, msg_self, disabled;
/* loglevel: level to log at, 0 to disable logging
* 1 - Admin commands
* 2 - REGISTER
* 3 - DROP
* 4 -
* 5 - INFO
*/
loglevel = 3;
/* max nicks: maximum nicknames a user may register */
max_nicks = 2;
/* allow set warn: enable NICKSERV::SET::WARN, which allows users to
* set nickname warnings on their nicknames, simple notices which
* tell users the nickname is registered.
*/
allow_set_warn = yes;
/* warn string: string give to clients when they use a registered
* nickname.
*/
warn_string = "This nickname is registered, you may be disconnected if a user regains this nickname.";
};
/* operserv - provides facilities for issuing modes and takeovers */
service "operserv" {
nick = "OPERSERV";
username = "oper";
host = "services.int";
realname = "oper services";
flags = opered, msg_self, stealth, wallop_adm;
/* loglevel: level to log at, 0 to disable logging
* 1 - Admin commands
* 2 - DBSYNC, LISTOPERS
*/
loglevel = 1;
/* allow die: allow OPERSERV::DIE over irc */
allow_die = yes;
};
/* jupeserv - provides opers and admins the ability to jupe servers
* preventing them from connecting to the network.
*/
service "jupeserv" {
nick = "JUPESERV";
username = "jupe";
host = "services.int";
realname = "server jupe service";
flags = opered, msg_self, stealth;
/* loglevel: level to log at, 0 to disable logging
* 1 - Admin commands
* 2 - CALLJUPE/CALLUNJUPE
* 3 - PENDING
*/
loglevel = 2;
/* merge into operserv: merge all of this services commands into the
* operserv service. This option is only used when ratbox-services
* starts.
*
* Note: If this service is merged into operserv, it will follow the
* service flags and loglevel from operserv.
*/
merge_into_operserv = no;
/* oper jupe options. The following options control jupes/unjupes
* which can be initiated by any oper, without needing special
* services access.
*/
/* oper score: the score an oper contributes towards a jupe/unjupe.
* Set to 0 to disallow regular opers calling jupes/unjupes.
*/
oper_score = 3;
/* jupe score: the score needed to trigger a jupe.
* Set to 0 to disallow regular opers calling jupes.
*/
jupe_score = 15;
/* unjupe score: the score needed to trigger an unjupe.
* Set to 0 to disallow regular opers calling unjupes.
*/
unjupe_score = 15;
/* pending time: how long pending jupes/unjupes last whilst
* untriggered.
*/
pending_time = 30 minutes;
};
/* operbot - a bot which will invite/op ircops in the set channels. Useful
* for oper only channels etc.
*/
service "operbot" {
nick = "operbot";
username = "operbot";
host = "services.int";
realname = "oper op/invite services";
flags = opered, msg_self, stealth;
/* loglevel: level to log at, 0 to disable logging
* 1 - Admin commands
*/
loglevel = 1;
};
/* alis - a list service that lets users list channels according to more
* specific criteria than an ircd allows.
*/
service "alis" {
nick = "alis";
username = "alis";
host = "services.int";
realname = "Advanced List Service - /msg alis help";
flags = msg_self;
/* loglevel:
* 1 - LIST
*/
loglevel = 1;
/* max matches: maximum number of channels to output from LIST */
max_matches = 60;
};
/* global - the global messaging service. Allows messages to be sent
* to all users on the network.
*/
service "global" {
nick = "GLOBAL";
username = "global";
host = "services.int";
realname = "Network Message Service";
/* this service *MUST* be opered. */
flags = opered, msg_self, stealth;
/* loglevel: level to log at, 0 to disable logging
* 1 - Admin commands
*/
loglevel = 1;
};
/* banserv - the ban service. Allows bans (klines/xlines/resvs) to be
* sent to all servers. These bans can only be set on ircd-ratbox servers
* running version 1.5 and above.
*/
service "banserv" {
nick = "BANSERV";
username = "banserv";
host = "services.int";
realname = "Ban Service";
flags = opered, msg_self, stealth;
/* loglevel: level to log at, 0 to disable logging
* 1 - Admin commands
* 2 - LISTWELCOME
*/
loglevel = 1;
/* merge into operserv: merge all of this services commands into the
* operserv service. This option is only used when ratbox-services
* starts.
*
* Note: If this service is merged into operserv, it will follow the
* service flags and loglevel from operserv.
*/
merge_into_operserv = no;
/* unban time: duration unklines etc are kept around in the
* database to be synced with servers.
*/
unban_time = 2 weeks;
/* regexp time: when issuing klines for users who match regexps, how
* long to make the kline last
*/
regexp_time = 1 day;
/* max kline matches: maximum number of users a kline can match. Set to
* 0 to disable.
*/
max_kline_matches = 200;
/* max xline matches: maximum number of users an xline can match. Set to
* 0 to disable.
*/
max_xline_matches = 200;
/* max regexp matches: maximum number of users a regular expression can
* match. regexps that match more than this amount of users will be
* rejected. Set to 0 to disable.
*/
max_regexp_matches = 200;
/* temp workaround: work around short time limits for temporary
* bans, by issuing an unban for it first then reissuing the ban.
* ratbox-2.0.8 and below, and ratbox-2.1.2 and below have a maximum
* temp time of 4 weeks, which can cause some bans to expire even
* when banserv expects them to still be set.
*
* The only way for banserv to extend the expiry on these servers is
* to issue an unban first. The temp workaround does this for all
* temporary bans.
*/
temp_workaround = no;
/* autosync frequency: how often to automatically sync bans to
* all servers. Set to 0 to disable.
*/
autosync_frequency = 2 weeks;
};
/* watchserv - the service for watching commands issued to services. */
service "watchserv" {
nick = "WATCHSERV";
username = "watchserv";
host = "services.int";
realname = "Command Watching Service";
flags = msg_self, stealth;
/* loglevel: level to log at, 0 to disable logging
* 1 - Admin commands
*/
loglevel = 1;
/* merge into operserv: merge all of this services commands into the
* operserv service. This option is only used when ratbox-services
* starts.
*
* Note: If this service is merged into operserv, it will follow the
* service flags and loglevel from operserv.
*/
merge_into_operserv = no;
};
/* memoserv - the service for sending memos */
service "memoserv" {
nick = "MEMOSERV";
username = "memoserv";
host = "services.int";
realname = "Memo Service";
flags = msg_self;
/* loglevel: level to log at, 0 to disable logging
*
* 2 - SEND
* 3 - LIST, READ, DELETE
*/
loglevel = 0;
/* max memos: maximum number of memos a user may have. */
max_memos = 50;
/* memo regtime duration: duration a username must be registered for
* before they can send memos
*/
memo_regtime_duration = 1 week;
};
|