Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat ircd.conf
- serverinfo {
- name = "irc.students.com";
- sid = "06K";
- description = "Student IRC service";
- network_name = "net";
- network_desc = "network";
- hub = no;
- default_max_clients = 10000;
- ssl_private_key = "etc/ircd-ratbox/ssl/rsa.key";
- ssl_cert = "etc/ircd-ratbox/ssl/cert.pem";
- ssl_dh_params = "etc/irc-ratbox/ssl/dh.pem";
- ssld_count = 1;
- bandb = "/usr/local/ircd/ban.db";
- };
- admin {
- name = "Tech support";
- description = "Main Server Administrator";
- email = "<help@foo.net>";
- };
- log {
- fname_userlog = "/cat/log/ratbox/userlog"; # user logs
- fname_fuserlog = "/cat/log/ratbox/fuserlog"; # failed user connections
- fname_operlog = "/cat/log/ratbox/operlog"; # oper usage
- fname_foperlog = "/cat/log/ratbox/foperlog"; # failed oper attempts
- fname_serverlog = "/cat/log/ratbox/serverlog"; # server connects / disconnects
- fname_glinelog = "/cat/log/ratbox/glinelog"; # glines
- fname_klinelog = "/cat/log/ratbox/klinelog"; # klines
- fname_killlog = "/cat/log/ratbox/killlog"; # kills
- fname_operspylog = "/cat/log/ratbox/operspylog"; # operspy usage
- fname_ioerrorlog = "/cat/log/ratbox/ioerror"; # input / output errors
- };
- class "users" { # please note "users" this is the name of the class we are defining
- ping_time = 2 minutes; # frequency to ping users
- number_per_ident = 2; # max number allowed per identity
- number_per_ip = 3; # max number allowed per ip
- number_per_ip_global = 5; # max number allowed per ip over the entire network
- max_number = 500; #max number of connection in this class
- sendq = 100 kbytes; # send queue
- };
- class "opers" {
- ping_time = 5 minutes;
- number_per_ip = 10;
- max_number = 100;
- sendq = 100kbytes;
- };
- class "server" {
- ping_time = 5 minutes;
- connectfreq = 5 minutes;
- max_number = 1;
- sendq=2 megabytes;
- };
- listen {
- aftype = ipv4;
- port = 5000, 6665 .. 6669; # ports to open (in our case port 5000 and ports 6661 all the way up to 6669)
- sslport = 6697;
- };
- auth {
- user = "*@*";
- class = "users";
- };
- operator "will" { # note the name of the oper defined in "'s (in this case our opers nickname would be: admin)
- user = "will*@*"; # its always a good idea to set host masks for your opers (these can have multiple entries)
- password = "xxxxxxx";
- rsa_public_key_file = "/usr/local/ircd/will.key"; # path to the public key
- flags = encrypted, global_kill, remote, kline, unkline, gline, # flag for this oper (contd. on second line)
- die, rehash, admin, xline, operwall;
- };
- operator "god" {
- user = "*god@*";
- user = "*@127.0.0.1";
- password = "xxxxxxxxxxxx";
- #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
- #umodes = locops, servnotice, operwall, wallop;
- flags = global_kill, remote, kline, unkline, gline,
- die, rehash, admin, xline, resv, operwall;
- };
- connect "ratbox.services" { # name of the server or services we are connecting to here
- host = "127.0.0.1"; # ip address of the services (for this demo I'm assuming the services are running on the same ip as the server itself)
- send_password = "xxxx"; # password to send to server or services
- accept_password = "xxxx"; # password to receive from server or services
- port = 5000; # port we are trying to connect to
- class = "server"; # class this connection belongs in
- };
- # Services Block
- service {
- name = "ratbox.services";
- };
- channel {
- use_invex = yes; # enable / disable channel mode +I
- use_except = yes; # enable / disable channel mode +e
- use_knock = yes; # enable / disable knock ability
- invite_ops_only = yes; # only channel ops may /invite
- knock_delay = 5 minutes; # delay between knock
- knock_delay_channel = 1 minute; # knock channel delay
- max_chans_per_user = 15; # max number of channels one user can be on
- quiet_on_ban = yes; # stop a banned user from talking
- max_bans = 25; # max number of bans on any one channel
- };
- general {
- hide_error_messages = opers; # hide error messages from the server
- default_invisible = no; # set clients to +i on connect
- default_floodcount = 10; # default flood count value (amount of lines a user may send in one second)
- failed_oper_notice = yes; # let other opers know when there is a failed oper attempt
- anti_nick_flood = yes; # enable / disable nick flood control
- max_nick_changes = 5; # max number of nick changes
- max_nick_time = 20 seconds; # in specified amount of time
- anti_spam_exit_message_time = 5 minutes; # min amount of time user must be connected before allowing a custom /quit msg to be sent
- dline_with_reason = yes; # show reason for dline on connect?
- kline_delay = 0 seconds; # delay in kline
- kline_with_reason = yes; # show the user reason when klined
- non_redundant_klines = yes; # flag and ignore redundant klines
- short_motd = no; # send short motd?
- connect_timeout = 30 seconds; # time we should wait for a connection request to succeed before we drop
- glines = yes; # enable / disable glines
- gline_time = 1 day; # default gline time
- max_targets = 4; # max number of users another user can notice or privmsg at once
- client_flood = 20; # max number of lines in a clients queue before they are dropped
- use_whois_actually = yes; # enable / disable whois actually
- # modes and oper will be able to set
- oper_only_umodes = bots, cconn, debug, full, skill, nchange,
- rej, spy, external, operwall, locops, unauth;
- oper_umodes = locops, servnotice, operwall, wallop; # modes and oper will automatically get when they operup
- };
- # Modules Block
- modules {
- path = "/usr/local/ircd/modules"; # remember the path we set in --prefix upon compile?
- path = "/usr/local/ircd/modules/autoload";
- };
- ====================================================================================
- $ cat ratbox-services.conf
- serverinfo {
- name = "ratbox.services";
- sid = "06L";
- description = "ratbox services";
- # vhost = "127.0.0.1";
- #dcc_vhost = "10.6.2.11";
- #dcc_low_port = 3000;
- #dcc_high_port = 5000;
- reconnect_time = 5 minutes;
- ping_time = 5 minutes;
- ratbox = yes;
- client_flood_max = 20;
- client_flood_max_ignore = 30;
- client_flood_ignore_time = 5 minutes;
- client_flood_time = 1 minute;
- allow_stats_o = yes;
- default_language = "en";
- };
- database {
- host = "127.0.0.1";
- name = "xxx";
- username = "xxx";
- password = "xxxxxxxxxxxxxxxxxxxx";
- };
- email {
- disable_email = yes;
- email_program = "/usr/sbin/sendmail", "-t";
- email_name = "services";
- email_address = "services@example.com";
- email_number = 15;
- email_duration = 1 minute;
- };
- admin {
- name = "admin";
- description = "ratbox services";
- email = "<admin@services>";
- };
- connect "irc.catstudents.com" {
- host = "127.0.0.1";
- # vhost = "10.0.0.2";
- password = "xxxx";
- port = 5000;
- autoconn = yes;
- };
- operator "will" {
- user = "*@*";
- #user = "flame@127.0.0.1", "irc.ircd-ratbox.org";
- password = "wwwwwwwww";
- #encrypted = no;
- flags = admin, dcc, route;
- userserv = admin;
- chanserv = admin;
- nickserv = drop;
- operserv = admin;
- operbot = channel;
- global = netmsg, welcome;
- jupeserv = jupe;
- banserv = kline, xline, resv, perm, remove, regexp, sync;
- };
- operator "god" {
- user = "*@*";
- #user = "flame@127.0.0.1", "irc.ircd-ratbox.org";
- password = "yyyyyyy";
- encrypted = no;
- flags = admin, dcc, route;
- userserv = admin;
- chanserv = admin;
- nickserv = drop;
- operserv = admin;
- operbot = channel;
- global = netmsg, welcome;
- jupeserv = jupe;
- banserv = kline, xline, resv, perm, remove, regexp, sync;
- };
- service "userserv" {
- nick = "USERSERV";
- username = "user";
- host = "services.int";
- realname = "user registration service";
- flags = opered, msg_self;
- loglevel = 5;
- #disable_register = yes;
- #register_url = "http://whatever/";
- register_time = 1 minute;
- register_amount = 5;
- host_register_time = 1 day;
- host_register_amount = 2;
- register_email = no;
- register_verify = no;
- expire_time = 4 weeks;
- expire_suspended_time = 4 weeks;
- expire_unverified_time = 1 day;
- expire_bonus_regtime = 2 months;
- expire_bonus = 1 day;
- expire_bonus_per_time = 2 weeks;
- expire_bonus_max = 4 weeks;
- allow_set_password = yes;
- allow_resetpass = no;
- allow_resetemail = no;
- resetpass_duration = 1 day;
- resetemail_duration = 1 day;
- reset_regtime_duration = 2 weeks;
- allow_set_email = yes;
- max_logins = 5;
- 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 = 3;
- #disable_register = yes;
- register_time = 1 minute;
- register_amount = 5;
- host_register_time = 1 day;
- host_register_amount = 4;
- expire_time = 4 weeks;
- expire_suspended_time = 4 weeks;
- max_bans = 50;
- expireban_frequency = 15 minutes;
- enforcetopic_frequency = 1 hour;
- email_delowner = no;
- delowner_duration = 1 day;
- show_suspend_reasons = no;
- };
- service "nickserv" {
- nick = "NICKSERV";
- username = "nick";
- host = "services.int";
- realname = "nickname services";
- flags = opered, msg_self;
- loglevel = 3;
- max_nicks = 2;
- allow_set_warn = yes;
- warn_string = "This nickname is registered, you may be disconnected if a user regains this nickname.";
- };
- service "operserv" {
- nick = "OPERSERV";
- username = "oper";
- host = "services.int";
- realname = "oper services";
- flags = opered, msg_self, stealth, wallop_adm;
- loglevel = 1;
- allow_die = yes;
- };
- service "jupeserv" {
- nick = "JUPESERV";
- username = "jupe";
- host = "services.int";
- realname = "server jupe service";
- flags = opered, msg_self, stealth;
- loglevel = 2;
- merge_into_operserv = no;
- oper_score = 3;
- jupe_score = 15;
- unjupe_score = 15;
- pending_time = 30 minutes;
- };
- service "operbot" {
- nick = "operbot";
- username = "operbot";
- host = "services.int";
- realname = "oper op/invite services";
- flags = opered, msg_self, stealth;
- loglevel = 1;
- };
- service "alis" {
- nick = "alis";
- username = "alis";
- host = "services.int";
- realname = "Advanced List Service - /msg alis help";
- flags = msg_self;
- loglevel = 1;
- max_matches = 60;
- };
- service "global" {
- nick = "GLOBAL";
- username = "global";
- host = "services.int";
- realname = "Network Message Service";
- flags = opered, msg_self, stealth;
- loglevel = 1;
- };
- service "banserv" {
- nick = "BANSERV";
- username = "banserv";
- host = "services.int";
- realname = "Ban Service";
- flags = opered, msg_self, stealth;
- loglevel = 1;
- merge_into_operserv = no;
- unban_time = 2 weeks;
- regexp_time = 1 day;
- max_kline_matches = 200;
- max_xline_matches = 200;
- max_regexp_matches = 200;
- temp_workaround = no;
- 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 = 1;
- merge_into_operserv = no;
- };
- service "memoserv" {
- nick = "MEMOSERV";
- username = "memoserv";
- host = "services.int";
- realname = "Memo Service";
- flags = msg_self;
- loglevel = 0;
- max_memos = 50;
- memo_regtime_duration = 1 week;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement