daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Nov 13th, 2018 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Configuration file for UnrealIRCd 4
  2.  *
  3.  * Simply copy this file to your conf/ directory, call it
  4.  * 'unrealircd.conf' and walk through it line by line (edit it!)
  5.  *
  6.  * Important: All lines, except the opening { line, end with an ;
  7.  * including };. This is very important, if you miss a ; somewhere then
  8.  * the configuration file parser will complain and your file will not
  9.  * be processed correctly!
  10.  * If this is your first experience with an UnrealIRCd configuration
  11.  * file then we really recommend you to read a little about the syntax,
  12.  * this only takes a few minutes and will help you a lot:
  13.  * https://www.unrealircd.org/docs/Configuration#Configuration_file_syntax
  14.  *
  15.  * UnrealIRCd 4 documentation (very extensive!):
  16.  * https://www.unrealircd.org/docs/UnrealIRCd_4_documentation
  17.  *
  18.  * Frequently Asked Questions:
  19.  * https://www.unrealircd.org/docs/FAQ
  20.  *
  21.  */
  22.  
  23. /* This is a comment, all text here is ignored (comment type #1) */
  24. // This is also a comment, this line is ignored (comment type #2)
  25. # This is also a comment, again this line is ignored (comment type #3)
  26.  
  27. /* UnrealIRCd makes heavy use of modules. Modules allow you to completely
  28.  * customize the featureset you wish to enable in UnrealIRCd.
  29.  * See: https://www.unrealircd.org/docs/Modules
  30.  *
  31.  * By using the include below we instruct the IRCd to read the file
  32.  * 'modules.default.conf' which will load more than 150 modules
  33.  * shipped with UnrealIRCd. In other words: this will simply load
  34.  * all the available features in UnrealIRCd.
  35.  * If you are setting up UnrealIRCd for the first time we suggest you
  36.  * use this. Then, when everything is up and running you can come
  37.  * back later to customize the list (if you wish).
  38.  */
  39. include "modules.default.conf";
  40.  
  41. /* Now let's include some other files as well:
  42.  * - help/help.conf for our on-IRC /HELPOP system
  43.  * - badwords.conf for channel and user mode +G
  44.  * - spamfilter.conf as an example for spamfilter usage
  45.  * - operclass.default.conf contains some good operclasses which
  46.  *   you can use in your oper blocks.
  47.  */
  48. include "help/help.conf";
  49. include "badwords.conf";
  50. include "spamfilter.conf";
  51. include "operclass.default.conf";
  52. #include "ircd.motd";
  53.  
  54. /* This is the me { } block which basically says who we are.
  55.  * It defines our server name, some information line and an unique "sid".
  56.  * The server id (sid) must start with a digit followed by two digits or
  57.  * letters. The sid must be unique for your IRC network (each server should
  58.  * have it's own sid).
  59.  */
  60. me {
  61.     name "irc.DXDHD.com";
  62.     info "Wi 14nt  15er   4is   15co  14mi nG";
  63.     sid "008";
  64. };
  65.  
  66. /* The admin { } block defines what users will see if they type /ADMIN.
  67.  * It normally contains information on how to contact the administrator.
  68.  */
  69. admin {
  70.     "Linux";
  71.     "Colonel";
  72.     "staff@dxdhd.com";
  73. };
  74.  
  75. /* Clients and servers are put in class { } blocks, we define them here.
  76.  * Class blocks consist of the following items:
  77.  * - pingfreq: how often to ping a user / server (in seconds)
  78.  * - connfreq: how often we try to connect to this server (in seconds)
  79.  * - sendq: the maximum queue size for a connection
  80.  * - recvq: maximum receive queue from a connection (flood control)
  81.  */
  82.  
  83. /* Client class with good defaults */
  84. class clients
  85. {
  86.     pingfreq 90;
  87.     maxclients 1000;
  88.     sendq 200k;
  89.     recvq 8000;
  90. };
  91.  
  92. /* Special class for IRCOps with higher limits */
  93. class opers
  94. {
  95.     pingfreq 90;
  96.     maxclients 50;
  97.     sendq 1M;
  98.     recvq 8000;
  99. };
  100.  
  101. /* Server class with good defaults */
  102. class servers
  103. {
  104.     pingfreq 60;
  105.     connfreq 15; /* try to connect every 15 seconds */
  106.     maxclients 10; /* max servers */
  107.     sendq 5M;
  108. };
  109.  
  110. /* Allow blocks define which clients may connect to this server.
  111.  * This allows you to add a server password or restrict the server to
  112.  * specific IP's only. You also configure the maximum connections
  113.  * allowed per IP here.
  114.  * See also: https://www.unrealircd.org/docs/Allow_block
  115.  */
  116.  
  117. /* Allow everyone in, but only 3 connections per IP */
  118. allow {
  119.     ip *@*;
  120.     class clients;
  121.     maxperip 12;
  122. };
  123.  
  124. /* Example of a special allow block on a specific IP:
  125.  * Requires users on that IP to connect with a password. If the password
  126.  * is correct then it permits 20 connections on that IP.
  127.  */
  128. allow {
  129.     ip *@192.0.2.1;
  130.     class clients;
  131.     password "somesecretpasswd";
  132.     maxperip 20;
  133. };
  134. /* Oper blocks define your IRC Operators.
  135.  * IRC Operators are people who have "extra rights" compared to others,
  136.  * for example they may /KILL other people, initiate server linking,
  137.  * /JOIN channels even though they are banned, etc.
  138.  *
  139.  * For more information about becoming an IRCOp and how to do admin
  140.  * tasks, see: https://www.unrealircd.org/docs/IRCOp_guide
  141.  *
  142.  * For details regarding the oper { } block itself, see
  143.  * https://www.unrealircd.org/docs/Oper_block
  144.  */
  145.  
  146. /* Here is an example oper block for 'bobsmith' with password 'test'.
  147.  * You MUST change this!!
  148.  */
  149. oper admin {
  150.     class clients;
  151.     mask *@*;
  152.     password "123456";
  153.     /* Oper permissions are defined in an 'operclass' block.
  154.      * See https://www.unrealircd.org/docs/Operclass_block
  155.      * UnrealIRCd ships with a number of default blocks, see
  156.      * the article for a full list. We choose 'netadmin' here.
  157.      */
  158.     operclass netadmin-with-override;
  159.     swhois " 2,0is the    4,0K   5,0in   4,0G ";
  160.     vhost He.Who.Knows.NothinG;
  161. };
  162.  
  163. /* Listen blocks define the ports where the server should listen on.
  164.  * In other words: the ports that clients and servers may use to
  165.  * connect to this server.
  166.  *
  167.  * Syntax:
  168.  * listen {
  169.  * {
  170.  *   ip <ip>;
  171.  *   port <port>;
  172.  *   options {
  173.  *     <options....>;
  174.  *   };
  175.  * };
  176.  */
  177.  
  178. /* Standard IRC port 6667 */
  179. listen {
  180.     ip *;
  181.     port 6667;
  182. };
  183.  
  184. /* Standard IRC SSL/TLS port 6697 */
  185. listen {
  186.     ip *;
  187.     port 6697;
  188.     options { ssl; };
  189. };
  190.  
  191. /* Special SSL/TLS servers-only port for linking */
  192. listen {
  193.     ip *;
  194.     port 7000;
  195.     options { ssl; serversonly; };
  196. };
  197.  
  198. /* NOTE: If you are on an IRCd shell with multiple IP's and you use
  199.  *       the above listen { } blocks then you will likely get an
  200.  *       'Address already in use' error and the ircd won't start.
  201.  *       This means you MUST bind to a specific IP instead of '*' like:
  202.  *       listen { ip 1.2.3.4; port 6667; };
  203.  *       Of course, replace the IP with the IP that was assigned to you.
  204.  */
  205.  
  206. /*
  207.  * Link blocks allow you to link multiple servers together to form a network.
  208.  * See https://www.unrealircd.org/docs/Tutorial:_Linking_servers
  209.  */
  210.  
  211.  
  212.  
  213.  
  214. link services.dxdhd.com
  215. {
  216.     incoming {
  217.         mask *@*;
  218.     };
  219.  
  220.     outgoing {
  221.         bind-ip *; /* or explicitly an IP */
  222.         hostname irc.dxdhd.com;
  223.         port 7000;
  224.         options { ssl; };
  225.     };
  226.  
  227.     /* We use the SPKI fingerprint of the other server for authentication.
  228.      * Run './unrealircd spkifp' on the other side to get it.
  229.      * NOTE: requires UnrealIRCd 4.0.16 or later.
  230.      */
  231.     password "AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUV=" { spkifp; };
  232.  
  233.     class servers;
  234. };
  235.  
  236. /* The link block for services is usually much simpler.
  237.  * For more information about what Services are,
  238.  * see https://www.unrealircd.org/docs/Services
  239.  */
  240. link services.mynet.org
  241. {
  242.     incoming {
  243.         mask 127.0.0.1;
  244.     };
  245.  
  246.     password "asd123asd";
  247.  
  248.     class servers;
  249. };
  250.  
  251. /* U-lines give other servers (even) more power/commands.
  252.  * If you use services you must add them here.
  253.  * NEVER put the name of an UnrealIRCd server here!!!
  254.  */
  255. ulines {
  256.     services.dxdhd.com;
  257. };
  258.  
  259. /* Here you can add a password for the IRCOp-only /DIE and /RESTART commands.
  260.  * This is mainly meant to provide a little protection against accidental
  261.  * restarts and server kills.
  262.  */
  263. drpass {
  264.     restart "restart11";
  265.     die "die11";
  266. };
  267.  
  268. /* The log block defines what should be logged and to what file.
  269.  * See also https://www.unrealircd.org/docs/Log_block
  270.  */
  271.  
  272. /* This is a good default, it logs almost everything */
  273. log "ircd.log" {
  274.     flags {
  275.         oper;
  276.         connects;
  277.         server-connects;
  278.         kills;
  279.         errors;
  280.         sadmin-commands;
  281.         chg-commands;
  282.         oper-override;
  283.         tkl;
  284.         spamfilter;
  285.     };
  286. };
  287.  
  288. /* With "aliases" you can create an alias like /SOMETHING to send a message to
  289.  * some user or bot. They are usually used for services.
  290.  *
  291.  * We have a number of pre-set alias files, check out the alias/ directory.
  292.  * As an example, here we include all aliases used for anope services.
  293.  */
  294. include "aliases/anope.conf";
  295.  
  296. /* Ban nick names so they cannot be used by regular users */
  297. ban nick {
  298.     mask "*C*h*a*n*S*e*r*v*";
  299.     reason "Reserved for Services";
  300. };
  301.  
  302. /* Ban ip.
  303.  * Note that you normally use /KLINE, /GLINE and /ZLINE for this.
  304.  */
  305. ban ip {
  306.     mask 195.86.232.81;
  307.     reason "Hate you";
  308. };
  309.  
  310. /* Ban server - if we see this server linked to someone then we delink */
  311. ban server {
  312.     mask eris.berkeley.edu;
  313.     reason "Get out of here.";
  314. };
  315.  
  316. /* Ban user - just as an example, you normally use /KLINE or /GLINE for this */
  317. ban user {
  318.     mask *tirc@*.saturn.bbn.com;
  319.     reason "Idiot";
  320. };
  321.  
  322. /* Ban realname allows you to ban clients based on their 'real name'
  323.  * or 'gecos' field.
  324.  */
  325. ban realname {
  326.     mask "Swat Team";
  327.     reason "mIRKFORCE";
  328. };
  329.  
  330. ban realname {
  331.     mask "sub7server";
  332.     reason "sub7";
  333. };
  334.  
  335. /* Ban and TKL exceptions. Allows you to exempt users / machines from
  336.  * KLINE, GLINE, etc.
  337.  * If you are an IRCOp with a static IP (and no untrusted persons on that IP)
  338.  * then we suggest you add yourself here. That way you can always get in
  339.  * even if you accidentally place a *LINE ban on yourself.
  340.  */
  341.  
  342. /* except ban protects you from KLINE and ZLINE */
  343. except ban {
  344.     mask *@192.0.2.1;
  345.     // you may add more mask entries here..
  346. };
  347.  
  348. /* except tkl with type 'all' protects you from GLINE, GZLINE, QLINE, SHUN */
  349. except tkl {
  350.     mask *@192.0.2.1;
  351.     type all;
  352. };
  353.  
  354. /* With deny dcc blocks you can ban filenames for DCC */
  355. deny dcc {
  356.     filename "*sub7*";
  357.     reason "Possible Sub7 Virus";
  358. };
  359.  
  360. /* deny channel allows you to ban a channel (mask) entirely */
  361. deny channel {
  362.     channel "*warez*";
  363.     reason "Warez is illegal";
  364.     class "clients";
  365. };
  366.  
  367. /* VHosts (Virtual Hosts) allow users to acquire a different host.
  368.  * See https://www.unrealircd.org/docs/Vhost_block
  369.  */
  370.  
  371. /* Example vhost which you can use. On IRC type: /VHOST test test
  372.  * NOTE: only people with an 'unrealircd.com' host may use it so
  373.  *       be sure to change the vhost::mask before you test.
  374.  */
  375. vhost {
  376.     vhost i.hate.microsefrs.com;
  377.     mask *@unrealircd.com;
  378.     login "test";
  379.     password "test";
  380. };
  381.  
  382. /* You can include other configuration files */
  383. /* include "klines.conf"; */
  384.  
  385. /* Network configuration */
  386. set {
  387.     network-name        "Kings.dXd.Landing";
  388.     default-server      "Kings.dXd.Landing";
  389.     services-server     "services.Kings.dXd.Landing";
  390.     stats-server        "stats.Kings.dXd.Landing";
  391.     help-channel        "#Support";
  392.     hiddenhost-prefix   "Clk";
  393.     prefix-quit         "Quit-I.Died.alive";
  394.  
  395.     /* Cloak keys should be the same at all servers on the network.
  396.      * They are used for generating masked hosts and should be kept secret.
  397.      * The keys should be 3 random strings of 50-100 characters
  398.      * and must consist of lowcase (a-z), upcase (A-Z) and digits (0-9).
  399.      * HINT: On *NIX, you can run './unrealircd gencloak' in your shell to let
  400.      *       UnrealIRCd generate 3 random strings for you.
  401.      */
  402.     cloak-keys {
  403.         "aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";
  404.         "bog345KAN237rog837";
  405.         "POE193iop391KOW756";
  406.     };
  407. };
  408.  
  409. /* Server specific configuration */
  410.  
  411. set {
  412.     kline-address "kline@dxdhd.com"; /* e-mail or URL shown when a user is banned */
  413.     modes-on-connect "+ixw"; /* when users connect, they will get these user modes */
  414.     modes-on-oper    "+xwgs"; /* when someone becomes IRCOp they'll get these modes */
  415.     oper-auto-join "#opers"; /* IRCOps are auto-joined to this channel */
  416.     options {
  417.         hide-ulines; /* hide U-lines in /MAP and /LINKS */
  418.         show-connect-info; /* show "looking up your hostname" messages on connect */
  419.     };
  420.  
  421.     maxchannelsperuser 10; /* maximum number of channels a user may /JOIN */
  422.  
  423.     /* The minimum time a user must be connected before being allowed to
  424.      * use a QUIT message. This will hopefully help stop spam.
  425.      */
  426.     anti-spam-quit-message-time 10s;
  427.  
  428.     /* Or simply set a static quit, meaning any /QUIT reason is ignored */
  429.     /* static-quit "DXDian quit";   */
  430.  
  431.     /* static-part does the same for /PART */
  432.     /* static-part yes; */
  433.  
  434.     /* Which /STATS to restrict to opers only. We suggest to leave it to * (ALL) */
  435.     oper-only-stats "*";
  436.  
  437.     /* Anti flood protection */
  438.     anti-flood {
  439.         nick-flood 3:60;    /* 3 nick changes per 60 seconds (the default) */
  440.         connect-flood 3:60; /* 3 connection attempts per 60 seconds (the default) */
  441.         away-flood 4:120;   /* 4 times per 2 minutes you may use /AWAY (default) */
  442.     };
  443.  
  444.     /* Settings for spam filter */
  445.     spamfilter {
  446.         ban-time 1d; /* default duration of a *LINE ban set by spamfilter */
  447.         ban-reason "Spam/Advertising"; /* default reason */
  448.         virus-help-channel "#help"; /* channel to use for 'viruschan' action */
  449.         /* except "#help"; channel to exempt from Spamfilter */
  450.     };
  451. };
  452.  
  453. /* Finally, you may wish to have a MOTD (Message of the Day), this can be
  454.  * done by creating an 'ircd.motd' text file in your conf/ directory.
  455.  * This file will be shown to your users on connect.
  456.  * For more information see https://www.unrealircd.org/docs/MOTD_and_Rules
  457.  */
  458.  
  459. /*
  460.  * Problems or need more help?
  461.  * 1) https://www.unrealircd.org/docs/UnrealIRCd_4_documentation
  462.  * 2) https://www.unrealircd.org/docs/FAQ <- answers 80% of your questions!
  463.  * 3) If you are still having problems then you can get support:
  464.  *    - Forums: https://forums.unrealircd.org/
  465.  *    - IRC: irc.unrealircd.org (SSL on port 6697) / #unreal-support
  466.  *    Note that we require you to read the documentation and FAQ first!
  467.  */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top