Advertisement
Guest User

Untitled

a guest
Mar 9th, 2012
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 11.75 KB | None | 0 0
  1. $ cat ircd.conf
  2. serverinfo {
  3.     name = "irc.students.com";
  4.     sid = "06K";
  5.     description = "Student IRC service";
  6.     network_name = "net";
  7.     network_desc = "network";
  8.     hub = no;
  9.     default_max_clients = 10000;
  10.         ssl_private_key = "etc/ircd-ratbox/ssl/rsa.key";
  11.         ssl_cert = "etc/ircd-ratbox/ssl/cert.pem";
  12.         ssl_dh_params = "etc/irc-ratbox/ssl/dh.pem";
  13.     ssld_count = 1;
  14.     bandb = "/usr/local/ircd/ban.db";
  15. };
  16.  
  17. admin {
  18.     name = "Tech support";
  19.     description = "Main Server Administrator";
  20.     email = "<help@foo.net>";
  21. };
  22.  
  23. log {
  24.    fname_userlog = "/cat/log/ratbox/userlog";      # user logs
  25.    fname_fuserlog = "/cat/log/ratbox/fuserlog";      # failed user connections
  26.    fname_operlog = "/cat/log/ratbox/operlog";      # oper usage
  27.    fname_foperlog = "/cat/log/ratbox/foperlog";      # failed oper attempts
  28.    fname_serverlog = "/cat/log/ratbox/serverlog";      # server connects / disconnects
  29.    fname_glinelog = "/cat/log/ratbox/glinelog";      # glines
  30.    fname_klinelog = "/cat/log/ratbox/klinelog";      # klines
  31.    fname_killlog = "/cat/log/ratbox/killlog";         # kills
  32.    fname_operspylog = "/cat/log/ratbox/operspylog";   # operspy usage
  33.    fname_ioerrorlog = "/cat/log/ratbox/ioerror";      # input / output errors
  34.  
  35. };
  36.  
  37. class "users" {               # please note "users" this is the name of the class we are defining
  38.    ping_time = 2 minutes;      # frequency to ping users
  39.    number_per_ident = 2;      # max number allowed per identity
  40.    number_per_ip = 3;         # max number allowed per ip
  41.    number_per_ip_global = 5;   # max number allowed per ip over the entire network
  42.    max_number = 500;         #max number of connection in this class
  43.    sendq = 100 kbytes;         # send queue
  44.    
  45. };
  46.  
  47. class "opers" {
  48.     ping_time = 5 minutes;
  49.     number_per_ip = 10;
  50.     max_number = 100;
  51.     sendq = 100kbytes;
  52. };
  53.  
  54. class "server" {
  55.     ping_time = 5 minutes;
  56.     connectfreq = 5 minutes;
  57.     max_number = 1;
  58.     sendq=2 megabytes;
  59. };
  60.  
  61. listen {
  62.     aftype = ipv4;
  63.     port = 5000, 6665 .. 6669; # ports to open (in our case port 5000 and ports 6661 all the way up to 6669)
  64.     sslport = 6697;
  65. };
  66.  
  67. auth {
  68.    user = "*@*";
  69.    class = "users";  
  70. };
  71.  
  72. operator "will" {                                # note the name of the oper defined in "'s (in this case our opers nickname would be: admin)
  73.     user = "will*@*";                       # its always a good idea to set host masks for your opers (these can have multiple entries)
  74.     password = "xxxxxxx";
  75.     rsa_public_key_file = "/usr/local/ircd/will.key";     # path to the public key
  76.     flags = encrypted, global_kill, remote, kline, unkline, gline,     # flag for this oper (contd. on second line)
  77.             die, rehash, admin, xline, operwall;
  78.  
  79. };
  80.  
  81. operator "god" {
  82.     user = "*god@*";
  83.     user = "*@127.0.0.1";
  84.     password = "xxxxxxxxxxxx";
  85.     #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
  86.     #umodes = locops, servnotice, operwall, wallop;
  87.     flags = global_kill, remote, kline, unkline, gline,
  88.         die, rehash, admin, xline, resv, operwall;
  89. };
  90.  
  91. connect "ratbox.services" {            # name of the server or services we are connecting to here
  92.         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)
  93.         send_password = "xxxx";   # password to send to server or services
  94.         accept_password = "xxxx";   # password to receive from server or services
  95.         port = 5000;               # port we are trying to connect to
  96.         class = "server";               # class this connection belongs in
  97. };
  98.  
  99. # Services Block
  100. service {
  101.         name = "ratbox.services";
  102. };
  103.  
  104. channel {
  105.    use_invex = yes;      # enable / disable channel mode +I
  106.    use_except = yes;      # enable / disable channel mode +e
  107.    use_knock = yes;      # enable / disable knock ability
  108.    invite_ops_only = yes;      # only channel ops may /invite
  109.    knock_delay = 5 minutes;   # delay between knock
  110.    knock_delay_channel = 1 minute;   # knock channel delay
  111.    max_chans_per_user = 15;   # max number of channels one user can be on
  112.    quiet_on_ban = yes;      # stop a banned user from talking
  113.    max_bans = 25;         # max number of bans on any one channel
  114.  
  115. };
  116.  
  117. general {
  118.    hide_error_messages = opers;   # hide error messages from the server
  119.    default_invisible = no;      # set clients to +i on connect
  120.    default_floodcount = 10;   # default flood count value (amount of lines a user may send in one second)
  121.    failed_oper_notice = yes;   # let other opers know when there is a failed oper attempt
  122.    anti_nick_flood = yes;      # enable / disable nick flood control
  123.    max_nick_changes = 5;      # max number of nick changes
  124.    max_nick_time = 20 seconds;   # in specified amount of time
  125.    anti_spam_exit_message_time = 5 minutes; # min amount of time user must be connected before allowing a custom /quit msg to be sent
  126.    dline_with_reason = yes;   # show reason for dline on connect?
  127.    kline_delay = 0 seconds;   # delay in kline
  128.    kline_with_reason = yes;   # show the user reason when klined
  129.    non_redundant_klines = yes;   # flag and ignore redundant klines
  130.    short_motd = no;      # send short motd?
  131.    connect_timeout = 30 seconds;   # time we should wait for a connection request to succeed before we drop
  132.    glines = yes;         # enable / disable glines
  133.    gline_time = 1 day;      # default gline time
  134.    max_targets = 4;      # max number of users another user can notice or privmsg at once
  135.    client_flood = 20;      # max number of lines in a clients queue before they are dropped
  136.    use_whois_actually = yes;   # enable / disable whois actually
  137.  
  138.    # modes and oper will be able to set
  139.    oper_only_umodes = bots, cconn, debug, full, skill, nchange,
  140.       rej, spy, external, operwall, locops, unauth;
  141.  
  142.    oper_umodes = locops, servnotice, operwall, wallop;   # modes and oper will automatically get when they operup
  143.  
  144.  
  145. };
  146.  
  147. # Modules Block
  148. modules {
  149.    path = "/usr/local/ircd/modules";         # remember the path we set in --prefix upon compile?
  150.    path = "/usr/local/ircd/modules/autoload";
  151.    
  152. };
  153.  
  154.  
  155. ====================================================================================
  156.  
  157. $ cat ratbox-services.conf
  158. serverinfo {
  159.         name = "ratbox.services";
  160.     sid = "06L";
  161.         description = "ratbox services";
  162.         # vhost = "127.0.0.1";
  163.     #dcc_vhost = "10.6.2.11";
  164.     #dcc_low_port = 3000;
  165.     #dcc_high_port = 5000;
  166.     reconnect_time = 5 minutes;
  167.     ping_time = 5 minutes;
  168.     ratbox = yes;
  169.     client_flood_max = 20;
  170.     client_flood_max_ignore = 30;
  171.     client_flood_ignore_time = 5 minutes;
  172.     client_flood_time = 1 minute;
  173.     allow_stats_o = yes;
  174.     default_language = "en";
  175. };
  176.  
  177. database {
  178.     host = "127.0.0.1";
  179.     name = "xxx";
  180.     username = "xxx";
  181.     password = "xxxxxxxxxxxxxxxxxxxx";
  182. };
  183. email {
  184.     disable_email = yes;
  185.     email_program = "/usr/sbin/sendmail", "-t";
  186.     email_name = "services";
  187.     email_address = "services@example.com";
  188.     email_number = 15;
  189.     email_duration = 1 minute;
  190. };
  191.  
  192. admin {
  193.         name = "admin";
  194.         description = "ratbox services";
  195.         email = "<admin@services>";
  196. };
  197.  
  198. connect "irc.catstudents.com" {
  199.         host = "127.0.0.1";
  200.         # vhost = "10.0.0.2";
  201.         password = "xxxx";
  202.         port = 5000;
  203.     autoconn = yes;
  204. };
  205.  
  206. operator "will" {
  207.         user = "*@*";
  208.     #user = "flame@127.0.0.1", "irc.ircd-ratbox.org";
  209.         password = "wwwwwwwww";
  210.         #encrypted = no;
  211.     flags = admin, dcc, route;
  212.     userserv = admin;
  213.     chanserv = admin;
  214.     nickserv = drop;
  215.     operserv = admin;
  216.     operbot = channel;
  217.     global = netmsg, welcome;
  218.     jupeserv = jupe;
  219.     banserv = kline, xline, resv, perm, remove, regexp, sync;
  220. };
  221.  
  222. operator "god" {
  223.         user = "*@*";
  224.     #user = "flame@127.0.0.1", "irc.ircd-ratbox.org";
  225.         password = "yyyyyyy";
  226.         encrypted = no;
  227.     flags = admin, dcc, route;
  228.     userserv = admin;
  229.     chanserv = admin;
  230.     nickserv = drop;
  231.     operserv = admin;
  232.     operbot = channel;
  233.     global = netmsg, welcome;
  234.     jupeserv = jupe;
  235.     banserv = kline, xline, resv, perm, remove, regexp, sync;
  236. };
  237.  
  238. service "userserv" {
  239.     nick = "USERSERV";
  240.     username = "user";
  241.     host = "services.int";
  242.     realname = "user registration service";
  243.     flags = opered, msg_self;
  244.     loglevel = 5;
  245.     #disable_register = yes;
  246.     #register_url = "http://whatever/";
  247.     register_time = 1 minute;
  248.     register_amount = 5;
  249.     host_register_time = 1 day;
  250.     host_register_amount = 2;
  251.     register_email = no;
  252.     register_verify = no;
  253.     expire_time = 4 weeks;
  254.     expire_suspended_time = 4 weeks;
  255.     expire_unverified_time = 1 day;
  256.     expire_bonus_regtime = 2 months;
  257.     expire_bonus = 1 day;
  258.     expire_bonus_per_time = 2 weeks;
  259.     expire_bonus_max = 4 weeks;
  260.     allow_set_password = yes;
  261.     allow_resetpass = no;
  262.     allow_resetemail = no;
  263.     resetpass_duration = 1 day;
  264.     resetemail_duration = 1 day;
  265.     reset_regtime_duration = 2 weeks;
  266.     allow_set_email = yes;
  267.     max_logins = 5;
  268.     show_suspend_reasons = no;
  269. };
  270.  
  271. /* chanserv - provides facilities for the registration of channels. */
  272. service "chanserv" {
  273.     nick = "CHANSERV";
  274.     username = "chan";
  275.     host = "services.int";
  276.     realname = "channel registration service";
  277.     flags = opered, login_help;
  278.     loglevel = 3;
  279.     #disable_register = yes;
  280.     register_time = 1 minute;
  281.     register_amount = 5;
  282.     host_register_time = 1 day;
  283.     host_register_amount = 4;
  284.     expire_time = 4 weeks;
  285.     expire_suspended_time = 4 weeks;
  286.     max_bans = 50;
  287.     expireban_frequency = 15 minutes;
  288.     enforcetopic_frequency = 1 hour;
  289.     email_delowner = no;
  290.     delowner_duration = 1 day;
  291.     show_suspend_reasons = no;
  292. };
  293.  
  294. service "nickserv" {
  295.     nick = "NICKSERV";
  296.     username = "nick";
  297.     host = "services.int";
  298.     realname = "nickname services";
  299.     flags = opered, msg_self;
  300.     loglevel = 3;
  301.     max_nicks = 2;
  302.     allow_set_warn = yes;
  303.     warn_string = "This nickname is registered, you may be disconnected if a user regains this nickname.";
  304. };
  305.  
  306. service "operserv" {
  307.     nick = "OPERSERV";
  308.     username = "oper";
  309.     host = "services.int";
  310.     realname = "oper services";
  311.     flags = opered, msg_self, stealth, wallop_adm;
  312.     loglevel = 1;
  313.     allow_die = yes;
  314. };
  315.  
  316. service "jupeserv" {
  317.     nick = "JUPESERV";
  318.     username = "jupe";
  319.     host = "services.int";
  320.     realname = "server jupe service";
  321.     flags = opered, msg_self, stealth;
  322.     loglevel = 2;
  323.     merge_into_operserv = no;
  324.     oper_score = 3;
  325.     jupe_score = 15;
  326.     unjupe_score = 15;
  327.     pending_time = 30 minutes;
  328. };
  329.  
  330. service "operbot" {
  331.     nick = "operbot";
  332.     username = "operbot";
  333.     host = "services.int";
  334.     realname = "oper op/invite services";
  335.     flags = opered, msg_self, stealth;
  336.     loglevel = 1;
  337. };
  338.  
  339. service "alis" {
  340.     nick = "alis";
  341.     username = "alis";
  342.     host = "services.int";
  343.     realname = "Advanced List Service - /msg alis help";
  344.     flags = msg_self;
  345.     loglevel = 1;
  346.     max_matches = 60;
  347. };
  348.  
  349. service "global" {
  350.     nick = "GLOBAL";
  351.     username = "global";
  352.     host = "services.int";
  353.     realname = "Network Message Service";
  354.     flags = opered, msg_self, stealth;
  355.     loglevel = 1;
  356. };
  357.  
  358. service "banserv" {
  359.     nick = "BANSERV";
  360.     username = "banserv";
  361.     host = "services.int";
  362.     realname = "Ban Service";
  363.     flags = opered, msg_self, stealth;
  364.     loglevel = 1;
  365.     merge_into_operserv = no;
  366.     unban_time = 2 weeks;
  367.     regexp_time = 1 day;
  368.     max_kline_matches = 200;
  369.     max_xline_matches = 200;
  370.     max_regexp_matches = 200;
  371.     temp_workaround = no;
  372.     autosync_frequency = 2 weeks;
  373. };
  374.  
  375. /* watchserv - the service for watching commands issued to services. */
  376. service "watchserv" {
  377.     nick = "WATCHSERV";
  378.     username = "watchserv";
  379.     host = "services.int";
  380.     realname = "Command Watching Service";
  381.     flags = msg_self, stealth;
  382.     loglevel = 1;
  383.     merge_into_operserv = no;
  384. };
  385.  
  386. service "memoserv" {
  387.     nick = "MEMOSERV";
  388.     username = "memoserv";
  389.     host = "services.int";
  390.     realname = "Memo Service";
  391.     flags = msg_self;
  392.     loglevel = 0;
  393.     max_memos = 50;
  394.     memo_regtime_duration = 1 week;
  395. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement