Advertisement
Guest User

shit

a guest
Jul 16th, 2011
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.12 KB | None | 0 0
  1. /*
  2. * example.conf by Daniel Hawton AKA Osiris ([email protected]).
  3. * $Id: example.conf,v 1.1.1.1.2.24 2009/04/13 11:03:55 syzop Exp $
  4. *
  5. * Works for Unreal3.2 and up
  6. *
  7. * Okay guys. This is the new example.conf. Its look is much like C++, kinda.
  8. * Anyway it is time to go over this. It's hard to pick up at first, but
  9. * with some pratice and reading you'll understand.
  10. *
  11. * Just copy this file to your main unrealircd dir and call it 'unrealircd.conf'.
  12. *
  13. * NOTE: All lines, except the opening { line, end in an ;, including the
  14. * closing } line. The IRCd will ignore commented lines.
  15. *
  16. * PLEASE READ doc/unreal32docs.html! The online version is also available at:
  17. * www.vulnscan.org/UnrealIRCd/unreal32docs.html
  18. * It contains a lot information about the configfile: gives information about
  19. * every block, variable, etc..
  20. * If you try to edit this file without reading the documentation properly
  21. * then you are pretty much guaranteed to fail!
  22. */
  23.  
  24. /* Type of comments */
  25. #Comment type 1 (Shell type)
  26. // Comment type 2(C++ style)
  27. /* Comment type 3 (C Style) */
  28. #those lines are ignored by the ircd.
  29.  
  30. /*
  31. * UnrealIRCd supports modules, loading some of them is required.
  32. * You need at least the commands module and a cloaking module.
  33. */
  34.  
  35. /* FOR *NIX, uncomment the following 2lines: */
  36. //loadmodule "src/modules/commands.so";
  37. //loadmodule "src/modules/cloak.so";
  38.  
  39. /* FOR Windows, uncomment the following 2 lines: */
  40. //loadmodule "modules/commands.dll";
  41. //loadmodule "modules/cloak.dll";
  42.  
  43. /*
  44. * You can also include other configuration files.
  45. * help.conf contains all the /helpop text. The badwords.*.conf
  46. * files contain all the badword entries for mode +G...
  47. * spamfilter.conf contains some good rules for current trojans.
  48. * You probably want to include them:
  49. */
  50. include "help.conf";
  51. include "badwords.channel.conf";
  52. include "badwords.message.conf";
  53. include "badwords.quit.conf";
  54. include "spamfilter.conf";
  55.  
  56. /*
  57. * NEW: me {}
  58. * OLD: M:Line
  59. * me {} defines the name, description and unreal server numeric for
  60. * this server. Syntax is as follows:
  61. * me {
  62. * name "server.name";
  63. * info "Server Description";
  64. * numeric (server numeric*);
  65. * };
  66. * If linking, this numeric may not be used by any other server on the network.
  67. */
  68. me
  69. {
  70. name "IRC.foo.chickenkiller.com ";
  71. info "OxidServer";
  72. numeric 1;
  73. };
  74.  
  75. /*
  76. * NEW: admin {}
  77. * OLD: A:Line
  78. * Admin gives information on the server admin. you
  79. * may put as many lines under admin { as you wish.
  80. * Syntax is as follows:
  81. * admin {
  82. * "first line";
  83. * "second line";
  84. * [etc]
  85. * };
  86. */
  87. admin {
  88. "oxide";
  89. "Oxid";
  90. };
  91.  
  92. /*
  93. * NEW: class {}
  94. * OLD: Y:line (old was confusing)
  95. * These define settings for classes. A class is a group setting for
  96. * connections. Example, server connections, instead of going to a client's
  97. * class, you direct it to the server class. Syntax is as follows
  98. * class (class name)
  99. * {
  100. * pingfreq (how often to ping a user/server in seconds);
  101. * maxclients (how many connections for this class);
  102. * sendq (maximum send queue from a connection);
  103. * recvq (maximum receive queue from a connection [flood control]);
  104. * };
  105. */
  106.  
  107. class clients
  108. {
  109. pingfreq 90;
  110. maxclients 500;
  111. sendq 100000;
  112. recvq 8000;
  113. };
  114.  
  115. class servers
  116. {
  117. pingfreq 90;
  118. maxclients 10; /* Max servers we can have linked at a time */
  119. sendq 1000000;
  120. connfreq 100; /* How many seconds between each connection attempt */
  121. };
  122.  
  123. /*
  124. * NEW: allow {}
  125. * OLD: I:Line
  126. * This defines allowing of connections...
  127. * Basically for clients, it allows them to connect so you can have some
  128. * control and/or set a password.
  129. * Syntax is as follows:
  130. * allow {
  131. * ip (ip mask to allow);
  132. * hostname (host mask);
  133. * class (class to send them to [see class {}]);
  134. * password "(password)"; (optional)
  135. * maxperip (how many connections per ip); (optional)
  136. * };
  137. */
  138.  
  139. allow {
  140. ip *@*;
  141. hostname *@*;
  142. class clients;
  143. maxperip 5;
  144. };
  145.  
  146. /* Passworded allow line */
  147. allow {
  148. ip *@255.255.255.255;
  149. hostname *@*.passworded.ugly.people;
  150. class clients;
  151. password "";
  152. maxperip 1;
  153. };
  154.  
  155. /*
  156. * NEW: allow channel {}
  157. * OLD: chrestrict
  158. * Allows a user to join a channel...
  159. * like an except from deny channel.
  160. * Syntax:
  161. * allow channel {
  162. * channel "channel name";
  163. * };
  164. */
  165. allow channel {
  166. channel "#oxid";
  167. };
  168.  
  169. /*
  170. * NEW: oper {}
  171. * OLD: O:Line
  172. * Defines an IRC Operator
  173. * IRC operators are there to keep sanity to the server and usually keep it
  174. * maintained and connected to the network.
  175. * The syntax is as follows:
  176. * oper (login) {
  177. * class (class to put them in, if different from I, moves them to new
  178. * class);
  179. * from {
  180. * userhost (ident@host);
  181. * userhost (ident@host);
  182. * };
  183. * flags
  184. * {
  185. * (*);
  186. * };
  187. * OR
  188. * flags "";
  189. * };
  190. */
  191.  
  192.  
  193. /* For a list of oper flags, see doc/unreal32docs.html#operblock
  194. * [HIGHLY recommended to read]
  195. *//*
  196. /
  197. oper bobsmith {
  198. class clients;
  199. from {
  200. userhost [email protected];
  201. };
  202. password "dummy96";
  203. flags
  204. {
  205. netadmin;
  206. can_zline;
  207. can_gzline;
  208. can_gkline;
  209. global;
  210. };
  211. };
  212.  
  213. /*
  214. * NEW: listen {}
  215. * OLD: P:Line
  216. * This defines a port for the ircd to bind to, to
  217. * allow users/servers to connect to the server.
  218. * Syntax is as follows:
  219. * listen (ip number):(port number)
  220. * {
  221. * options {
  222. * (options here);
  223. * };
  224. * };
  225. * or for a plain
  226. * listen: listen (ip):(port);
  227. *
  228. * NOTICE: for ipv6 ips (3ffe:b80:2:51d::2 etc), use listen [ip]:port;
  229. *
  230. * That works also.
  231. */
  232.  
  233. /* Options for listen:
  234. OLD | NEW
  235. S serversonly
  236. C clientsonly
  237. J java
  238. s ssl
  239. * standard
  240. */
  241.  
  242. /* NOTE ON SSL PORTS: SSL ports are pretty non-standardized,
  243. * besides numerous high-SSL ports, some people say you should run
  244. * it at 994 because that's the official SSL port.. but that
  245. * requires root! Besides, port 194 is the official irc port and
  246. * have you ever seen an ircd running on that?
  247. * So, our suggestion is to use port 6697 for SSL, this is used by
  248. * quite some networks and is recognized by for example StunTour.
  249. * You are free to open up as many SSL ports as you want, but
  250. * by (also) using 6697 you help the world standardize a bit ;).
  251. */
  252. /*listen *:6697
  253. {
  254. options
  255. {
  256. ssl;
  257. clientsonly;
  258. };
  259. };
  260.  
  261. listen *:8067;
  262. listen *:6667;
  263.  
  264. /* NOTE: If you are on an IRCd shell with multiple IP's you are
  265. * likely to get 'Address already in use' errors in your log
  266. * and the ircd won't start. This means you MUST bind
  267. * to a specific IP instead of '*', so for example:
  268. * listen 1.2.3.4:6667;
  269. * Obviously, replace the IP with the IP that was assigned to you.
  270. */
  271.  
  272. /*
  273. * NEW: link {}
  274. * OLD: C/N:Lines
  275. * This defines an okay for a server connection.
  276. * NOTE: BOTH SERVERS NEED A LINK {} SETTING TO CONNECT PROPERLY!
  277. * Syntax is as follows:
  278. * link (server name)
  279. * {
  280. * username (username, * works too);
  281. * hostname (ip number/hostmask);
  282. * bind-ip (What IP to bind to when connecting, or *);
  283. * port (port to connect to, if any);
  284. * hub (If this is a hub, * works, or servermasks it may bring in);
  285. * [or leaf *;]
  286. * password-connect "(pass to send)";
  287. * password-receive "(pass we should receive)";
  288. * class (class to direct servers into);
  289. * options {
  290. * (options here*);
  291. * };
  292. * // If we use SSL, we can choose what cipher to use in SSL mode
  293. * // Retrieve a list by "openssl ciphers", separate ciphers with :'s
  294. *
  295. * ciphers "DES-CBC3-MD5";
  296. *
  297. * };
  298. */
  299.  
  300. /*
  301. options:
  302. OLD | NEW
  303. S ssl
  304. Z zip
  305. N/A autoconnect
  306. N/A quarantine
  307. N/A nodnscache
  308. */
  309.  
  310. /*
  311. link hub.mynet.com
  312. {
  313. username *;
  314. hostname 1.2.3.4;
  315. bind-ip *;
  316. port 7029;
  317. hub *;
  318. password-connect "";
  319. password-receive "";
  320. class servers;
  321. options {
  322. /* Note: You should not use autoconnect when linking services */
  323. /*autoconnect;
  324. ssl;
  325. zip;
  326. };
  327. };
  328. /*
  329. *
  330. * NEW: ulines {}
  331. * OLD: U:Line
  332. * U-lines give servers more power/commands, this should ONLY be set
  333. * for services/stats servers and NEVER for normal UnrealIRCd servers!
  334. * Syntax is as follows:
  335. * ulines {
  336. * (server to uline);
  337. * (server to uline);
  338. * [etc]
  339. * };
  340. */
  341. ulines {
  342. IRC.stats.1.chickenkiller.com;
  343. IRC.stats.1.chickenkiller.com;
  344. };
  345.  
  346. /*
  347. * NEW: drpass {}
  348. * OLD: X:Line
  349. * This defines the passwords for /die and /restart.
  350. * Syntax is as follows:
  351. * drpass {
  352. * restart "(password for restarting)";
  353. * die "(password for die)";
  354. * };
  355. */
  356. /drpass {
  357. restart "I-love-to-restart";
  358. die "die-you-stupid";
  359. };
  360.  
  361. /*
  362. * NEW: log {} OLD: N/A Tells the ircd where and what to log(s). You can have
  363. * as many as you wish.
  364. *
  365. * FLAGS: errors, kills, tkl, connects, server-connects, kline, oper
  366. *
  367. * Syntax:
  368. * log "log file"
  369. * {
  370. * flags
  371. * {
  372. * flag;
  373. * flag;
  374. * etc..
  375. * };
  376. * };
  377. */
  378.  
  379. log "ircd.log" {
  380. /* Delete the log file and start a new one when it reaches 2MB, leave this out to always use the
  381. same log */
  382. maxsize 2097152;
  383. flags {
  384. oper;
  385. kline;
  386. connects;
  387. server-connects;
  388. kills;
  389. errors;
  390. sadmin-commands;
  391. chg-commands;
  392. oper-override;
  393. spamfilter;
  394. };
  395. };
  396.  
  397. /*
  398. * NEW: alias {}
  399. * OLD: N/A
  400. * This allows you to set command aliases such as /nickserv, /chanserv etc
  401. * FLAGS: services, stats, normal
  402. *
  403. * Syntax:
  404. * alias "name" {
  405. * target "points to";
  406. * type aliastype;
  407. * };
  408. *
  409. * [NOTE: You could also include a pre-defined alias file here, see doc/unreal32docs.html section 2.9]
  410. */
  411.  
  412. // This points the command /nickserv to the user NickServ who is connected to the set::services-server server
  413. /*alias NickServ {
  414. target "NickServ";
  415. type services;
  416. };*/
  417.  
  418. // If you want the command to point to the same nick as the command, you can leave the nick entry out
  419. //alias ChanServ { type services; };
  420.  
  421. // Points the /statserv command to the user StatServ on the set::stats-server server
  422. //alias StatServ { type stats; };
  423.  
  424. // Points the /superbot command to the user SuperBot
  425. //alias SuperBot { type normal; };
  426.  
  427.  
  428. /* Standard aliases */
  429. alias NickServ { type services; };
  430. alias ChanServ { type services; };
  431. alias OperServ { type services; };
  432. alias HelpServ { type services; };
  433. alias StatServ { type stats; };
  434.  
  435. /*
  436. * NEW: alias {}
  437. * OLD: N/A
  438. * This allows you to set command aliases such as /identify, /services, etc
  439. *
  440. * Syntax:
  441. * alias "name" {
  442. * format "format string" {
  443. * target "points to";
  444. * type aliastype;
  445. * parameters "parameters to send";
  446. * };
  447. * type command;
  448. * };
  449. */
  450. /* This is shown seperately because even though it has teh same name as the previous directive, it is very
  451. * different in syntax, although it provides a similar function and relys on the standard aliases to work.
  452. */
  453. /
  454. alias "identify" {
  455. format "^#" {
  456. target "chanserv";
  457. type services;
  458. parameters "IDENTIFY %1-";
  459. };
  460. format "^[^#]" {
  461. target "nickserv";
  462. type services;
  463. parameters "IDENTIFY %1-";
  464. };
  465. type command;
  466. };
  467.  
  468. /* The alias::format directive is a regular expression. The first format matches the /identify command when
  469. * the first character is a #. It then passes this along to the chanserv alias with the parameters IDENTIFY
  470. * %1-. The second format matches then /identify command when the first character is not a #. It then
  471. * passes the command to the nickserv alias with parameters IDENTIFY %1-.
  472. */
  473.  
  474. /* The alias::format::parameters is similar to scripting languages. %N (where N is a number) represents a
  475. * parameter sent to the command (in this case /identify). If you specify %N- it means all parameters from
  476. * N until the last parameter in the string. You may also specify %n which is replaced by
  477. * the user's nickname.
  478. */
  479.  
  480. /* Standard aliases */
  481. alias "services" {
  482. format "^#" {
  483. target "chanserv";
  484. type services;
  485. parameters "%1-";
  486. };
  487. format "^[^#]" {
  488. target "nickserv";
  489. type services;
  490. parameters "%1-";
  491. };
  492. type command;
  493. };
  494.  
  495. alias "identify" {
  496. format "^#" {
  497. target "chanserv";
  498. type services;
  499. parameters "IDENTIFY %1-";
  500. };
  501. format "^[^#]" {
  502. target "nickserv";
  503. type services;
  504. parameters "IDENTIFY %1-";
  505. };
  506. type command;
  507. };
  508.  
  509. /* This is an example of a real command alias */
  510. /* This maps /GLINEBOT to /GLINE <parameter> 2d etc... */
  511. alias "glinebot" {
  512. format ".+" {
  513. command "gline";
  514. type real;
  515. parameters "%1 2d Bots are not allowed on this server, please read the faq at http://www.example.com/faq/123";
  516. };
  517. type command;
  518. };
  519.  
  520.  
  521.  
  522. /*
  523. * NEW: tld {}
  524. * OLD: T:Line
  525. * This sets a different motd and rules files
  526. * depending on the clients hostmask.
  527. * Syntax is as follows:
  528. * tld {
  529. * mask (ident@host);
  530. * motd "(motd file)";
  531. * rules "(rules file)";
  532. * };
  533. */
  534. /*
  535. tld {
  536. mask *@*.fr;
  537. motd "yo how it be";
  538. rules "hoes";
  539. };
  540.  
  541. *//* note: you can just delete the example block above,
  542. * in which case the defaults motd/rules files (ircd.motd, ircd.rules)
  543. * will be used for everyone.
  544. */
  545.  
  546. /*
  547. * NEW: ban nick {}
  548. * OLD: Q:Line
  549. * Bans a nickname, so it can't be used.
  550. * Syntax is as follows:
  551. * ban nick {
  552. * mask "(nick to ban)";
  553. * reason "(reason)";
  554. * };
  555. */
  556. ban nick {
  557. mask "*C*h*a*n*S*e*r*v*";
  558. reason "Reserved for Services";
  559. };
  560. /*
  561. * NEW: ban ip {}
  562. * OLD: Z:Line
  563. * Bans an ip from connecting to the network.
  564. * Syntax:
  565. * ban ip { mask (ip number/hostmask); reason "(reason)"; };
  566. */
  567. ban ip {
  568. mask 195.86.232.81;
  569. reason "Delinked server";
  570. };
  571. /*
  572. * NEW: ban server {}
  573. * OLD: Server Q:Line
  574. * Disables a server from connecting to the network.
  575. * if the server links to a remote server, local server
  576. * will disconnect from the network.
  577. * Syntax is as follows:
  578. * ban server {
  579. * mask "(server name)";
  580. * reason "(reason to give)";
  581. * };
  582. */
  583.  
  584. ban server {
  585. mask eris.berkeley.edu;
  586. reason "Get out of here.";
  587. };
  588. /*
  589. * NEW: ban user {}
  590. * OLD: K:Line
  591. * This makes it so a user from a certain mask can't connect
  592. * to your server.
  593. * Syntax:
  594. * ban user { mask (hostmask/ip number); reason "(reason)"; };
  595. */
  596.  
  597. ban user {
  598. mask *tirc@*.saturn.bbn.com;
  599. reason "Idiot";
  600. };
  601.  
  602. /*
  603. * NEW: ban realname {}
  604. * OLD: n:Line
  605. * This bans a certain realname from being used.
  606. * Syntax:
  607. * ban realname {
  608. * mask "(real name)";
  609. * reason "(reason)";
  610. * };
  611. */
  612.  
  613. ban realname {
  614. mask "Swat Team";
  615. reason "mIRKFORCE";
  616. };
  617.  
  618. ban realname {
  619. mask "sub7server";
  620. reason "sub7";
  621. };
  622.  
  623. /*
  624. * NOTE FOR ALL BANS, they may be repeated for addition entries!
  625. *
  626. * NEW: except ban {}
  627. * OLD: E:Line
  628. * This makes it so you can't get banned.
  629. * Syntax:
  630. * except ban { mask (ident@host); };
  631. * Repeat the except ban {} as many times
  632. * as you want for different hosts.
  633. */
  634.  
  635. except ban {
  636. /* don't ban stskeeps */
  637. mask *stskeeps@212.*;
  638. };
  639.  
  640. /*
  641. * NEW: deny dcc {}
  642. * OLD: dccdeny.conf
  643. * Use this to block dcc send's... stops
  644. * viruses better.
  645. * Syntax:
  646. * deny dcc
  647. * {
  648. * filename "file to block (ie, *exe)";
  649. * reason "reason";
  650. * };
  651. */
  652. deny dcc {
  653. filename "*sub7*";
  654. reason "Possible Sub7 Virus";
  655. };
  656.  
  657. /*
  658. * NEW: deny channel {}
  659. * OLD: N/A (NEW)
  660. * This blocks channels from being joined.
  661. * Syntax:
  662. * deny channel {
  663. * channel "(channel)";
  664. * reason "reason";
  665. * };
  666. */
  667. deny channel {
  668. channel "*warez*";
  669. reason "Warez is illegal";
  670. };
  671.  
  672. /*
  673. * NEW: vhost {}
  674. * OLD: Vhost.conf file
  675. * This sets a fake ip for non-opers, or
  676. * opers too lazy to /sethost :P
  677. * Syntax:
  678. * vhost {
  679. * vhost (vhost.com);
  680. * from {
  681. * userhost (ident@host to allow to use it);
  682. * };
  683. * login (login name);
  684. * password (password);
  685. * };
  686. * then to use this vhost, do /vhost (login) (password) in IRC
  687. */
  688. vhost {
  689. vhost i.hate.microsefrs.com;
  690. from {
  691. userhost *@*.image.dk;
  692. };
  693. login stskeeps;
  694. password moocowsrulemyworld;
  695. };
  696.  
  697. /* You can include other configuration files */
  698. /* include "klines.conf"; */
  699.  
  700. /* Network configuration */
  701. set {
  702. network-name "ROXnet";
  703. default-server "IRC.foo.chickenkiller.com";
  704. services-server "";
  705. stats-server "IRC.stats.1.chickenkiller.com";
  706. help-channel "";
  707. hiddenhost-prefix "";
  708. /* prefix-quit "no"; */
  709. /* Cloak keys should be the same at all servers on the network.
  710. * They are used for generating masked hosts and should be kept secret.
  711. * The keys should be 3 random strings of 5-100 characters
  712. * (10-20 chars is just fine) and must consist of lowcase (a-z),
  713. * upcase (A-Z) and digits (0-9) [see first key example].
  714. * HINT: On *NIX, you can run './unreal gencloak' in your shell to let
  715. * Unreal generate 3 random strings for you.
  716. */
  717. cloak-keys {
  718. "aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";
  719. "and another one";
  720. "and another one";
  721. };
  722. /* on-oper host */
  723. hosts {
  724. local "";
  725. global "";
  726. coadmin "";
  727. admin "";
  728. servicesadmin "";
  729. netadmin "";
  730. host-on-oper-up "no";
  731. };
  732. };
  733.  
  734. /* Server specific configuration */
  735.  
  736. set {
  737. kline-address "[email protected]";
  738. modes-on-connect "+ixw";
  739. modes-on-oper "+xwgs";
  740. oper-auto-join "#opers";
  741. options {
  742. hide-ulines;
  743. /* You can enable ident checking here if you want */
  744. /* identd-check; */
  745. show-connect-info;
  746. };
  747.  
  748. maxchannelsperuser 10;
  749. /* The minimum time a user must be connected before being allowed to use a QUIT message,
  750. * This will hopefully help stop spam */
  751. anti-spam-quit-message-time 10s;
  752. /* Make the message in static-quit show in all quits - meaning no
  753. custom quits are allowed on local server */
  754. /* static-quit "Client quit"; */
  755.  
  756. /* You can also block all part reasons by uncommenting this and say 'yes',
  757. * or specify some other text (eg: "Bye bye!") to always use as a comment.. */
  758. /* static-part yes; */
  759.  
  760. /* This allows you to make certain stats oper only, use * for all stats,
  761. * leave it out to allow users to see all stats. Type '/stats' for a full list.
  762. * Some admins might want to remove the 'kGs' to allow normal users to list
  763. * klines, glines and shuns.
  764. */
  765. oper-only-stats "okfGsMRUEelLCXzdD";
  766.  
  767. /* Throttling: this example sets a limit of 3 connection attempts per 60s (per host). */
  768. throttle {
  769. connections 3;
  770. period 60s;
  771. };
  772.  
  773. /* Anti flood protection */
  774. anti-flood {
  775. nick-flood 3:60; /* 3 nickchanges per 60 seconds (the default) */
  776. };
  777.  
  778. /* Spam filter */
  779. spamfilter {
  780. ban-time 1d; /* default duration of a *line ban set by spamfilter */
  781. ban-reason "Spam/Advertising"; /* default reason */
  782. virus-help-channel "#help"; /* channel to use for 'viruschan' action */
  783. /* except "#help"; channel to exempt from filtering */
  784. };
  785. };
  786.  
  787. /*
  788. * Problems or need more help?
  789. * 1) www.vulnscan.org/UnrealIRCd/unreal32docs.html
  790. * 2) www.vulnscan.org/UnrealIRCd/faq/ <- contains 80% of your questions!
  791. * 3) If you still have problems you can go irc.ircsystems.net #unreal-support,
  792. * note that we require you to READ THE DOCUMENTATION and FAQ first!
  793. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement