Advertisement
Guest User

Untitled

a guest
Jan 21st, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.54 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 = "/var/loguserlog";
  121. #fname_fuserlog = "/var/logfuserlog";
  122. fname_operlog = "/var/logoperlog";
  123. #fname_foperlog = "/var/logfoperlog";
  124. fname_serverlog = "/var/logserverlog";
  125. fname_glinelog = "/var/logglinelog";
  126. #fname_klinelog = "/var/logklinelog";
  127. fname_killlog = "/var/logkilllog";
  128. fname_operspylog = "/var/logoperspylog";
  129. #fname_ioerrorlog = "/var/logioerror";
  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 = "/etc/ircdoper.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. ip = "192.168.1.104";
  523. };
  524.  
  525. /* The channel block contains options pertaining to channels */
  526. channel {
  527. /* invex: Enable/disable channel mode +I, a n!u@h list of masks
  528. * that can join a +i channel without an invite.
  529. */
  530. use_invex = yes;
  531.  
  532. /* except: Enable/disable channel mode +e, a n!u@h list of masks
  533. * that can join a channel through a ban (+b).
  534. */
  535. use_except = yes;
  536.  
  537. /* knock: Allows users to request an invite to a channel that
  538. * is locked somehow (+ikl). If the channel is +p or you are banned
  539. * the knock will not be sent.
  540. */
  541. use_knock = yes;
  542.  
  543. /* invite ops only: Restrict /invite to ops on channels, rather than
  544. * allowing unopped users to invite people to a -i channel.
  545. */
  546. invite_ops_only = yes;
  547.  
  548. /* knock delay: The amount of time a user must wait between issuing
  549. * the knock command.
  550. */
  551. knock_delay = 5 minutes;
  552.  
  553. /* knock channel delay: How often a knock to any specific channel
  554. * is permitted, regardless of the user sending the knock.
  555. */
  556. knock_delay_channel = 1 minute;
  557.  
  558. /* max chans: The maximum number of channels a user can join/be on. */
  559. max_chans_per_user = 15;
  560.  
  561. /* quiet on ban: stop banned people talking in channels. */
  562. quiet_on_ban = yes;
  563.  
  564. /* max bans: maximum number of +b/e/I modes in a channel */
  565. max_bans = 25;
  566.  
  567. /* splitcode: split users, split servers and either no join on split
  568. * or no create on split must be enabled for split checking.
  569. * splitmode will be entered on either split users or split servers
  570. * dropping below the limit.
  571. *
  572. * you may force splitmode to be permanent by /quote set splitmode on
  573. */
  574.  
  575. /* split users: when the usercount is lower than this level, consider
  576. * ourselves split. this must be set for automatic splitmode
  577. */
  578. default_split_user_count = 0;
  579.  
  580. /* split servers: when the amount of servers that have acknowledged
  581. * theyve finished bursting is lower than this, consider ourselves
  582. * split. this must be set for automatic splitmode
  583. */
  584. default_split_server_count = 0;
  585.  
  586. /* split: no create: disallow users creating channels on split */
  587. no_create_on_split = no;
  588.  
  589. /* split: no join: disallow users joining channels at all on a split */
  590. no_join_on_split = no;
  591.  
  592. /* burst topicwho: when bursting topics, also burst the topic setter */
  593. burst_topicwho = yes;
  594. };
  595.  
  596.  
  597. /* The serverhide block contains the options regarding serverhiding */
  598. serverhide {
  599. /* flatten links: this option will show all servers in /links appear
  600. * that they are linked to this current server
  601. */
  602. flatten_links = no;
  603.  
  604. /* links delay: how often to update the links file when it is
  605. * flattened.
  606. */
  607. links_delay = 5 minutes;
  608.  
  609. /* hidden: hide this server from a /links output on servers that
  610. * support it. this allows hub servers to be hidden etc.
  611. */
  612. hidden = no;
  613.  
  614. /* disable hidden: prevent servers hiding themselves from a
  615. * /links ouput.
  616. */
  617. disable_hidden = no;
  618. };
  619.  
  620. /* The general block contains many of the options that were once compiled
  621. * in options in config.h. The general block is read at start time.
  622. */
  623. general {
  624. /* hide error messages: defines whether error messages from
  625. * servers are hidden or not. These can sometimes contain IPs and
  626. * can have an adverse effect on server ip hiding. Set to:
  627. * yes: hide from opers and admin
  628. * opers: hide from opers only
  629. * no: do not hide error messages
  630. */
  631. hide_error_messages = opers;
  632.  
  633. /* hide spoof ips: hide the real ips of spoofed users */
  634. hide_spoof_ips = yes;
  635.  
  636. /* default invisible: set clients +i on connect */
  637. default_invisible = no;
  638.  
  639. /* default operstring: defines the default oper response
  640. * in /whois queries, eg "is an IRC Operator"
  641. */
  642. default_operstring = "is an IRC Operator";
  643.  
  644. /* default adminstring: defines the default admin response
  645. * in /whois queries, eg "is a Server Administrator"
  646. */
  647. default_adminstring = "is a Server Administrator";
  648.  
  649. /* tkline_expire_notices: give a notice to opers when a tkline
  650. * expires
  651. */
  652. tkline_expire_notices = no;
  653.  
  654. /* floodcount: the default value of floodcount that is configurable
  655. * via /quote set floodcount. This is the amount of lines a user
  656. * may send to any other user/channel in one second.
  657. */
  658. default_floodcount = 10;
  659.  
  660. /* disable fake channels: disable local users joining fake versions
  661. * of channels, eg #foo^B^B. Disables bold, mirc colour, reverse,
  662. * underline and hard space. (ASCII 2, 3, 22, 31, 160 respectively).
  663. */
  664. disable_fake_channels = no;
  665.  
  666. /* failed oper notice: send a notice to all opers on the server when
  667. * someone tries to OPER and uses the wrong password, host or ident.
  668. */
  669. failed_oper_notice = yes;
  670.  
  671. /* dots in ident: the amount of '.' characters permitted in an ident
  672. * reply before the user is rejected.
  673. */
  674. dots_in_ident=2;
  675.  
  676. /* dot in ipv6: ircd-hybrid-6.0 and earlier will disallow hosts
  677. * without a '.' in them. this will add one to the end. only needed
  678. * for older servers.
  679. */
  680. dot_in_ip6_addr = no;
  681.  
  682. /* min nonwildcard: the minimum non wildcard characters in k/d/g lines
  683. * placed via the server. klines hand placed are exempt from limits.
  684. * wildcard chars: '.' '*' '?' '@'
  685. */
  686. min_nonwildcard = 4;
  687.  
  688. /* min nonwildcard simple: the minimum non wildcard characters in
  689. * xlines/resvs placed via the server.
  690. * wildcard chars: '*' '?'
  691. */
  692. min_nonwildcard_simple = 3;
  693.  
  694. /* max accept: maximum allowed /accept's for +g usermode */
  695. max_accept = 20;
  696.  
  697. /* max monitor: the maximum amount of nicknames a client may have in
  698. * their monitor (server-side notify) list.
  699. */
  700. max_monitor = 100;
  701.  
  702. /* nick flood: enable the nickflood control code */
  703. anti_nick_flood = yes;
  704.  
  705. /* nick flood: the nick changes allowed in the specified period */
  706. max_nick_time = 20 seconds;
  707. max_nick_changes = 5;
  708.  
  709. /* anti spam time: the minimum time a user must be connected before
  710. * custom quit messages are allowed.
  711. */
  712. anti_spam_exit_message_time = 5 minutes;
  713.  
  714. /* ts delta: the time delta allowed between server clocks before
  715. * a warning is given, or before the link is dropped. all servers
  716. * should run ntpdate/rdate to keep clocks in sync
  717. */
  718. ts_warn_delta = 30 seconds;
  719. ts_max_delta = 5 minutes;
  720.  
  721. /* client exit: prepend a users quit message with "Client exit: " */
  722. client_exit = yes;
  723.  
  724. /* dline reason: show the user the dline reason when they connect
  725. * and are dlined.
  726. */
  727. dline_with_reason = yes;
  728.  
  729. /* kline delay: delay the checking of klines until a specified time.
  730. * Useful if large kline lists are applied often to prevent the
  731. * server eating CPU.
  732. */
  733. kline_delay = 0 seconds;
  734.  
  735. /* kline reason: show the user the reason why they are k/d/glined
  736. * on exit. may give away who set k/dline when set via tcm.
  737. */
  738. kline_with_reason = yes;
  739.  
  740. /* kline reason: make the users quit message on channels this
  741. * reason instead of the oper's reason.
  742. */
  743. kline_reason = "Connection closed";
  744.  
  745. /* non redundant klines: flag and ignore redundant klines */
  746. non_redundant_klines = yes;
  747.  
  748. /* warn no nline: warn opers about servers that try to connect but
  749. * we dont have a connect {} block for. Twits with misconfigured
  750. * servers can get really annoying with this enabled.
  751. */
  752. warn_no_nline = yes;
  753.  
  754. /* stats e disabled: disable stats e. useful if server ips are
  755. * exempted and you dont want them listing on irc.
  756. */
  757. stats_e_disabled = no;
  758.  
  759. /* stats c oper only: make stats c (connect {}) oper only */
  760. stats_c_oper_only=no;
  761.  
  762. /* stats h oper only: make stats h (hub_mask/leaf_mask) oper only */
  763. stats_h_oper_only=no;
  764.  
  765. /* stats y oper only: make stats y (class {}) oper only */
  766. stats_y_oper_only=no;
  767.  
  768. /* stats o oper only: make stats o (opers) oper only */
  769. stats_o_oper_only=yes;
  770.  
  771. /* stats P oper only: make stats P (ports) oper only
  772. * NOTE: users doing stats P will never be given the ips that the
  773. * server listens on, simply the ports.
  774. */
  775. stats_P_oper_only=no;
  776.  
  777. /* stats i oper only: make stats i (auth {}) oper only. set to:
  778. * yes: show users no auth blocks, made oper only.
  779. * masked: show users first matching auth block
  780. * no: show users all auth blocks.
  781. */
  782. stats_i_oper_only=masked;
  783.  
  784. /* stats k/K oper only: make stats k/K (klines) oper only. set to:
  785. * yes: show users no auth blocks, made oper only
  786. * masked: show users first matching auth block
  787. * no: show users all auth blocks.
  788. */
  789. stats_k_oper_only=masked;
  790.  
  791. /* map oper only: make /map oper only */
  792. map_oper_only = no;
  793.  
  794. /* operspy admin only: make operspy notices to +Z admin only */
  795. operspy_admin_only = no;
  796.  
  797. /* caller id wait: time between notifying a +g user that somebody
  798. * is messaging them.
  799. */
  800. caller_id_wait = 1 minute;
  801.  
  802. /* pace wait simple: time between use of less intensive commands
  803. * (HELP, remote WHOIS, WHOWAS)
  804. */
  805. pace_wait_simple = 1 second;
  806.  
  807. /* pace wait: time between more intensive commands
  808. * (ADMIN, INFO, LIST, LUSERS, MOTD, STATS, VERSION)
  809. */
  810. pace_wait = 10 seconds;
  811.  
  812. /* short motd: send clients a notice telling them to read the motd
  813. * instead of forcing a motd to clients who may simply ignore it.
  814. */
  815. short_motd = no;
  816.  
  817. /* ping cookies: require clients to respond exactly to a ping command,
  818. * can help block certain types of drones and FTP PASV mode spoofing.
  819. */
  820. ping_cookie = no;
  821.  
  822. /* connect timeout: sets how long we should wait for a connection
  823. * request to succeed
  824. */
  825. connect_timeout = 30 seconds;
  826.  
  827. /* disable auth: disables identd checking */
  828. disable_auth = no;
  829.  
  830. /* no oper flood: increase flood limits for opers. */
  831. no_oper_flood = yes;
  832.  
  833. /* glines: enable glines, network wide temp klines */
  834. glines = yes;
  835.  
  836. /* gline time: the amount of time a gline will remain before expiring */
  837. gline_time = 1 day;
  838.  
  839. /* gline_min_cidr: If using a CIDR gline, the minimum length the
  840. * mask must be
  841. */
  842. gline_min_cidr = 16;
  843.  
  844. /* idletime: the maximum amount of time a user may idle before
  845. * they are disconnected
  846. */
  847. idletime = 0;
  848.  
  849. /* REMOVE ME. The following line checks you've been reading. */
  850. havent_read_conf = yes;
  851.  
  852. /* max targets: the maximum amount of targets in a single
  853. * PRIVMSG/NOTICE. set to 999 NOT 0 for unlimited.
  854. */
  855. max_targets = 4;
  856.  
  857. /* client flood: maximum number of lines in a clients queue before
  858. * they are dropped for flooding.
  859. */
  860. client_flood = 20;
  861.  
  862. /* use_whois_actually: send clients requesting a whois a numeric
  863. * giving the real IP of non-spoofed clients to prevent DNS abuse.
  864. */
  865. use_whois_actually = yes;
  866.  
  867. /* usermodes configurable: a list of usermodes for the options below
  868. *
  869. * +b - bots - See bot and drone flooding notices
  870. * +c - cconn - Client connection/quit notices
  871. * +C - cconnext - Extended client connection/quit notices
  872. * +d - debug - See debugging notices
  873. * +f - full - See I: line full notices
  874. * +g - callerid - Server Side Ignore
  875. * +i - invisible - Not shown in NAMES or WHO unless you share a
  876. * a channel
  877. * +k - skill - See server generated KILL messages
  878. * +l - locops - See LOCOPS messages
  879. * +n - nchange - See client nick changes
  880. * +r - rej - See rejected client notices
  881. * +s - servnotice - See general server notices
  882. * +u - unauth - See unauthorised client notices
  883. * +w - wallop - See server generated WALLOPS
  884. * +x - external - See remote server connection and split notices
  885. * +y - spy - See LINKS, STATS, TRACE notices etc.
  886. * +z - operwall - See oper generated WALLOPS
  887. * +Z - operspy - See operspy notices
  888. */
  889.  
  890. /* oper only umodes: usermodes only opers may set */
  891. oper_only_umodes = bots, cconn, debug, full, skill, nchange,
  892. rej, spy, external, operwall, locops, unauth;
  893.  
  894. /* oper umodes: default usermodes opers get when they /oper */
  895. oper_umodes = locops, servnotice, operwall, wallop;
  896.  
  897. /* servlink path: path to 'servlink' program used by ircd to handle
  898. * encrypted/compressed server <-> server links.
  899. *
  900. * only define if servlink is not in same directory as ircd itself.
  901. */
  902. servlink_path = "/usr/bin/servlink";
  903.  
  904. /* use egd: if your system does not have *random devices yet you
  905. * want to use OpenSSL and encrypted links, enable this. Beware -
  906. * EGD is *very* CPU intensive when gathering data for its pool
  907. */
  908. #use_egd = yes;
  909.  
  910. /* egdpool path: path to EGD pool. Not necessary for OpenSSL >= 0.9.7
  911. * which automatically finds the path.
  912. */
  913. #egdpool_path = "/var/run/egd-pool";
  914.  
  915.  
  916. /* compression level: level of compression for compressed links between
  917. * servers.
  918. *
  919. * values are between: 1 (least compression, fastest)
  920. * and: 9 (most compression, slowest).
  921. */
  922. #compression_level = 6;
  923.  
  924. /* burst_away: This enables bursting away messages to servers.
  925. * With this disabled, we will only propogate AWAY messages
  926. * as users send them, but never burst them. Be warned though
  927. * enabling this could increase the size of a burst significantly
  928. * for a large network, like EFnet.
  929. */
  930. burst_away = yes;
  931.  
  932. /* reject time: the amount of rejections through klines/dlines etc
  933. * allowed in the given time before the rejection is cached and
  934. * a pseudo temp dline is placed
  935. */
  936. reject_ban_time = 1 minute;
  937. reject_after_count = 3;
  938.  
  939. /* reject duration: the amount of time to cache the rejection */
  940. reject_duration = 5 minutes;
  941.  
  942. /* max_unknown_ip: maximum number of pending connections to the server
  943. * that are allowed per IP address
  944. */
  945. max_unknown_ip = 2;
  946. };
  947.  
  948. modules {
  949. /* module path: paths to search for modules specified below and
  950. * in /modload.
  951. */
  952. path = "/usr/share/ircd/modules";
  953. path = "/usr/share/ircd/modules/autoload";
  954.  
  955. /* module: the name of a module to load on startup/rehash */
  956. #module = "some_module.so";
  957. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement