Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
525
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.50 KB | None | 0 0
  1. /* doc/example.conf - ircd-ratbox Example configuration file
  2. *
  3. * Copyright (C) 2000-2002 Hybrid Development Team
  4. * Copyright (C) 2002-2003 ircd-ratbox development team
  5. *
  6. * Written by ejb, wcampbel, db, leeh and others
  7. *
  8. * $Id: example.conf 23955 2007-05-14 17:22:36Z leeh $
  9. */
  10.  
  11. /* IMPORTANT NOTES:
  12. *
  13. * class {} blocks MUST be specified before anything that uses them. That
  14. * means they must be defined before auth {} and before connect {}.
  15. *
  16. * auth {} blocks MUST be specified in order of precedence. The first one
  17. * that matches a user will be used. So place spoofs first, then specials,
  18. * then general access, then restricted.
  19. *
  20. * Both shell style (#) and C style comments are supported.
  21. *
  22. * Files may be included by either:
  23. * .include "filename"
  24. * .include <filename>
  25. *
  26. * Times/durations are written as:
  27. * 12 hours 30 minutes 1 second
  28. *
  29. * Valid units of time:
  30. * month, week, day, hour, minute, second
  31. *
  32. * Valid units of size:
  33. * megabyte/mbyte/mb, kilobyte/kbyte/kb, byte
  34. *
  35. * Sizes and times may be singular or plural.
  36. */
  37.  
  38. /* EFNET NOTE:
  39. *
  40. * This config file is NOT suitable for EFNet. EFNet admins should use
  41. * example.efnet.conf
  42. */
  43.  
  44. /* serverinfo {}: Contains information about the server. (OLD M:) */
  45. serverinfo {
  46. /* name: the name of our server */
  47. name = "hades.arpa";
  48.  
  49. /* use ts6: whether we want to use the TS6 protocol to other servers
  50. * or not.
  51. */
  52. use_ts6 = yes;
  53.  
  54. /* sid: the unique server id of our server. This must be three
  55. * characters long. The first character must be a digit [0-9], the
  56. * remaining two chars may be letters [A-Z] or digits [0-9].
  57. *
  58. * This must be specified even if use_ts6 is set to no.
  59. */
  60. sid = "42X";
  61.  
  62. /* description: the description of our server. '[' and ']' may not
  63. * be used here for compatibility with older servers.
  64. */
  65. description = "ircd-ratbox test server";
  66.  
  67. /* network info: the name and description of the network this server
  68. * is on. Shown in the 005 reply and used with serverhiding.
  69. */
  70. network_name = "MyNet";
  71. network_desc = "This is My Network";
  72.  
  73. /* hub: allow this server to act as a hub and have multiple servers
  74. * connected to it.
  75. */
  76. hub = no;
  77.  
  78. /* vhost: the IP to bind to when we connect outward to ipv4 servers.
  79. * This should be an ipv4 IP only.
  80. */
  81. #vhost = "192.169.0.1";
  82.  
  83. /* vhost6: the IP to bind to when we connect outward to ipv6 servers.
  84. * This should be an ipv6 IP only.
  85. */
  86. #vhost6 = "3ffe:80e8:546::2";
  87.  
  88. /* default max clients: the default maximum number of clients
  89. * allowed to connect. This can be changed once ircd has started by
  90. * issuing:
  91. * /quote set maxclients <limit>
  92. */
  93. default_max_clients = 10000;
  94. };
  95.  
  96. /* admin {}: contains admin information about the server. (OLD A:) */
  97. admin {
  98. name = "Smurf target";
  99. description = "Main Server Administrator";
  100. email = "<syn@packets.r.us>";
  101. };
  102.  
  103. /* log {}: contains information about logfiles. */
  104. log {
  105. /* logfiles: the logfiles to use for specific activity. if these
  106. * paths are defined, then ircd will log to them, otherwise it wont.
  107. *
  108. * The confs are, in order:
  109. * - userlog: user exits
  110. * - fuserlog: failed user connections
  111. * - operlog: /oper usage
  112. * - foperlog: failed /oper usage
  113. * - serverlog: server connects/disconnects
  114. * - glinelog: glines
  115. * - klinelog: klines, etc
  116. * - killlog: kills
  117. * - operspylog: operspy usage
  118. * - ioerrorlog: IO errors
  119. */
  120. fname_userlog = "logs/userlog";
  121. #fname_fuserlog = "logs/fuserlog";
  122. fname_operlog = "logs/operlog";
  123. #fname_foperlog = "logs/foperlog";
  124. fname_serverlog = "logs/serverlog";
  125. fname_glinelog = "logs/glinelog";
  126. #fname_klinelog = "logs/klinelog";
  127. fname_killlog = "logs/killlog";
  128. fname_operspylog = "logs/operspylog";
  129. #fname_ioerrorlog = "logs/ioerror";
  130. };
  131.  
  132. /* class {}: contain information about classes for users (OLD Y:) */
  133. class "users" {
  134. /* class name must go above */
  135.  
  136. /* ping time: how often a client must reply to a PING from the
  137. * server before they are dropped.
  138. */
  139. ping_time = 2 minutes;
  140.  
  141. /* number per ident: the number of users per user@host networkwide
  142. * allowed to connect. Unidented connections are classified as
  143. * the same ident.
  144. */
  145. number_per_ident = 2;
  146.  
  147. /* number per ip: the number of local users per host allowed */
  148. number_per_ip = 3;
  149.  
  150. /* number per ip global: the number of network wide connections
  151. * per host allowed for a user, including connections to the
  152. * local server.
  153. */
  154. number_per_ip_global = 5;
  155.  
  156. /* cidr_bitlen: Limits numbers of connections from a subnet size
  157. * the following example makes the subnet /64 this is useful
  158. * for IPv6 connections in particular
  159. * Also note that the way ircd-ratbox is written if you have
  160. * compiled support for IPv6, IPv4 cidr bitlens need to be modified
  161. * Basically to get the approriate length add 96 to the IPv4 length
  162. * For example for a /24 do 96+24 = 120
  163. *
  164. */
  165. cidr_bitlen = 64;
  166.  
  167. /* number_per_cidr: Number of connections to allow from a subnet of the
  168. * size given in cidr_bitlen. 4 seems to be a good default to me.
  169. */
  170. number_per_cidr = 4;
  171.  
  172. /* max number: the maximum number of users allowed in this class */
  173. max_number = 100;
  174.  
  175. /* sendq: the amount of data allowed in a clients queue before
  176. * they are dropped.
  177. */
  178. sendq = 100 kbytes;
  179. };
  180.  
  181. class "restricted" {
  182. ping_time = 1 minute 30 seconds;
  183. number_per_ip = 1;
  184. max_number = 100;
  185. sendq = 60kb;
  186. };
  187.  
  188. class "opers" {
  189. ping_time = 5 minutes;
  190. number_per_ip = 10;
  191. max_number = 100;
  192. sendq = 100kbytes;
  193. };
  194.  
  195. class "server" {
  196. ping_time = 5 minutes;
  197.  
  198. /* connectfreq: only used in server classes. specifies the delay
  199. * between autoconnecting to servers.
  200. */
  201. connectfreq = 5 minutes;
  202.  
  203. /* max number: the amount of servers to autoconnect to */
  204. max_number = 1;
  205.  
  206. /* sendq: servers need a higher sendq as they send more data */
  207. sendq=2 megabytes;
  208. };
  209.  
  210. /* listen {}: contain information about the ports ircd listens on (OLD P:) */
  211. listen {
  212. /* port: the specific port to listen on. if no host is specified
  213. * before, it will listen on all available IPs.
  214. *
  215. * ports are seperated via a comma, a range may be specified using ".."
  216. */
  217.  
  218. /* port: listen on all available IPs, ports 5000 and 6665 to 6669 */
  219. port = 5000, 6665 .. 6669;
  220.  
  221. /* host: set a specific IP/host the ports after the line will listen
  222. * on. This may be ipv4 or ipv6.
  223. */
  224. host = "1.2.3.4";
  225. port = 7000, 7001;
  226.  
  227. host = "3ffe:1234:a:b:c::d";
  228. port = 7002;
  229. };
  230.  
  231. /* auth {}: allow users to connect to the ircd (OLD I:) */
  232. auth {
  233. /* user: the user@host allowed to connect. multiple IPv4/IPv6 user
  234. * lines are permitted per auth block.
  235. */
  236. user = "*@172.16.0.0/12";
  237. user = "*test@123D:B567:*";
  238.  
  239. /* password: an optional password that is required to use this block.
  240. * By default this is not encrypted, specify the flag "encrypted" in
  241. * flags = ...; below if it is.
  242. */
  243. password = "letmein";
  244.  
  245. /* spoof: fake the users user@host to be be this. You may either
  246. * specify a host or a user@host to spoof to. This is free-form,
  247. * just do everyone a favour and dont abuse it. (OLD I: = flag)
  248. */
  249. spoof = "I.still.hate.packets";
  250.  
  251. /* Possible flags in auth:
  252. *
  253. * encrypted | password is encrypted with mkpasswd
  254. * spoof_notice | give a notice when spoofing hosts
  255. * exceed_limit (old > flag) | allow user to exceed class user limits
  256. * kline_exempt (old ^ flag) | exempt this user from k/g/xlines
  257. * gline_exempt (old _ flag) | exempt this user from glines
  258. * spambot_exempt | exempt this user from spambot checks
  259. * shide_exempt | exempt this user from serverhiding
  260. * jupe_exempt | exempt this user from generating
  261. * warnings joining juped channels
  262. * resv_exempt | exempt this user from resvs
  263. * flood_exempt | exempt this user from flood limits
  264. * USE WITH CAUTION.
  265. * no_tilde (old - flag) | don't prefix ~ to username if no ident
  266. * need_ident (old + flag) | require ident for user in this class
  267. */
  268. flags = kline_exempt, exceed_limit;
  269.  
  270. /* class: the class the user is placed in */
  271. class = "opers";
  272. };
  273.  
  274. auth {
  275. /* redirect: the server and port to redirect a user to. A user does
  276. * not have to obey the redirection, the ircd just suggests to them
  277. * an alternative server.
  278. */
  279. redirserv = "irc.ircd-ratbox.org";
  280. redirport = 6667;
  281.  
  282. user = "*.ircd-ratbox.org";
  283.  
  284. /* class: a class is required even though it is not used */
  285. class = "users";
  286. };
  287.  
  288. auth {
  289. user = "*@*";
  290. class = "users";
  291. };
  292.  
  293. /* operator {}: defines ircd operators. (OLD O:)
  294. * ircd-ratbox no longer supports local operators, privileges are
  295. * controlled via flags.
  296. */
  297. operator "god" {
  298. /* name: the name of the oper must go above */
  299.  
  300. /* user: the user@host required for this operator. CIDR *is*
  301. * supported now.
  302. * multiple user="" lines are supported.
  303. */
  304. user = "*god@*";
  305. user = "*@127.0.0.1";
  306.  
  307. /* password: the password required to oper. Unless ~encrypted is
  308. * contained in flags = ...; this will need to be encrypted using
  309. * mkpasswd, MD5 is supported
  310. */
  311. password = "etcnjl8juSU1E";
  312.  
  313. /* rsa key: the public key for this oper when using Challenge.
  314. * A password should not be defined when this is used, see
  315. * doc/challenge.txt for more information.
  316. */
  317. #rsa_public_key_file = "/usr/local/ircd/etc/oper.pub";
  318.  
  319. /* umodes: the specific umodes this oper gets when they oper.
  320. * If this is specified an oper will not be given oper_umodes
  321. * These are described above oper_only_umodes in general {};
  322. */
  323. #umodes = locops, servnotice, operwall, wallop;
  324.  
  325. /* privileges: controls the activities and commands an oper is
  326. * allowed to do on the server. You may prefix an option with ~ to
  327. * disable it, ie ~operwall
  328. *
  329. * Default flags are operwall, remoteban and encrypted.
  330. *
  331. * Available options:
  332. *
  333. * encrypted: the password specified above is encrypted [DEFAULT]
  334. * local_kill: allows local users to be /KILL'd
  335. * global_kill: allows local and remote users to be
  336. * /KILL'd (OLD 'O' flag)
  337. * remote: allows remote SQUIT and CONNECT (OLD 'R' flag)
  338. * kline: allows KILL, KLINE and DLINE (OLD 'K' flag)
  339. * unkline: allows UNKLINE and UNDLINE (OLD 'U' flag)
  340. * gline: allows GLINE (OLD 'G' flag)
  341. * nick_changes: allows oper to see nickchanges (OLD 'N' flag)
  342. * via usermode +n
  343. * rehash: allows oper to REHASH config (OLD 'H' flag)
  344. * die: allows DIE and RESTART (OLD 'D' flag)
  345. * admin: gives admin privileges. admins
  346. * may (un)load modules and see the
  347. * real IPs of servers.
  348. * hidden_admin: gives admin privileges except
  349. * will not have the admin lines in
  350. * stats p and whois.
  351. * xline: allows use of /quote xline/unxline
  352. * operwall: allows the oper to send operwalls [DEFAULT]
  353. * oper_spy: allows 'operspy' features to see through +s
  354. * channels etc. see /quote help operspy
  355. * hidden_oper: hides the oper from /stats p (OLD UMODE +p)
  356. * remoteban: allows remote kline etc [DEFAULT]
  357. */
  358. flags = global_kill, remote, kline, unkline, gline,
  359. die, rehash, admin, xline, operwall;
  360. };
  361.  
  362. /* connect {}: controls servers we connect to (OLD C:, N:, H:, L:) */
  363. connect "irc.uplink.com" {
  364. /* the name must go above */
  365.  
  366. /* host: the host or IP to connect to. If a hostname is used it
  367. * must match the reverse dns of the server.
  368. */
  369. host = "192.168.0.1";
  370.  
  371. /* vhost: the host or IP to bind to for this connection. If this
  372. * is not specified, the default vhost (in serverinfo {}) is used.
  373. */
  374. #vhost = "192.168.0.50";
  375.  
  376. /* passwords: the passwords we send (OLD C:) and accept (OLD N:).
  377. * The remote server will have these passwords reversed.
  378. */
  379. send_password = "password";
  380. accept_password = "anotherpassword";
  381.  
  382. /* port: the port to connect to this server on */
  383. port = 6666;
  384.  
  385. /* hub mask: the mask of servers that this server may hub. Multiple
  386. * entries are permitted
  387. */
  388. hub_mask = "*";
  389.  
  390. /* leaf mask: the mask of servers this server may not hub. Multiple
  391. * entries are permitted. Useful for forbidding EU -> US -> EU routes.
  392. */
  393. #leaf_mask = "*.uk";
  394.  
  395. /* class: the class this server is in */
  396. class = "server";
  397.  
  398. /* flags: controls special options for this server
  399. * encrypted - marks the accept_password as being crypt()'d
  400. * autoconn - automatically connect to this server
  401. * compressed - compress traffic via ziplinks
  402. * topicburst - burst topics between servers
  403. */
  404. flags = compressed, topicburst;
  405. };
  406.  
  407. connect "ipv6.some.server" {
  408. host = "3ffd:dead:beef::1";
  409. send_password = "password";
  410. accept_password = "password";
  411. port = 6666;
  412.  
  413. /* aftype: controls whether the connection uses "ipv4" or "ipv6".
  414. * Default is ipv4.
  415. */
  416. aftype = ipv6;
  417. class = "server";
  418. };
  419.  
  420. /* cluster {}; servers that we propagate things to automatically.
  421. * NOTE: This does NOT grant them privileges to apply anything locally,
  422. * you must add a seperate shared block for that. Clustering will
  423. * only be done for actions by LOCAL opers, that arent directed
  424. * remotely.
  425. */
  426. cluster {
  427. /* name: the server to share with, this can be a wildcard and may be
  428. * stacked.
  429. */
  430. /* flags: list of what to share, all the name lines above this (up
  431. * until another flags entry) will receive these flags.
  432. *
  433. * kline - share perm klines
  434. * tkline - share temp klines
  435. * unkline - share unklines
  436. * locops - share locops
  437. * xline - share perm xlines
  438. * txline - share temp xlines
  439. * unxline - share unxlines
  440. * resv - share perm resvs
  441. * tresv - share temp resvs
  442. * unresv - share unresvs
  443. * all - share all of the above
  444. */
  445.  
  446. /* share klines/unklines/xlines with *.lan */
  447. name = "*.lan";
  448. flags = kline, unkline, xline;
  449.  
  450. /* share locops with irc.ircd-ratbox.org and ircd.ircd-ratbox.org */
  451. name = "irc.ircd-ratbox.org";
  452. name = "ircd.ircd-ratbox.org";
  453. flags = locops;
  454. };
  455.  
  456. /* If you are using the ratbox-services compatibility code, uncomment this. */
  457. /* service{}: privileged servers (services). These servers have extra
  458. * privileges such as setting login names on users and introducing clients
  459. * with umode +S (unkickable). This does not allow them to set bans, you
  460. * need a separate shared{} for that.
  461. * Do not place normal servers here.
  462. * There may be only one service{} block.
  463. */
  464. #service {
  465. # /* name: the server name. These may be stacked. */
  466. # name = "ratbox.services";
  467. #};
  468.  
  469. /* shared {}: users that are allowed to place remote bans on our server.
  470. * NOTE: These are ordered top down. The first one the user@host and server
  471. * matches will be used. Their access will then be decided on that
  472. * block and will not fall back to another block that matches.
  473. */
  474. shared {
  475. /* oper: the user@host and server the user must be on to set klines.
  476. * The first field must be a user@host, the second field is an
  477. * optional server. These may be stacked.
  478. */
  479. /* flags: list of what to allow them to place, all the oper lines
  480. * above this (up until another flags entry) will receive these
  481. * flags. This *must* be present.
  482. *
  483. * kline - allow setting perm/temp klines
  484. * tkline - allow setting temp klines
  485. * unkline - allow removing klines
  486. * xline - allow setting perm/temp xlines
  487. * txline - allow setting temp xlines
  488. * unxline - allow removing xlines
  489. * resv - allow setting perm/temp resvs
  490. * tresv - allow setting temp resvs
  491. * unresv - allow removing xlines
  492. * all - allow oper/server to do all of above (not locops)
  493. * locops - allow locops - only used for servers who cluster
  494. * none - disallow everything
  495. */
  496.  
  497. /* allow flame@*.leeh.co.uk on server irc.ircd-ratbox.org and
  498. * allow leeh@*.leeh.co.uk on server ircd.ircd-ratbox.org to kline
  499. */
  500. oper = "flame@*.leeh.co.uk", "irc.ircd-ratbox.org";
  501. oper = "leeh@*.leeh.co.uk", "ircd.ircd-ratbox.org";
  502. flags = kline;
  503.  
  504. /* you may forbid certain opers/servers from doing anything */
  505. oper = "irc@vanity.oper", "*";
  506. oper = "*@*", "irc.vanity.server";
  507. oper = "irc@another.vanity.oper", "bigger.vanity.server";
  508. flags = none;
  509.  
  510. /* or allow everyone to place temp klines */
  511. oper = "*@*";
  512. flags = tkline;
  513. };
  514.  
  515. /* exempt {}: IPs that are exempt from deny {} and Dlines. (OLD d:) */
  516. exempt {
  517. ip = "192.168.0.0/16";
  518.  
  519. /* these may be stacked */
  520. ip = "127.0.0.1";
  521. ip = "10.0.0.0/8";
  522. };
  523.  
  524. /* The channel block contains options pertaining to channels */
  525. channel {
  526. /* invex: Enable/disable channel mode +I, a n!u@h list of masks
  527. * that can join a +i channel without an invite.
  528. */
  529. use_invex = yes;
  530.  
  531. /* except: Enable/disable channel mode +e, a n!u@h list of masks
  532. * that can join a channel through a ban (+b).
  533. */
  534. use_except = yes;
  535.  
  536. /* knock: Allows users to request an invite to a channel that
  537. * is locked somehow (+ikl). If the channel is +p or you are banned
  538. * the knock will not be sent.
  539. */
  540. use_knock = yes;
  541.  
  542. /* invite ops only: Restrict /invite to ops on channels, rather than
  543. * allowing unopped users to invite people to a -i channel.
  544. */
  545. invite_ops_only = yes;
  546.  
  547. /* knock delay: The amount of time a user must wait between issuing
  548. * the knock command.
  549. */
  550. knock_delay = 5 minutes;
  551.  
  552. /* knock channel delay: How often a knock to any specific channel
  553. * is permitted, regardless of the user sending the knock.
  554. */
  555. knock_delay_channel = 1 minute;
  556.  
  557. /* max chans: The maximum number of channels a user can join/be on. */
  558. max_chans_per_user = 15;
  559.  
  560. /* quiet on ban: stop banned people talking in channels. */
  561. quiet_on_ban = yes;
  562.  
  563. /* max bans: maximum number of +b/e/I modes in a channel */
  564. max_bans = 25;
  565.  
  566. /* splitcode: split users, split servers and either no join on split
  567. * or no create on split must be enabled for split checking.
  568. * splitmode will be entered on either split users or split servers
  569. * dropping below the limit.
  570. *
  571. * you may force splitmode to be permanent by /quote set splitmode on
  572. */
  573.  
  574. /* split users: when the usercount is lower than this level, consider
  575. * ourselves split. this must be set for automatic splitmode
  576. */
  577. default_split_user_count = 0;
  578.  
  579. /* split servers: when the amount of servers that have acknowledged
  580. * theyve finished bursting is lower than this, consider ourselves
  581. * split. this must be set for automatic splitmode
  582. */
  583. default_split_server_count = 0;
  584.  
  585. /* split: no create: disallow users creating channels on split */
  586. no_create_on_split = no;
  587.  
  588. /* split: no join: disallow users joining channels at all on a split */
  589. no_join_on_split = no;
  590.  
  591. /* burst topicwho: when bursting topics, also burst the topic setter */
  592. burst_topicwho = yes;
  593. };
  594.  
  595.  
  596. /* The serverhide block contains the options regarding serverhiding */
  597. serverhide {
  598. /* flatten links: this option will show all servers in /links appear
  599. * that they are linked to this current server
  600. */
  601. flatten_links = no;
  602.  
  603. /* links delay: how often to update the links file when it is
  604. * flattened.
  605. */
  606. links_delay = 5 minutes;
  607.  
  608. /* hidden: hide this server from a /links output on servers that
  609. * support it. this allows hub servers to be hidden etc.
  610. */
  611. hidden = no;
  612.  
  613. /* disable hidden: prevent servers hiding themselves from a
  614. * /links ouput.
  615. */
  616. disable_hidden = no;
  617. };
  618.  
  619. /* The general block contains many of the options that were once compiled
  620. * in options in config.h. The general block is read at start time.
  621. */
  622. general {
  623. /* hide error messages: defines whether error messages from
  624. * servers are hidden or not. These can sometimes contain IPs and
  625. * can have an adverse effect on server ip hiding. Set to:
  626. * yes: hide from opers and admin
  627. * opers: hide from opers only
  628. * no: do not hide error messages
  629. */
  630. hide_error_messages = opers;
  631.  
  632. /* hide spoof ips: hide the real ips of spoofed users */
  633. hide_spoof_ips = yes;
  634.  
  635. /* default invisible: set clients +i on connect */
  636. default_invisible = no;
  637.  
  638. /* default operstring: defines the default oper response
  639. * in /whois queries, eg "is an IRC Operator"
  640. */
  641. default_operstring = "is an IRC Operator";
  642.  
  643. /* default adminstring: defines the default admin response
  644. * in /whois queries, eg "is a Server Administrator"
  645. */
  646. default_adminstring = "is a Server Administrator";
  647.  
  648. /* tkline_expire_notices: give a notice to opers when a tkline
  649. * expires
  650. */
  651. tkline_expire_notices = no;
  652.  
  653. /* floodcount: the default value of floodcount that is configurable
  654. * via /quote set floodcount. This is the amount of lines a user
  655. * may send to any other user/channel in one second.
  656. */
  657. default_floodcount = 10;
  658.  
  659. /* disable fake channels: disable local users joining fake versions
  660. * of channels, eg #foo^B^B. Disables bold, mirc colour, reverse,
  661. * underline and hard space. (ASCII 2, 3, 22, 31, 160 respectively).
  662. */
  663. disable_fake_channels = no;
  664.  
  665. /* failed oper notice: send a notice to all opers on the server when
  666. * someone tries to OPER and uses the wrong password, host or ident.
  667. */
  668. failed_oper_notice = yes;
  669.  
  670. /* dots in ident: the amount of '.' characters permitted in an ident
  671. * reply before the user is rejected.
  672. */
  673. dots_in_ident=2;
  674.  
  675. /* dot in ipv6: ircd-hybrid-6.0 and earlier will disallow hosts
  676. * without a '.' in them. this will add one to the end. only needed
  677. * for older servers.
  678. */
  679. dot_in_ip6_addr = no;
  680.  
  681. /* min nonwildcard: the minimum non wildcard characters in k/d/g lines
  682. * placed via the server. klines hand placed are exempt from limits.
  683. * wildcard chars: '.' '*' '?' '@'
  684. */
  685. min_nonwildcard = 4;
  686.  
  687. /* min nonwildcard simple: the minimum non wildcard characters in
  688. * xlines/resvs placed via the server.
  689. * wildcard chars: '*' '?'
  690. */
  691. min_nonwildcard_simple = 3;
  692.  
  693. /* max accept: maximum allowed /accept's for +g usermode */
  694. max_accept = 20;
  695.  
  696. /* max monitor: the maximum amount of nicknames a client may have in
  697. * their monitor (server-side notify) list.
  698. */
  699. max_monitor = 100;
  700.  
  701. /* nick flood: enable the nickflood control code */
  702. anti_nick_flood = yes;
  703.  
  704. /* nick flood: the nick changes allowed in the specified period */
  705. max_nick_time = 20 seconds;
  706. max_nick_changes = 5;
  707.  
  708. /* anti spam time: the minimum time a user must be connected before
  709. * custom quit messages are allowed.
  710. */
  711. anti_spam_exit_message_time = 5 minutes;
  712.  
  713. /* ts delta: the time delta allowed between server clocks before
  714. * a warning is given, or before the link is dropped. all servers
  715. * should run ntpdate/rdate to keep clocks in sync
  716. */
  717. ts_warn_delta = 30 seconds;
  718. ts_max_delta = 5 minutes;
  719.  
  720. /* client exit: prepend a users quit message with "Client exit: " */
  721. client_exit = yes;
  722.  
  723. /* dline reason: show the user the dline reason when they connect
  724. * and are dlined.
  725. */
  726. dline_with_reason = yes;
  727.  
  728. /* kline delay: delay the checking of klines until a specified time.
  729. * Useful if large kline lists are applied often to prevent the
  730. * server eating CPU.
  731. */
  732. kline_delay = 0 seconds;
  733.  
  734. /* kline reason: show the user the reason why they are k/d/glined
  735. * on exit. may give away who set k/dline when set via tcm.
  736. */
  737. kline_with_reason = yes;
  738.  
  739. /* kline reason: make the users quit message on channels this
  740. * reason instead of the oper's reason.
  741. */
  742. kline_reason = "Connection closed";
  743.  
  744. /* non redundant klines: flag and ignore redundant klines */
  745. non_redundant_klines = yes;
  746.  
  747. /* warn no nline: warn opers about servers that try to connect but
  748. * we dont have a connect {} block for. Twits with misconfigured
  749. * servers can get really annoying with this enabled.
  750. */
  751. warn_no_nline = yes;
  752.  
  753. /* stats e disabled: disable stats e. useful if server ips are
  754. * exempted and you dont want them listing on irc.
  755. */
  756. stats_e_disabled = no;
  757.  
  758. /* stats c oper only: make stats c (connect {}) oper only */
  759. stats_c_oper_only=no;
  760.  
  761. /* stats h oper only: make stats h (hub_mask/leaf_mask) oper only */
  762. stats_h_oper_only=no;
  763.  
  764. /* stats y oper only: make stats y (class {}) oper only */
  765. stats_y_oper_only=no;
  766.  
  767. /* stats o oper only: make stats o (opers) oper only */
  768. stats_o_oper_only=yes;
  769.  
  770. /* stats P oper only: make stats P (ports) oper only
  771. * NOTE: users doing stats P will never be given the ips that the
  772. * server listens on, simply the ports.
  773. */
  774. stats_P_oper_only=no;
  775.  
  776. /* stats i oper only: make stats i (auth {}) oper only. set to:
  777. * yes: show users no auth blocks, made oper only.
  778. * masked: show users first matching auth block
  779. * no: show users all auth blocks.
  780. */
  781. stats_i_oper_only=masked;
  782.  
  783. /* stats k/K oper only: make stats k/K (klines) oper only. set to:
  784. * yes: show users no auth blocks, made oper only
  785. * masked: show users first matching auth block
  786. * no: show users all auth blocks.
  787. */
  788. stats_k_oper_only=masked;
  789.  
  790. /* map oper only: make /map oper only */
  791. map_oper_only = no;
  792.  
  793. /* operspy admin only: make operspy notices to +Z admin only */
  794. operspy_admin_only = no;
  795.  
  796. /* caller id wait: time between notifying a +g user that somebody
  797. * is messaging them.
  798. */
  799. caller_id_wait = 1 minute;
  800.  
  801. /* pace wait simple: time between use of less intensive commands
  802. * (HELP, remote WHOIS, WHOWAS)
  803. */
  804. pace_wait_simple = 1 second;
  805.  
  806. /* pace wait: time between more intensive commands
  807. * (ADMIN, INFO, LIST, LUSERS, MOTD, STATS, VERSION)
  808. */
  809. pace_wait = 10 seconds;
  810.  
  811. /* short motd: send clients a notice telling them to read the motd
  812. * instead of forcing a motd to clients who may simply ignore it.
  813. */
  814. short_motd = no;
  815.  
  816. /* ping cookies: require clients to respond exactly to a ping command,
  817. * can help block certain types of drones and FTP PASV mode spoofing.
  818. */
  819. ping_cookie = no;
  820.  
  821. /* connect timeout: sets how long we should wait for a connection
  822. * request to succeed
  823. */
  824. connect_timeout = 30 seconds;
  825.  
  826. /* disable auth: disables identd checking */
  827. disable_auth = no;
  828.  
  829. /* no oper flood: increase flood limits for opers. */
  830. no_oper_flood = yes;
  831.  
  832. /* glines: enable glines, network wide temp klines */
  833. glines = yes;
  834.  
  835. /* gline time: the amount of time a gline will remain before expiring */
  836. gline_time = 1 day;
  837.  
  838. /* gline_min_cidr: If using a CIDR gline, the minimum length the
  839. * mask must be
  840. */
  841. gline_min_cidr = 16;
  842.  
  843. /* idletime: the maximum amount of time a user may idle before
  844. * they are disconnected
  845. */
  846. idletime = 0;
  847.  
  848. /* REMOVE ME. The following line checks you've been reading. */
  849. havent_read_conf = yes;
  850.  
  851. /* max targets: the maximum amount of targets in a single
  852. * PRIVMSG/NOTICE. set to 999 NOT 0 for unlimited.
  853. */
  854. max_targets = 4;
  855.  
  856. /* client flood: maximum number of lines in a clients queue before
  857. * they are dropped for flooding.
  858. */
  859. client_flood = 20;
  860.  
  861. /* use_whois_actually: send clients requesting a whois a numeric
  862. * giving the real IP of non-spoofed clients to prevent DNS abuse.
  863. */
  864. use_whois_actually = yes;
  865.  
  866. /* usermodes configurable: a list of usermodes for the options below
  867. *
  868. * +b - bots - See bot and drone flooding notices
  869. * +c - cconn - Client connection/quit notices
  870. * +C - cconnext - Extended client connection/quit notices
  871. * +d - debug - See debugging notices
  872. * +f - full - See I: line full notices
  873. * +g - callerid - Server Side Ignore
  874. * +i - invisible - Not shown in NAMES or WHO unless you share a
  875. * a channel
  876. * +k - skill - See server generated KILL messages
  877. * +l - locops - See LOCOPS messages
  878. * +n - nchange - See client nick changes
  879. * +r - rej - See rejected client notices
  880. * +s - servnotice - See general server notices
  881. * +u - unauth - See unauthorised client notices
  882. * +w - wallop - See server generated WALLOPS
  883. * +x - external - See remote server connection and split notices
  884. * +y - spy - See LINKS, STATS, TRACE notices etc.
  885. * +z - operwall - See oper generated WALLOPS
  886. * +Z - operspy - See operspy notices
  887. */
  888.  
  889. /* oper only umodes: usermodes only opers may set */
  890. oper_only_umodes = bots, cconn, debug, full, skill, nchange,
  891. rej, spy, external, operwall, locops, unauth;
  892.  
  893. /* oper umodes: default usermodes opers get when they /oper */
  894. oper_umodes = locops, servnotice, operwall, wallop;
  895.  
  896. /* servlink path: path to 'servlink' program used by ircd to handle
  897. * encrypted/compressed server <-> server links.
  898. *
  899. * only define if servlink is not in same directory as ircd itself.
  900. */
  901. #servlink_path = "/usr/local/ircd/bin/servlink";
  902.  
  903. /* use egd: if your system does not have *random devices yet you
  904. * want to use OpenSSL and encrypted links, enable this. Beware -
  905. * EGD is *very* CPU intensive when gathering data for its pool
  906. */
  907. #use_egd = yes;
  908.  
  909. /* egdpool path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
  910. * which automatically finds the path.
  911. */
  912. #egdpool_path = "/var/run/egd-pool";
  913.  
  914.  
  915. /* compression level: level of compression for compressed links between
  916. * servers.
  917. *
  918. * values are between: 1 (least compression, fastest)
  919. * and: 9 (most compression, slowest).
  920. */
  921. #compression_level = 6;
  922.  
  923. /* burst_away: This enables bursting away messages to servers.
  924. * With this disabled, we will only propogate AWAY messages
  925. * as users send them, but never burst them. Be warned though
  926. * enabling this could increase the size of a burst significantly
  927. * for a large network, like EFnet.
  928. */
  929. burst_away = yes;
  930.  
  931. /* reject time: the amount of rejections through klines/dlines etc
  932. * allowed in the given time before the rejection is cached and
  933. * a pseudo temp dline is placed
  934. */
  935. reject_ban_time = 1 minute;
  936. reject_after_count = 3;
  937.  
  938. /* reject duration: the amount of time to cache the rejection */
  939. reject_duration = 5 minutes;
  940.  
  941. /* max_unknown_ip: maximum number of pending connections to the server
  942. * that are allowed per IP address
  943. */
  944. max_unknown_ip = 2;
  945. };
  946.  
  947. modules {
  948. /* module path: paths to search for modules specified below and
  949. * in /modload.
  950. */
  951. path = "/usr/local/ircd/modules";
  952. path = "/usr/local/ircd/modules/autoload";
  953.  
  954. /* module: the name of a module to load on startup/rehash */
  955. #module = "some_module.so";
  956. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement