Advertisement
Guest User

shit

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