ratbox-server.conf 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. ##
  2. ## server.conf -- Ratbox IRC Server Configuration
  3. ## (see @l_prefix@/share/ratbox/server.conf.sample for more)
  4. ##
  5. serverinfo {
  6. name = "irc.example.com";
  7. use_ts6 = yes;
  8. sid = "42X";
  9. description = "Example IRC Services";
  10. network_name = "ExNet";
  11. network_desc = "Example IRC Network";
  12. hub = no;
  13. };
  14. admin {
  15. name = "irc-admin";
  16. description = "Example IRC Server Administrator";
  17. email = "<irc-admin@example.com>";
  18. };
  19. class "users" {
  20. number_per_ident = 2;
  21. number_per_ip = 4;
  22. number_per_ip_global = 8;
  23. max_number = 100;
  24. sendq = 100 kbytes;
  25. };
  26. class "opers" {
  27. number_per_ident = 2;
  28. number_per_ip = 4;
  29. number_per_ip_global = 8;
  30. max_number = 10;
  31. sendq = 100 kbytes;
  32. };
  33. class "server" {
  34. ping_time = 5 minutes;
  35. connectfreq = 5 minutes;
  36. max_number = 1;
  37. sendq = 2 megabytes;
  38. sendq_eob = 500 kbytes;
  39. };
  40. listen {
  41. host = "127.0.0.1";
  42. port = 6667;
  43. };
  44. auth {
  45. user = "foo@*";
  46. password = "bar";
  47. spoof = "foo@example.com";
  48. flags = no_tilde;
  49. class = "opers";
  50. };
  51. auth {
  52. user = "*@*";
  53. flags = no_tilde;
  54. class = "users";
  55. };
  56. operator "god" {
  57. user = "*@127.0.0.1";
  58. password = "bar";
  59. flags = global_kill, remote, kline, unkline, gline,
  60. die, rehash, admin, xline, operwall;
  61. };
  62. connect "irc-services.example.com" {
  63. host = "127.0.0.1";
  64. send_password = "services-secret";
  65. accept_password = "services-secret";
  66. port = 6666;
  67. class = "server";
  68. hub_mask = "*";
  69. };
  70. cluster {
  71. name = "*";
  72. type = all;
  73. };
  74. resv {
  75. reason = "There are no services on this network";
  76. nick = "userserv";
  77. nick = "chanserv";
  78. nick = "operserv";
  79. nick = "jupeserv";
  80. nick = "operbot";
  81. nick = "alis";
  82. nick = "global";
  83. channel = "#services";
  84. };
  85. channel {
  86. use_invex = yes;
  87. use_except = yes;
  88. use_knock = yes;
  89. invite_ops_only = yes;
  90. knock_delay = 5 minutes;
  91. knock_delay_channel = 1 minute;
  92. max_chans_per_user = 15;
  93. quiet_on_ban = yes;
  94. max_bans = 25;
  95. default_split_user_count = 0;
  96. default_split_server_count = 0;
  97. default_split_delay = 15 seconds;
  98. no_create_on_split = no;
  99. no_join_on_split = no;
  100. no_oper_resvs = no;
  101. burst_topicwho = yes;
  102. };
  103. serverhide {
  104. flatten_links = no;
  105. links_delay = 5 minutes;
  106. hidden = no;
  107. disable_hidden = no;
  108. };
  109. general {
  110. hide_error_messages = no;
  111. default_invisible = no;
  112. default_operstring = "is IRC Service Operator";
  113. default_adminstring = "is IRC Server Administrator";
  114. disable_fake_channels = yes;
  115. tkline_expire_notices = no;
  116. default_floodcount = 10;
  117. failed_oper_notice = yes;
  118. dots_in_ident = 2;
  119. dot_in_ip6_addr = no;
  120. min_nonwildcard = 4;
  121. min_nonwildcard_simple = 3;
  122. max_accept = 20;
  123. anti_nick_flood = yes;
  124. max_nick_time = 20 seconds;
  125. max_nick_changes = 5;
  126. anti_spam_exit_message_time = 5 minutes;
  127. ts_warn_delta = 30 seconds;
  128. ts_max_delta = 5 minutes;
  129. client_exit = yes;
  130. kline_delay = 0 seconds;
  131. kline_with_reason = yes;
  132. kline_reason = "Connection closed";
  133. non_redundant_klines = yes;
  134. warn_no_nline = yes;
  135. stats_e_disabled = no;
  136. stats_c_oper_only = no;
  137. stats_h_oper_only = no;
  138. stats_y_oper_only = no;
  139. stats_o_oper_only = yes;
  140. stats_P_oper_only = no;
  141. stats_i_oper_only = masked;
  142. stats_k_oper_only = masked;
  143. map_oper_only = no;
  144. operspy_admin_only = no;
  145. caller_id_wait = 1 minute;
  146. pace_wait_simple = 1 second;
  147. pace_wait = 10 seconds;
  148. short_motd = no;
  149. ping_cookie = no;
  150. connect_timeout = 30 seconds;
  151. disable_auth = no;
  152. no_oper_flood = yes;
  153. glines = yes;
  154. gline_time = 1 day;
  155. gline_min_cidr = 16;
  156. idletime = 0;
  157. max_targets = 4;
  158. client_flood = 20;
  159. use_whois_actually = yes;
  160. oper_only_umodes = bots, cconn, debug, full, skill, nchange,
  161. rej, spy, external, operwall, locops, unauth;
  162. oper_umodes = locops, servnotice, operwall, wallop;
  163. servlink_path = "@l_prefix@/bin/ratbox-servlink";
  164. compression_level = 6;
  165. burst_away = yes;
  166. reject_ban_time = 1 minute;
  167. reject_after_count = 3;
  168. reject_duration = 5 minutes;
  169. };
  170. modules {
  171. path = "@l_prefix@/libexec/ratbox";
  172. path = "@l_prefix@/libexec/ratbox/autoload";
  173. #module = "some_module.so";
  174. };