ratbox-server.conf 5.9 KB

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