Advertisement
cinwie

Untitled

Dec 8th, 2019
666
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.63 KB | None | 0 0
  1. /* Configuration file for UnrealIRCd 4.0
  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.  
  53. /* This is the me { } block which basically says who we are.
  54. * It defines our server name, some information line and an unique "sid".
  55. * The server id (sid) must start with a digit followed by two digits or
  56. * letters. The sid must be unique for your IRC network (each server should
  57. * have it's own sid).
  58. */
  59. me {
  60. name "Medan.WNet";
  61. info "( Ibu Kota Prov. Sumatera Utara - Indonesia )";
  62. sid "002";
  63. };
  64.  
  65. /* The admin { } block defines what users will see if they type /ADMIN.
  66. * It normally contains information on how to contact the administrator.
  67. */
  68. admin {
  69. "This server is administered by: w";
  70. };
  71.  
  72. /* Clients and servers are put in class { } blocks, we define them here.
  73. * Class blocks consist of the following items:
  74. * - pingfreq: how often to ping a user / server (in seconds)
  75. * - connfreq: how often we try to connect to this server (in seconds)
  76. * - sendq: the maximum queue size for a connection
  77. * - recvq: maximum receive queue from a connection (flood control)
  78. */
  79.  
  80. /* Client class with good defaults */
  81. class clients
  82. {
  83. pingfreq 90;
  84. maxclients 1000;
  85. sendq 200k;
  86. recvq 8000;
  87. };
  88.  
  89. /* Special class for IRCOps with higher limits */
  90. class opers
  91. {
  92. pingfreq 90;
  93. maxclients 50;
  94. sendq 1M;
  95. recvq 8000;
  96. };
  97.  
  98. /* Server class with good defaults */
  99. class servers
  100. {
  101. pingfreq 60;
  102. connfreq 15; /* try to connect every 15 seconds */
  103. maxclients 10; /* max servers */
  104. sendq 20M;
  105. };
  106.  
  107. /* Allow blocks define which clients may connect to this server.
  108. * This allows you to add a server password or restrict the server to
  109. * specific IP's only. You also configure the maximum connections
  110. * allowed per IP here.
  111. * See also: https://www.unrealircd.org/docs/Allow_block
  112. */
  113.  
  114. /* Allow everyone in, but only 3 connections per IP */
  115. allow {
  116. ip *@*;
  117. class clients;
  118. maxperip 3;
  119. };
  120.  
  121. /* Example of a special allow block on a specific IP:
  122. * Requires users on that IP to connect with a password. If the password
  123. * is correct then it permits 20 connections on that IP.
  124. */
  125. allow {
  126. ip *@192.168.1.*;
  127. class clients;
  128. password "$2yXOEOQDo3X/s6jOunN7oJIvVwWVclO736IPa";
  129. maxperip 200;
  130. };
  131.  
  132.  
  133. /* Oper blocks define your IRC Operators.
  134. * IRC Operators are people who have "extra rights" compared to others,
  135. * for example they may /KILL other people, initiate server linking,
  136. * /JOIN channels even though they are banned, etc.
  137. *
  138. * For more information about becoming an IRCOp and how to do admin
  139. * tasks, see: https://www.unrealircd.org/docs/IRCOp_guide
  140. *
  141. * For details regarding the oper { } block itself, see
  142. * https://www.unrealircd.org/docs/Oper_block
  143. */
  144.  
  145. /* Here is an example oper block for 'bobsmith' with password 'test'.
  146. * You MUST change this!!
  147. */
  148.  
  149. oper abi {
  150. class opers;
  151. mask *@*;
  152. password "k5wy8YxAlLZEMvEfGCukou89MA5OsZRTl3eR3QI";
  153. operclass locop;
  154. swhois "is a Local IRC Operator";
  155. vhost Staff.WNet;
  156. };
  157.  
  158.  
  159. /* Listen blocks define the ports where the server should listen on.
  160. * In other words: the ports that clients and servers may use to
  161. * connect to this server.
  162. *
  163. * Syntax:
  164. * listen {
  165. * {
  166. * ip <ip>;
  167. * port <port>;
  168. * options {
  169. * <options....>;
  170. * };
  171. * };
  172. */
  173.  
  174. /* Standard IRC SSL/TLS port 6697 */
  175. listen {
  176. ip 35.212.234.37;
  177. port 6667;
  178. options { ssl; };
  179. };
  180.  
  181. /* Standard IRC port 6667 */
  182. listen {
  183. ip 2607:5600:1b8:14e7:20d3:fEcb:aF6E:6453;
  184. port 6667;
  185. };
  186.  
  187. /* Standard IRC SSL/TLS port 6697 */
  188. listen {
  189. ip 2607:5600:1b8:14e7:20d3:fEcb:aF6E:6453;
  190. port 6697;
  191. options { ssl; };
  192. };
  193.  
  194. listen {
  195. ip 2607:5600:1b8:14e7:20d3:fEcb:aF6E:6453;
  196. port 6666;
  197. options { ssl; serversonly; };
  198. };
  199.  
  200. /* NOTE: If you are on an IRCd shell with multiple IP's and you use
  201. * the above listen { } blocks then you will likely get an
  202. * 'Address already in use' error and the ircd won't start.
  203. * This means you MUST bind to a specific IP instead of '*' like:
  204. * listen { ip 1.2.3.4; port 6667; };
  205. * Of course, replace the IP with the IP that was assigned to you.
  206. */
  207.  
  208. /*
  209. * Link blocks allow you to link multiple servers together to form a network.
  210. * See https://www.unrealircd.org/docs/Tutorial:_Linking_servers
  211. */
  212. link Batam.WNet
  213. {
  214. incoming {
  215. mask *;
  216. };
  217.  
  218. outgoing {
  219. bind-ip *; /* or explicitly an IP */
  220. hostname batam-v6.wnet.my.id;
  221. port 6666;
  222. options { ssl; autoconnect; };
  223. };
  224.  
  225. /* We use the SPKI fingerprint of the other server for authentication.
  226. * Run './unrealircd spkifp' on the other side to get it.
  227. * NOTE: requires UnrealIRCd 4.0.16 or later.
  228. */
  229. password "passwd" { spkifp; };
  230. hub *;
  231. class servers;
  232. };
  233.  
  234. /* The link block for services is usually much simpler.
  235. * For more information about what Services are,
  236. * see https://www.unrealircd.org/docs/Services
  237. */
  238.  
  239. /* U-lines give other servers (even) more power/commands.
  240. * If you use services you must add them here.
  241. * NEVER put the name of an UnrealIRCd server here!!!
  242. */
  243. ulines {
  244. WNet.;
  245. Stats.;
  246. };
  247.  
  248. /* Here you can add a password for the IRCOp-only /DIE and /RESTART commands.
  249. * This is mainly meant to provide a little protection against accidental
  250. * restarts and server kills.
  251. */
  252. drpass {
  253. restart "restat";
  254. die "mati";
  255. };
  256.  
  257. /* The log block defines what should be logged and to what file.
  258. * See also https://www.unrealircd.org/docs/Log_block
  259. */
  260.  
  261. /* This is a good default, it logs almost everything */
  262. log "ircd.log" {
  263. flags {
  264. oper;
  265. connects;
  266. server-connects;
  267. kills;
  268. errors;
  269. sadmin-commands;
  270. chg-commands;
  271. oper-override;
  272. tkl;
  273. spamfilter;
  274. };
  275. maxsize 10M;
  276. };
  277.  
  278. /* With "aliases" you can create an alias like /SOMETHING to send a message to
  279. * some user or bot. They are usually used for services.
  280. *
  281. * We have a number of pre-set alias files, check out the alias/ directory.
  282. * As an example, here we include all aliases used for anope services.
  283. */
  284. include "aliases/atheme.conf";
  285.  
  286. /* Ban nick names so they cannot be used by regular users */
  287. ban nick {
  288. mask "*C*h*a*n*S*e*r*v*";
  289. reason "Reserved for Services";
  290. };
  291. ban nick {
  292. mask "*N*i*c*k*S*e*r*v*";
  293. reason "Reserved for Services";
  294. };
  295. ban nick {
  296. mask "*Serv*";
  297. reason "Reserved for Services";
  298. };
  299.  
  300. #ban nick {
  301. # mask "*bot*";
  302. # reason "No Bot Allowed In This Network";
  303. #};
  304.  
  305. ban nick { mask "a"; reason "Ahnbergs nick!"; };
  306. ban nick { mask "b"; reason "Due to excessive chasing."; };
  307. ban nick { mask "c"; reason "Cannot be registered."; };
  308. ban nick { mask "d"; reason "Due to chasing."; };
  309. ban nick { mask "e"; reason "Ahnbergs nick!"; };
  310. ban nick { mask "f"; reason "Due to excessive chasing."; };
  311. ban nick { mask "g"; reason "Cannot be registered."; };
  312. ban nick { mask "h"; reason "Ahnbergs nick!"; };
  313. ban nick { mask "i"; reason "Due to chasing."; };
  314. ban nick { mask "j"; reason "Due to excessive chasing."; };
  315. ban nick { mask "k"; reason "Cannot be registered."; };
  316. ban nick { mask "l"; reason "Ahnbergs nick!"; };
  317. #ban nick { mask "m"; reason "Due to chasing."; };
  318. ban nick { mask "n"; reason "Ahnbergs nick!"; };
  319. ban nick { mask "o"; reason "Due to excessive chasing."; };
  320. ban nick { mask "p"; reason "Cannot be registered."; };
  321. ban nick { mask "q"; reason "Ahnbergs nick!"; };
  322. ban nick { mask "r"; reason "Due to chasing."; };
  323. ban nick { mask "s"; reason "Cannot be registered."; };
  324. ban nick { mask "t"; reason "Due to excessive chasing."; };
  325. ban nick { mask "u"; reason "Ahnbergs nick!"; };
  326. ban nick { mask "v"; reason "Due to excessive chasing."; };
  327. #ban nick { mask "w"; reason "Reserved for Undernet."; };
  328. ban nick { mask "x"; reason "Reserved for Undernet."; };
  329. ban nick { mask "y"; reason "Ahnbergs nick!"; };
  330. ban nick { mask "z"; reason "Cannot be registered."; };
  331.  
  332. /* Ban ip.
  333. * Note that you normally use /KLINE, /GLINE and /ZLINE for this.
  334. */
  335. ban ip {
  336. mask 195.86.232.81;
  337. reason "Hate you";
  338. };
  339.  
  340. /* Ban server - if we see this server linked to someone then we delink */
  341. ban server {
  342. mask eris.berkeley.edu;
  343. reason "Get out of here.";
  344. };
  345.  
  346. /* Ban user - just as an example, you normally use /KLINE or /GLINE for this */
  347. ban user {
  348. mask *tirc@*.saturn.bbn.com;
  349. reason "Idiot";
  350. };
  351.  
  352. /* Ban realname allows you to ban clients based on their 'real name'
  353. * or 'gecos' field.
  354. */
  355. ban realname {
  356. mask "Swat Team";
  357. reason "mIRKFORCE";
  358. };
  359.  
  360. ban realname {
  361. mask "sub7server";
  362. reason "sub7";
  363. };
  364.  
  365. /* Ban and TKL exceptions. Allows you to exempt users / machines from
  366. * KLINE, GLINE, etc.
  367. * If you are an IRCOp with a static IP (and no untrusted persons on that IP)
  368. * then we suggest you add yourself here. That way you can always get in
  369. * even if you accidentally place a *LINE ban on yourself.
  370. */
  371.  
  372. /* except ban protects you from KLINE and ZLINE */
  373. except ban {
  374. mask *@192.0.2.1;
  375. // you may add more mask entries here..
  376. };
  377.  
  378. /* except tkl with type 'all' protects you from GLINE, GZLINE, QLINE, SHUN */
  379. except tkl {
  380. mask *@192.0.2.1;
  381. type all;
  382. };
  383.  
  384. /* With deny dcc blocks you can ban filenames for DCC */
  385. deny dcc {
  386. filename "*sub7*";
  387. reason "Possible Sub7 Virus";
  388. };
  389.  
  390. /* deny channel allows you to ban a channel (mask) entirely */
  391. deny channel {
  392. channel "*warez*";
  393. reason "Warez is illegal";
  394. class "clients";
  395. };
  396. deny channel {
  397. channel "#operhelp";
  398. reason "Our network help channel is #help, not #operhelp";
  399. redirect "#help";
  400. };
  401. deny channel {
  402. channel "#services";
  403. reason "Restricted channel.";
  404. redirect "#help";
  405. };
  406. deny channel {
  407. channel "#opers";
  408. reason "Reserved to prevent abuse.";
  409. redirect "#help";
  410. };
  411. /* Allow #help */
  412. allow channel {
  413. channel "#help";
  414. };
  415.  
  416. official-channels {
  417. "#Help" { topic "The Official WNet Help Channel, If Nobody Is Present Type /helpop Helpme"; };
  418. "#WNet" { topic "Welcome To The #WNet Our Main Channel"; };
  419. };
  420.  
  421. /* VHosts (Virtual Hosts) allow users to acquire a different host.
  422. * See https://www.unrealircd.org/docs/Vhost_block
  423. */
  424.  
  425. /* Example vhost which you can use. On IRC type: /VHOST test test
  426. * NOTE: only people with an 'unrealircd.com' host may use it so
  427. * be sure to change the vhost::mask before you test.
  428. */
  429. vhost {
  430. vhost i.hate.microsefrs.com;
  431. mask *@*;
  432. login "test";
  433. password "testlol";
  434. };
  435.  
  436. /* You can include other configuration files */
  437. /* include "klines.conf"; */
  438.  
  439. /* Network configuration */
  440. set {
  441. network-name "WNet";
  442. default-server "irc.wnet.my.id";
  443. services-server "WNet.";
  444. stats-server "Stats.";
  445. help-channel "#Help";
  446. hiddenhost-prefix "WNet";
  447. prefix-quit "Quit";
  448. modes-on-join "+nt";
  449. auto-join "#WNet";
  450. sasl-server "squits";
  451.  
  452. /* Cloak keys should be the same at all servers on the network.
  453. * They are used for generating masked hosts and should be kept secret.
  454. * The keys should be 3 random strings of 50-100 characters
  455. * and must consist of lowcase (a-z), upcase (A-Z) and digits (0-9).
  456. * HINT: On *NIX, you can run './unrealircd gencloak' in your shell to let
  457. * UnrealIRCd generate 3 random strings for you.
  458. */
  459. cloak-keys {
  460. "wh4v0u3dcu8oaRPyxctq3OmdYdrx03E75xAE";
  461. "qjMkKA6sM0HNF3olbT3OTfa63AAM48hk5O5FNjX6mab";
  462. "5srNXEKuPP6apj7HuAxry8045m13oKJ1P3dmbkMi5jhd";
  463. };
  464. };
  465.  
  466. /* Server specific configuration */
  467.  
  468. set {
  469. kline-address "kline@wnet.my.id"; /* e-mail or URL shown when a user is banned */
  470. modes-on-connect "+ixw"; /* when users connect, they will get these user modes */
  471. modes-on-oper "+xwgs"; /* when someone becomes IRCOp they'll get these modes */
  472. #oper-auto-join "#opers"; /* IRCOps are auto-joined to this channel */
  473. options {
  474. hide-ulines; /* hide U-lines in /MAP and /LINKS */
  475. show-connect-info; /* show "looking up your hostname" messages on connect */
  476. identd-check;
  477. };
  478.  
  479. maxchannelsperuser 20; /* maximum number of channels a user may /JOIN */
  480.  
  481. /* The minimum time a user must be connected before being allowed to
  482. * use a QUIT message. This will hopefully help stop spam.
  483. */
  484. anti-spam-quit-message-time 60s;
  485.  
  486. /* Or simply set a static quit, meaning any /QUIT reason is ignored */
  487. /* static-quit "Client quit"; */
  488.  
  489. /* static-part does the same for /PART */
  490. /* static-part yes; */
  491.  
  492. /* Which /STATS to restrict to opers only. We suggest to leave it to * (ALL) */
  493. oper-only-stats "*";
  494.  
  495. /* Anti flood protection */
  496. anti-flood {
  497. nick-flood 3:60; /* 3 nick changes per 60 seconds (the default) */
  498. connect-flood 3:60; /* 3 connection attempts per 60 seconds (the default) */
  499. away-flood 4:120; /* 4 times per 2 minutes you may use /AWAY (default) */
  500. };
  501.  
  502. /* Settings for spam filter */
  503. spamfilter {
  504. ban-time 1d; /* default duration of a *LINE ban set by spamfilter */
  505. ban-reason "Spam/Advertising"; /* default reason */
  506. virus-help-channel "#help"; /* channel to use for 'viruschan' action */
  507. /* except "#help"; channel to exempt from Spamfilter */
  508. };
  509. };
  510.  
  511.  
  512. blacklist efnetrbl {
  513. dns {
  514. name rbl.efnetrbl.org;
  515. type record;
  516. reply { 1; 4; 5; };
  517. };
  518. action gline;
  519. ban-time 24h;
  520. reason "Proxy/Drone/TOR detected. Check http://rbl.efnetrbl.org/?i=$ip for details.";
  521. };
  522.  
  523. blacklist dronebl {
  524. dns {
  525. name dnsbl.dronebl.org;
  526. type record;
  527. reply { 3; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; };
  528. };
  529. action gline;
  530. ban-time 24h;
  531. reason "Proxy/Drone detected. Check https://dronebl.org/lookup?ip=$ip for details.";
  532. };
  533.  
  534. webirc {
  535. mask 109.169.31.4; /* ip or host mask */
  536. type webirc; /* optional, webirc is the default */
  537. password passtheword;
  538. };
  539.  
  540. webirc {
  541. mask 107.161.19.53; /* ip or host mask */
  542. type webirc; /* optional, webirc is the default */
  543. password passtheword;
  544. };
  545.  
  546. webirc {
  547. mask 107.161.19.109; /* ip or host mask */
  548. type webirc; /* optional, webirc is the default */
  549. password passtheword;
  550. };
  551.  
  552.  
  553. /* Finally, you may wish to have a MOTD (Message of the Day), this can be
  554. * done by creating an 'ircd.motd' text file in your conf/ directory.
  555. * This file will be shown to your users on connect.
  556. * For more information see https://www.unrealircd.org/docs/MOTD_and_Rules
  557. */
  558.  
  559. /*
  560. * Problems or need more help?
  561. * 1) https://www.unrealircd.org/docs/UnrealIRCd_4_documentation
  562. * 2) https://www.unrealircd.org/docs/FAQ <- answers 80% of your questions!
  563. * 3) If you are still having problems then you can get support:
  564. * - Forums: https://forums.unrealircd.org/
  565. * - IRC: irc.unrealircd.org (SSL on port 6697) / #unreal-support
  566. * Note that we require you to read the documentation and FAQ first!
  567. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement