Advertisement
Guest User

Untitled

a guest
Jun 12th, 2017
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.01 KB | None | 0 0
  1. /* doc/example.conf.quick - ircd-hybrid-7 Example configuration file
  2. * Copyright (C) 2000-2005 Hybrid Development Team
  3. *
  4. * Written by ejb, wcampbel, db, leeh and others
  5. *
  6. * $Id: example.conf.quick 493 2007-07-07 17:45:14Z jon $
  7. */
  8.  
  9. /* IMPORTANT NOTES:
  10. *
  11. * auth {} blocks MUST be specified in order of precedence. The first one
  12. * that matches a user will be used. So place spoofs first, then specials,
  13. * then general access, then restricted.
  14. *
  15. * Both shell style (#) and C style comments are supported.
  16. *
  17. * Files may be included by either:
  18. * .include "filename"
  19. * .include <filename>
  20. *
  21. * Times/durations are written as:
  22. * 12 hours 30 minutes 1 second
  23. *
  24. * Valid units of time:
  25. * month, week, day, hour, minute, second
  26. *
  27. * Valid units of size:
  28. * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte
  29. *
  30. * Sizes and times may be singular or plural.
  31. */
  32.  
  33. /* EFNET NOTE:
  34. *
  35. * This config file is NOT suitable for EFNet. EFNet admins should use
  36. * example.efnet.conf
  37. */
  38.  
  39. serverinfo
  40. {
  41. name = "hades.arpa";
  42. sid = "_CHANGE_ME_";
  43. description = "hybrid-7 test server";
  44. network_name = "MyNet";
  45. network_desc = "This is My Network";
  46. hub = no;
  47. #vhost = "192.169.0.1";
  48. #vhost6 = "3ffe:80e8:546::2";
  49. max_clients = 512;
  50. #rsa_private_key_file = "/usr/local/ircd/etc/rsa.key";
  51. #ssl_certificate_file = "/usr/local/ircd/etc/cert.pem";
  52. };
  53.  
  54. /* admin {}: contains admin information about the server. (OLD A:) */
  55. admin
  56. {
  57. name = "Smurf target";
  58. description = "Main Server Administrator";
  59. email = "<syn@packets.r.us>";
  60. };
  61.  
  62. /* logging {}: contains information about logfiles. */
  63. logging
  64. {
  65. use_logging = yes;
  66. fuserlog = "logs/userlog";
  67. foperlog = "logs/operlog";
  68. ffailed_operlog = "logs/foperlog";
  69. log_level = L_INFO;
  70. };
  71.  
  72. /* class {}: contain information about classes for users (OLD Y:) */
  73. class
  74. {
  75. name = "users";
  76. ping_time = 2 minutes;
  77. number_per_ip = 2;
  78. max_number = 100;
  79. sendq = 100 kbytes;
  80. };
  81.  
  82. class
  83. {
  84. name = "restricted";
  85. ping_time = 1 minute 30 seconds;
  86. number_per_ip = 1;
  87. max_number = 100;
  88. sendq = 60 kb;
  89. };
  90.  
  91. class
  92. {
  93. name = "opers";
  94. ping_time = 5 minutes;
  95. number_per_ip = 10;
  96. max_number = 100;
  97. sendq = 100 kbytes;
  98. };
  99.  
  100. class
  101. {
  102. name = "server";
  103. ping_time = 5 minutes;
  104. ping_warning = 15 seconds;
  105. connectfreq = 5 minutes;
  106. max_number = 1;
  107. sendq = 2 megabytes;
  108. };
  109.  
  110. /* listen {}: contain information about the ports ircd listens on (OLD P:) */
  111. listen
  112. {
  113. port = 6665. .6669;
  114.  
  115. flags = ssl;
  116. port = 6697;
  117.  
  118. host = "1.2.3.4";
  119. port = 7000, 7001;
  120.  
  121. host = "3ffe:1234:a:b:c::d";
  122. port = 7002;
  123. };
  124.  
  125. /* auth {}: allow users to connect to the ircd (OLD I:) */
  126. auth
  127. {
  128. user = "*@172.16.0.0/12";
  129. user = "*test@123D:B567:*";
  130. password = "letmein";
  131. flags = need_password, spoof_notice, exceed_limit, kline_exempt, gline_exempt, no_tilde;
  132. spoof = "I.still.hate.packets";
  133. class = "opers";
  134. };
  135.  
  136. auth
  137. {
  138. redirserv = "irc.fi";
  139. redirport = 6667;
  140. user = "*.fi";
  141. class = "users";
  142. };
  143.  
  144. /* CGI IRC AUTHENTICATION */
  145. auth
  146. {
  147. user = "*@172.16.1.1/32";
  148. password = "letmein";
  149. encrypted = yes;
  150. class = "users";
  151. flags = need_password, webirc;
  152. };
  153.  
  154. auth
  155. {
  156. user = "*@*";
  157. class = "users";
  158. flags = need_ident;
  159. };
  160.  
  161. /* operator {}: defines ircd operators. (OLD O:)
  162. * ircd-hybrid no longer supports local operators, privileges are
  163. * controlled via flags.
  164. */
  165. operator
  166. {
  167. name = "god";
  168. user = "*god@*";
  169. user = "*@127.0.0.1";
  170. password = "etcnjl8juSU1E";
  171. encrypted = yes;
  172. #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
  173. class = "opers";
  174. flags = global_kill, remote, kline, unkline, gline, xline, die, rehash, nick_changes, admin, oper_spy;
  175. };
  176.  
  177. /* connect {}: controls servers we connect to (OLD C:, N:, H:, L:) */
  178. connect
  179. {
  180. name = "irc.uplink.com";
  181. host = "192.168.0.1";
  182. send_password = "password";
  183. accept_password = "anotherpassword";
  184. encrypted = no;
  185. port = 6666;
  186. hub_mask = "*";
  187. #leaf_mask = "*.uk";
  188. class = "server";
  189. flags = autoconn;
  190. #fakename = "*.arpa";
  191. };
  192.  
  193. connect
  194. {
  195. name = "encrypted.auth.example";
  196. host = "some.host.somewhere";
  197. port = 6667;
  198.  
  199. flags = cryptlink;
  200. rsa_public_key_file = "etc/remote.server.keyfile";
  201. #cipher_preference = "BF/168";
  202. };
  203.  
  204. connect
  205. {
  206. name = "ipv6.some.server";
  207. host = "3ffd:dead:beef::1";
  208. send_password = "password";
  209. accept_password = "password";
  210. port = 6666;
  211.  
  212. aftype = ipv6;
  213. class = "server";
  214. };
  215.  
  216. /* cluster{}: servers that share klines/unkline/xline/unxline/resv/unresv/locops
  217. * automatically (OLD hyb6 SLAVE_SERVERS)
  218. */
  219. cluster
  220. {
  221. /* name: the server to share with, this can take wildcards */
  222. /* NOTE: only local actions will be clustered, meaning if
  223. * the server receives a shared kline/unkline/etc, it
  224. * will not be propagated to clustered servers.
  225. */
  226. name = "*.arpa";
  227.  
  228. /* type: list of what to share, options are as follows:
  229. * kline - share klines
  230. * unkline - share unklines
  231. * xline - share xlines
  232. * unxline - share unxlines
  233. * resv - share resvs
  234. * unresv - share unresvs
  235. * locops - share locops
  236. * all - share all of the above
  237. */
  238. type = kline, unkline, locops, xline, resv;
  239. };
  240.  
  241. /* shared {}: users that are allowed to remote kline (OLD U:) */
  242. shared
  243. {
  244. name = "irc2.some.server";
  245. user = "oper@my.host.is.spoofed";
  246. type = all;
  247. };
  248.  
  249. /* kill {}: users that are not allowed to connect (OLD K:)
  250. * Oper issued klines will be added to the specified kline config
  251. */
  252. kill
  253. {
  254. user = "bad@*.hacked.edu";
  255. reason = "Obviously hacked account";
  256. };
  257.  
  258. /* deny {}: IPs that are not allowed to connect (before DNS/ident lookup)
  259. * Oper issued dlines will be added to the specified dline config
  260. */
  261. deny
  262. {
  263. ip = "10.0.1.0/24";
  264. reason = "Reconnecting vhosted bots";
  265. };
  266.  
  267. /* exempt {}: IPs that are exempt from deny {} and Dlines. (OLD d:) */
  268. exempt
  269. {
  270. ip = "192.168.0.0/16";
  271. };
  272.  
  273. /* resv {}: nicks and channels users may not use/join (OLD Q:) */
  274. resv
  275. {
  276. nick = "nickserv";
  277. nick = "chanserv";
  278. channel = "#services";
  279. reason = "Clone bots";
  280. nick = "clone*";
  281. };
  282.  
  283. gecos
  284. {
  285. name = "*sex*";
  286. reason = "Possible spambot";
  287. };
  288.  
  289. gecos
  290. {
  291. name = "sub7server";
  292. reason = "Trojan drone";
  293. };
  294.  
  295. gecos
  296. {
  297. name = "*http*";
  298. reason = "Spambot";
  299. };
  300.  
  301. channel
  302. {
  303. regex_bans = no;
  304. cycle_on_hostchange = yes;
  305. disable_fake_channels = yes;
  306. restrict_channels = no;
  307. disable_local_channels = no;
  308. use_invex = yes;
  309. use_except = yes;
  310. use_knock = yes;
  311. knock_delay = 5 minutes;
  312. knock_delay_channel = 1 minute;
  313. burst_topicwho = yes;
  314. max_chans_per_user = 15;
  315. quiet_on_ban = yes;
  316. max_bans = 25;
  317. join_flood_count = 16;
  318. join_flood_time = 8 seconds;
  319. default_split_user_count = 0;
  320. default_split_server_count = 0;
  321. no_create_on_split = yes;
  322. no_join_on_split = no;
  323. };
  324.  
  325. serverhide
  326. {
  327. flatten_links = no;
  328. links_delay = 5 minutes;
  329. hidden = no;
  330. disable_hidden = no;
  331. hide_servers = no;
  332. hidden_name = "*.hidden.com";
  333. hide_server_ips = no;
  334. };
  335.  
  336. general
  337. {
  338. cloak_key1 = "PleaseChangeMe";
  339. cloak_key2 = "PleaseChangeMe";
  340. cloak_key3 = "PleaseChangeMe";
  341.  
  342. services_name = "services.your.net";
  343.  
  344. kill_chase_time_limit = 90;
  345. hide_spoof_ips = yes;
  346. hide_killer = no;
  347. ignore_bogus_ts = no;
  348.  
  349. disable_auth = no;
  350. disable_remote_commands = no;
  351. default_floodcount = 10;
  352. failed_oper_notice = yes;
  353. dots_in_ident = 2;
  354. dot_in_ip6_addr = yes;
  355. min_nonwildcard = 4;
  356. min_nonwildcard_simple = 3;
  357. max_accept = 20;
  358. anti_nick_flood = yes;
  359.  
  360. max_nick_time = 20 seconds;
  361. max_nick_changes = 5;
  362.  
  363. anti_spam_exit_message_time = 5 minutes;
  364. anti_spam_connect_numeric = no;
  365. ts_warn_delta = 30 seconds;
  366. ts_max_delta = 5 minutes;
  367.  
  368. kline_with_reason = yes;
  369. kline_with_connection_closed = no;
  370. reject_hold_time = 0;
  371.  
  372. invisible_on_connect = yes;
  373. warn_no_nline = yes;
  374. stats_o_oper_only = yes;
  375. stats_P_oper_only = no;
  376. stats_i_oper_only = masked;
  377. stats_k_oper_only = masked;
  378. caller_id_wait = 1 minute;
  379. pace_wait_simple = 1 second;
  380. pace_wait = 10 seconds;
  381. short_motd = no;
  382. ping_cookie = no;
  383. no_oper_flood = yes;
  384. true_no_oper_flood = yes;
  385. oper_pass_resv = yes;
  386. idletime = 0;
  387. /* REMOVE ME. The following line checks you've been reading. */
  388. havent_read_conf = 1;
  389.  
  390. max_targets = 4;
  391. client_flood = 2560;
  392. message_locale = "standard";
  393. oper_only_umodes = bots, cconn, cconn_full, debug, full, skill,
  394. nchange, rej, spy, external, operwall, locops, unauth, hidechannels;
  395.  
  396. oper_umodes = bots, locops, servnotice, operwall, wallop;
  397.  
  398.  
  399. #servlink_path = "/usr/local/ircd/bin/servlink";
  400. #default_cipher_preference = "BF/168";
  401. #use_egd = yes;
  402. #egdpool_path = "/var/run/egd-pool";
  403. #compression_level = 6;
  404. throttle_time = 10;
  405. };
  406.  
  407. glines
  408. {
  409. enable = yes;
  410. duration = 1 day;
  411. logging = reject;
  412.  
  413. user = "god@I.still.hate.packets";
  414. name = "hades.arpa";
  415. action = reject, block;
  416.  
  417. user = "god@*";
  418. name = "*";
  419. action = block;
  420. };
  421.  
  422. modules
  423. {
  424. path = "/usr/local/ircd/modules";
  425. path = "/usr/local/ircd/modules/autoload";
  426. #module = "some_module.so";
  427. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement