2007-01-25 06:40:21 +00:00
/* doc/example.conf - brief example configuration file
*
* Copyright (C) 2000-2002 Hybrid Development Team
* Copyright (C) 2002-2005 ircd-ratbox development team
* Copyright (C) 2005-2006 charybdis development team
*
2007-11-17 21:55:48 +00:00
* $Id: example.conf 3582 2007-11-17 21:55:48Z jilles $
2007-01-25 06:40:21 +00:00
*
* See reference.conf for more information.
*/
/* Extensions */
2008-04-08 19:24:47 +00:00
#loadmodule "extensions/chm_operonly_compat.so";
#loadmodule "extensions/chm_quietunreg_compat.so";
#loadmodule "extensions/chm_sslonly_compat.so";
2007-01-25 06:40:21 +00:00
#loadmodule "extensions/createauthonly.so";
#loadmodule "extensions/extb_account.so";
#loadmodule "extensions/extb_canjoin.so";
#loadmodule "extensions/extb_channel.so";
#loadmodule "extensions/extb_extgecos.so";
#loadmodule "extensions/extb_oper.so";
#loadmodule "extensions/extb_realname.so";
#loadmodule "extensions/extb_server.so";
2008-04-08 19:24:47 +00:00
#loadmodule "extensions/extb_ssl.so";
2007-01-25 06:40:21 +00:00
#loadmodule "extensions/hurt.so";
#loadmodule "extensions/m_findforwards.so";
#loadmodule "extensions/m_identify.so";
#loadmodule "extensions/no_oper_invis.so";
#loadmodule "extensions/sno_farconnect.so";
#loadmodule "extensions/sno_globalkline.so";
#loadmodule "extensions/sno_globaloper.so";
2007-05-24 04:02:33 +00:00
#loadmodule "extensions/sno_whois.so";
2010-12-07 05:44:55 +00:00
#loadmodule "extensions/override.so";
2013-04-27 15:00:10 +00:00
#loadmodule "extensions/no_kill_services.so";
2007-01-25 06:40:21 +00:00
2010-02-18 13:34:40 +00:00
/*
* IP cloaking extensions: use ip_cloaking_4.0
* if you're linking 3.2 and later, otherwise use
* ip_cloaking.so, for compatibility with older 3.x
* releases.
*/
#loadmodule "extensions/ip_cloaking_4.0.so";
#loadmodule "extensions/ip_cloaking.so";
2007-01-25 06:40:21 +00:00
serverinfo {
name = "hades.arpa";
sid = "42X";
description = "charybdis test server";
2011-08-13 00:33:10 +00:00
network_name = "StaticBox";
2007-01-25 06:40:21 +00:00
network_desc = "Your IRC network.";
hub = yes;
/* On multi-homed hosts you may need the following. These define
* the addresses we connect from to other servers. */
/* for IPv4 */
#vhost = "192.169.0.1";
/* for IPv6 */
#vhost6 = "3ffe:80e8:546::2";
2008-04-06 14:52:42 +00:00
2008-04-07 11:45:15 +00:00
/* ssl_private_key: our ssl private key */
2010-11-13 21:07:54 +00:00
ssl_private_key = "etc/ssl.key";
2008-04-07 11:45:15 +00:00
/* ssl_cert: certificate for our ssl server */
2010-11-13 21:07:54 +00:00
ssl_cert = "etc/ssl.cert";
2008-04-07 11:45:15 +00:00
/* ssl_dh_params: DH parameters, generate with openssl dhparam -out dh.pem 1024 */
ssl_dh_params = "etc/dh.pem";
2009-11-17 23:00:07 +00:00
/* ssld_count: number of ssld processes you want to start, if you
* have a really busy server, using N-1 where N is the number of
* cpu/cpu cores you have might be useful. A number greater than one
* can also be useful in case of bugs in ssld and because ssld needs
* two file descriptors per SSL connection.
2008-04-07 11:45:15 +00:00
*/
ssld_count = 1;
/* default max clients: the default maximum number of clients
* allowed to connect. This can be changed once ircd has started by
* issuing:
* /quote set maxclients <limit>
2007-03-05 18:58:38 +00:00
*/
2008-04-05 19:56:15 +00:00
default_max_clients = 1024;
2011-11-29 22:10:21 +00:00
2011-11-29 22:32:10 +00:00
/* nicklen: enforced nickname length (for this server only; must not
* be longer than the maximum length set while building).
*/
2011-11-29 22:10:21 +00:00
nicklen = 30;
2007-01-25 06:40:21 +00:00
};
admin {
name = "Lazy admin (lazya)";
2011-08-13 00:33:10 +00:00
description = "StaticBox client server";
2007-01-25 06:40:21 +00:00
email = "nobody@127.0.0.1";
};
log {
fname_userlog = "logs/userlog";
#fname_fuserlog = "logs/fuserlog";
fname_operlog = "logs/operlog";
#fname_foperlog = "logs/foperlog";
fname_serverlog = "logs/serverlog";
#fname_klinelog = "logs/klinelog";
fname_killlog = "logs/killlog";
fname_operspylog = "logs/operspylog";
#fname_ioerrorlog = "logs/ioerror";
};
/* class {} blocks MUST be specified before anything that uses them. That
* means they must be defined before auth {} and before connect {}.
*/
class "users" {
ping_time = 2 minutes;
2008-11-30 12:35:01 +00:00
number_per_ident = 10;
number_per_ip = 10;
number_per_ip_global = 50;
2008-11-30 12:31:59 +00:00
cidr_ipv4_bitlen = 24;
cidr_ipv6_bitlen = 64;
2008-11-30 12:35:01 +00:00
number_per_cidr = 200;
2007-01-25 06:40:21 +00:00
max_number = 3000;
sendq = 400 kbytes;
};
class "opers" {
ping_time = 5 minutes;
number_per_ip = 10;
max_number = 1000;
sendq = 1 megabyte;
};
class "server" {
ping_time = 5 minutes;
connectfreq = 5 minutes;
max_number = 1;
sendq = 4 megabytes;
};
listen {
2012-03-17 15:00:39 +00:00
/* defer_accept: wait for clients to send IRC handshake data before
* accepting them. if you intend to use software which depends on the
* server replying first, such as BOPM, you should disable this feature.
* otherwise, you probably want to leave it on.
*/
defer_accept = yes;
2007-01-25 06:40:21 +00:00
/* If you want to listen on a specific IP only, specify host.
* host definitions apply only to the following port line.
*/
#host = "192.169.0.1";
port = 5000, 6665 .. 6669;
2010-09-17 15:48:56 +00:00
sslport = 6697;
2007-01-25 06:40:21 +00:00
/* Listen on IPv6 (if you used host= above). */
#host = "3ffe:1234:a:b:c::d";
2011-05-14 06:42:27 +00:00
#port = 5000, 6665 .. 6669;
#sslport = 9999;
2007-01-25 06:40:21 +00:00
};
/* auth {}: allow users to connect to the ircd (OLD I:)
* auth {} blocks MUST be specified in order of precedence. The first one
* that matches a user will be used. So place spoofs first, then specials,
* then general access, then restricted.
*/
auth {
2007-08-29 22:04:45 +00:00
/* user: the user@host allowed to connect. Multiple IPv4/IPv6 user
* lines are permitted per auth block. This is matched against the
* hostname and IP address (using :: shortening for IPv6 and
* prepending a 0 if it starts with a colon) and can also use CIDR
* masks.
2007-01-25 06:40:21 +00:00
*/
user = "*@172.16.0.0/12";
user = "*test@123D:B567:*";
/* password: an optional password that is required to use this block.
* By default this is not encrypted, specify the flag "encrypted" in
* flags = ...; below if it is.
*/
password = "letmein";
/* spoof: fake the users user@host to be be this. You may either
* specify a host or a user@host to spoof to. This is free-form,
* just do everyone a favour and dont abuse it. (OLD I: = flag)
*/
2011-05-14 06:42:27 +00:00
spoof = "I.still.hate.packets";
2007-01-25 06:40:21 +00:00
/* Possible flags in auth:
*
* encrypted | password is encrypted with mkpasswd
* spoof_notice | give a notice when spoofing hosts
* exceed_limit (old > flag) | allow user to exceed class user limits
* kline_exempt (old ^ flag) | exempt this user from k/g/xlines&dnsbls
* dnsbl_exempt | exempt this user from dnsbls
* spambot_exempt | exempt this user from spambot checks
* shide_exempt | exempt this user from serverhiding
* jupe_exempt | exempt this user from generating
* warnings joining juped channels
* resv_exempt | exempt this user from resvs
2011-05-14 06:42:27 +00:00
* flood_exempt | exempt this user from flood limits
* USE WITH CAUTION.
2007-01-25 06:40:21 +00:00
* no_tilde (old - flag) | don't prefix ~ to username if no ident
* need_ident (old + flag) | require ident for user in this class
2008-09-09 19:46:12 +00:00
* need_ssl | require SSL/TLS for user in this class
2007-01-25 06:40:21 +00:00
* need_sasl | require SASL id for user in this class
*/
flags = kline_exempt, exceed_limit;
/* class: the class the user is placed in */
class = "opers";
};
auth {
user = "*@*";
class = "users";
};
2008-09-12 22:32:22 +00:00
/* privset {} blocks MUST be specified before anything that uses them. That
* means they must be defined before operator {}.
*/
2008-08-17 12:17:25 +00:00
privset "local_op" {
privs = oper:local_kill, oper:operwall;
};
2008-08-17 13:58:34 +00:00
privset "server_bot" {
extends = "local_op";
2008-12-28 22:24:43 +00:00
privs = oper:kline, oper:remoteban, snomask:nick_changes;
2008-08-17 13:58:34 +00:00
};
2008-08-17 12:17:25 +00:00
privset "global_op" {
extends = "local_op";
privs = oper:global_kill, oper:routing, oper:kline, oper:unkline, oper:xline,
2008-09-02 21:42:51 +00:00
oper:resv, oper:mass_notice, oper:remoteban;
2008-08-17 12:17:25 +00:00
};
privset "admin" {
extends = "global_op";
2008-09-02 21:40:22 +00:00
privs = oper:admin, oper:die, oper:rehash, oper:spy;
2008-08-17 12:17:25 +00:00
};
2007-01-25 06:40:21 +00:00
operator "god" {
/* name: the name of the oper must go above */
/* user: the user@host required for this operator. CIDR *is*
* supported now. auth{} spoofs work here, other spoofs do not.
* multiple user="" lines are supported.
*/
user = "*god@127.0.0.1";
/* password: the password required to oper. Unless ~encrypted is
* contained in flags = ...; this will need to be encrypted using
* mkpasswd, MD5 is supported
*/
password = "etcnjl8juSU1E";
/* rsa key: the public key for this oper when using Challenge.
* A password should not be defined when this is used, see
* doc/challenge.txt for more information.
*/
#rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
/* umodes: the specific umodes this oper gets when they oper.
* If this is specified an oper will not be given oper_umodes
* These are described above oper_only_umodes in general {};
*/
#umodes = locops, servnotice, operwall, wallop;
2010-02-17 12:41:41 +00:00
/* fingerprint: if specified, the oper's client certificate
* fingerprint will be checked against the specified fingerprint
* below.
*/
#fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
2007-01-25 06:40:21 +00:00
/* snomask: specific server notice mask on oper up.
* If this is specified an oper will not be given oper_snomask.
*/
snomask = "+Zbfkrsuy";
2008-09-12 22:32:22 +00:00
/* flags: misc options for the operator. You may prefix an option
* with ~ to disable it, e.g. ~encrypted.
2007-01-25 06:40:21 +00:00
*
2008-09-09 19:51:26 +00:00
* Default flags are encrypted.
2007-01-25 06:40:21 +00:00
*
* Available options:
*
* encrypted: the password above is encrypted [DEFAULT]
2008-09-09 19:46:12 +00:00
* need_ssl: must be using SSL/TLS to oper up
2011-05-14 06:42:27 +00:00
*/
2008-09-12 22:32:22 +00:00
flags = encrypted;
2008-08-17 12:17:25 +00:00
2008-09-12 22:32:22 +00:00
/* privset: privileges set to grant */
2008-08-17 12:17:25 +00:00
privset = "admin";
2007-01-25 06:40:21 +00:00
};
connect "irc.uplink.com" {
host = "192.168.0.1";
send_password = "password";
accept_password = "anotherpassword";
port = 6666;
hub_mask = "*";
class = "server";
flags = compressed, topicburst;
2010-12-14 05:14:00 +00:00
#fingerprint = "c77106576abf7f9f90cca0f63874a60f2e40a64b";
2007-08-29 22:04:45 +00:00
/* If the connection is IPv6, uncomment below.
* Use 0::1, not ::1, for IPv6 localhost. */
2007-01-25 06:40:21 +00:00
#aftype = ipv6;
};
2008-04-07 11:45:15 +00:00
connect "ssl.uplink.com" {
host = "192.168.0.1";
send_password = "password";
accept_password = "anotherpassword";
port = 9999;
hub_mask = "*";
class = "server";
flags = ssl, topicburst;
};
2007-01-25 06:40:21 +00:00
service {
name = "services.int";
};
cluster {
name = "*";
flags = kline, tkline, unkline, xline, txline, unxline, resv, tresv, unresv;
};
shared {
oper = "*@*", "*";
flags = all, rehash;
};
2007-05-18 20:31:33 +00:00
/* exempt {}: IPs that are exempt from Dlines and rejectcache. (OLD d:) */
2007-01-25 06:40:21 +00:00
exempt {
ip = "127.0.0.1";
};
channel {
use_invex = yes;
use_except = yes;
2011-09-25 14:22:29 +00:00
use_forward = yes;
2007-01-25 06:40:21 +00:00
use_knock = yes;
knock_delay = 5 minutes;
knock_delay_channel = 1 minute;
max_chans_per_user = 15;
2011-05-14 06:42:27 +00:00
max_bans = 100;
max_bans_large = 500;
2007-01-25 06:40:21 +00:00
default_split_user_count = 0;
default_split_server_count = 0;
no_create_on_split = no;
no_join_on_split = no;
burst_topicwho = yes;
kick_on_split_riding = no;
2009-02-21 23:12:21 +00:00
only_ascii_channels = no;
2009-09-19 19:24:35 +00:00
resv_forcepart = yes;
2010-08-28 23:26:00 +00:00
channel_target_change = yes;
2010-12-21 20:38:04 +00:00
disable_local_channels = no;
2007-01-25 06:40:21 +00:00
};
serverhide {
flatten_links = yes;
links_delay = 5 minutes;
2011-05-14 06:42:27 +00:00
hidden = no;
2007-01-25 06:40:21 +00:00
disable_hidden = no;
};
/* These are the blacklist settings.
* You can have multiple combinations of host and rejection reasons.
2009-10-18 19:08:37 +00:00
* They are used in pairs of one host/rejection reason.
2007-01-25 06:40:21 +00:00
*
* These settings should be adequate for most networks, and are (presently)
2011-08-13 00:33:10 +00:00
* required for use on StaticBox.
2007-01-25 06:40:21 +00:00
*
* Word to the wise: Do not use blacklists like SPEWS for blocking IRC
* connections.
*
2011-02-27 21:38:05 +00:00
* As of charybdis 2.2, you can do some keyword substitution on the rejection
2007-01-25 07:08:21 +00:00
* reason. The available keyword substitutions are:
*
* ${ip} - the user's IP
* ${host} - the user's canonical hostname
* ${dnsbl-host} - the dnsbl hostname the lookup was done against
* ${nick} - the user's nickname
* ${network-name} - the name of the network
*
2011-02-27 21:38:05 +00:00
* As of charybdis 3.4, a type parameter is supported, which specifies the
* address families the blacklist supports. IPv4 and IPv6 are supported.
* IPv4 is currently the default as few blacklists support IPv6 operation
* as of this writing.
*
2013-04-20 21:17:29 +00:00
* As of charybdis 3.5, a matches parameter is allowed; if omitted, any result
* is considered a match. If included, a comma-separated list of *quoted*
* strings is allowed to match queries. They may be of the format "0" to "255"
* to match the final octet (e.g. 127.0.0.1) or "127.x.y.z" to explicitly match
* an A record. The blacklist is only applied if it matches anything in the
2013-04-21 01:52:34 +00:00
* list. You may freely mix full IP's and final octets.
*
* Consult your blacklist provider for the meaning of these parameters; they
* are usually used to denote different ban types.
2013-04-20 21:17:29 +00:00
*
2007-05-27 05:35:06 +00:00
* Note: AHBL (the providers of the below *.ahbl.org BLs) request that they be
2007-01-25 06:40:21 +00:00
* contacted, via email, at admins@2mbit.com before using these BLs.
* See <http://www.ahbl.org/services.php> for more information.
*/
2007-05-27 05:35:06 +00:00
blacklist {
2010-05-14 13:49:26 +00:00
host = "rbl.efnetrbl.org";
2011-02-27 21:38:05 +00:00
type = ipv4;
2010-05-14 13:49:26 +00:00
reject_reason = "${nick}, your IP (${ip}) is listed in EFnet's RBL. For assistance, see http://efnetrbl.org/?i=${ip}";
2007-05-27 05:35:06 +00:00
2007-01-25 06:40:21 +00:00
# host = "ircbl.ahbl.org";
2011-02-27 21:38:05 +00:00
# type = ipv4;
2007-01-25 07:08:21 +00:00
# reject_reason = "${nick}, your IP (${ip}) is listed in ${dnsbl-host} for having an open proxy. In order to protect ${network-name} from abuse, we are not allowing connections with open proxies to connect.";
2007-01-25 06:40:21 +00:00
#
# host = "tor.ahbl.org";
2011-02-27 21:38:05 +00:00
# type = ipv4;
2007-01-25 07:08:21 +00:00
# reject_reason = "${nick}, your IP (${ip}) is listed as a TOR exit node. In order to protect ${network-name} from tor-based abuse, we are not allowing TOR exit nodes to connect to our network.";
2011-02-27 21:38:05 +00:00
#
2013-04-20 21:17:29 +00:00
/* Example of a blacklist that supports both IPv4 and IPv6 and using matches */
2011-02-27 21:38:05 +00:00
# host = "foobl.blacklist.invalid";
# type = ipv4, ipv6;
2013-04-20 21:17:29 +00:00
# matches = "4", "6", "127.0.0.10";
2011-02-27 21:38:05 +00:00
# reject_reason = "${nick}, your IP (${ip}) is listed in ${dnsbl-host} for some reason. In order to protect ${network-name} from abuse, we are not allowing connections listed in ${dnsbl-host} to connect";
2007-05-27 05:35:06 +00:00
};
2007-01-25 06:40:21 +00:00
alias "NickServ" {
target = "NickServ";
};
alias "ChanServ" {
target = "ChanServ";
};
alias "OperServ" {
target = "OperServ";
};
alias "MemoServ" {
target = "MemoServ";
};
alias "NS" {
target = "NickServ";
};
alias "CS" {
target = "ChanServ";
};
alias "OS" {
target = "OperServ";
};
alias "MS" {
target = "MemoServ";
};
general {
hide_error_messages = opers;
hide_spoof_ips = yes;
/*
* default_umodes: umodes to enable on connect.
2010-02-18 13:34:40 +00:00
* If you have enabled the new ip_cloaking_4.0 module, and you want
* to make use of it, add +x to this option, i.e.:
* default_umodes = "+ix";
*
* If you have enabled the old ip_cloaking module, and you want
2007-01-25 06:40:21 +00:00
* to make use of it, add +h to this option, i.e.:
* default_umodes = "+ih";
*/
default_umodes = "+i";
default_operstring = "is an IRC Operator";
default_adminstring = "is a Server Administrator";
servicestring = "is a Network Service";
disable_fake_channels = no;
2011-05-14 06:42:27 +00:00
tkline_expire_notices = no;
default_floodcount = 10;
2007-01-25 06:40:21 +00:00
failed_oper_notice = yes;
dots_in_ident=2;
min_nonwildcard = 4;
min_nonwildcard_simple = 3;
2011-05-14 06:42:27 +00:00
max_accept = 100;
2007-01-25 06:40:21 +00:00
max_monitor = 100;
anti_nick_flood = yes;
max_nick_time = 20 seconds;
max_nick_changes = 5;
2011-05-14 06:42:27 +00:00
anti_spam_exit_message_time = 5 minutes;
2007-01-25 06:40:21 +00:00
ts_warn_delta = 30 seconds;
ts_max_delta = 5 minutes;
client_exit = yes;
collision_fnc = yes;
2012-03-25 01:34:45 +00:00
resv_fnc = yes;
2007-01-25 06:40:21 +00:00
global_snotices = yes;
dline_with_reason = yes;
kline_delay = 0 seconds;
kline_with_reason = yes;
kline_reason = "K-Lined";
identify_service = "NickServ@services.int";
identify_command = "IDENTIFY";
non_redundant_klines = yes;
warn_no_nline = yes;
2010-03-14 16:21:20 +00:00
use_propagated_bans = yes;
2007-01-25 06:40:21 +00:00
stats_e_disabled = no;
stats_c_oper_only=no;
stats_h_oper_only=no;
stats_y_oper_only=no;
stats_o_oper_only=yes;
stats_P_oper_only=no;
stats_i_oper_only=masked;
stats_k_oper_only=masked;
2011-05-14 06:42:27 +00:00
map_oper_only = no;
2007-01-25 06:40:21 +00:00
operspy_admin_only = no;
operspy_dont_care_user_info = no;
caller_id_wait = 1 minute;
pace_wait_simple = 1 second;
pace_wait = 10 seconds;
short_motd = no;
ping_cookie = no;
connect_timeout = 30 seconds;
2010-04-05 20:29:11 +00:00
default_ident_timeout = 5;
2007-01-25 06:40:21 +00:00
disable_auth = no;
no_oper_flood = yes;
max_targets = 4;
2011-03-27 20:35:26 +00:00
client_flood_max_lines = 20;
2011-05-14 06:42:27 +00:00
use_whois_actually = no;
2007-01-25 06:40:21 +00:00
oper_only_umodes = operwall, locops, servnotice;
oper_umodes = locops, servnotice, operwall, wallop;
oper_snomask = "+s";
2011-05-14 06:42:27 +00:00
burst_away = yes;
2007-01-25 06:40:21 +00:00
nick_delay = 0 seconds; # 15 minutes if you want to enable this
reject_ban_time = 1 minute;
reject_after_count = 3;
reject_duration = 5 minutes;
2008-08-01 00:54:36 +00:00
throttle_duration = 60;
throttle_count = 4;
2012-02-18 03:54:44 +00:00
max_ratelimit_tokens = 30;
2012-02-18 15:32:57 +00:00
away_interval = 30;
2007-01-25 06:40:21 +00:00
};
modules {
path = "modules";
path = "modules/autoload";
};