Advertisement
Guest User

Untitled

a guest
May 4th, 2017
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.66 KB | None | 0 0
  1. I will try to update this tutorial on the release of new versions of the above softwares. They are both well known and widely used on IRC servers.
  2.  
  3. Ok, lets get started�
  4.  
  5. First of all download and install the Unreal setup file. This is a very simple process and requires just clicking next all the way through. DO NOT install it as a service if it asks. For novice users this can become very confusing.
  6.  
  7. Next you must copy the example config from the doc directory. Just enter the doc directory and copy example.conf into the main unreal install directory. You must now rename this file (example.conf) to unrealircd.conf. Now you must open the config file. The idea application for this is wordpad as windows notepad has line spacing trouble. On opening the config file there are a number of things you must change. All I will outline in this tutorial are the core basics to get your server up and running. There are many other options which you may use to customise your server to your own needs. These are all detailed in the Unreal IRCD docs.
  8.  
  9. Once you open the file you will see a number of things in it. I will now take you through step by step editing of this file to your needs.
  10.  
  11. Firstly, you will see the following 3 lines:
  12.  
  13. /* FOR Windows, uncomment the following 2 lines: */
  14. //loadmodule �modules/commands.dll�;
  15. //loadmodule �modules/cloak.dll�;
  16.  
  17. You must uncomment the 2nd and 3rd lines, that is remove the // from the front of them so that that block will look like this:
  18.  
  19. /* FOR Windows, uncomment the following 2 lines: */
  20. loadmodule �modules/commands.dll�;
  21. loadmodule �modules/cloak.dll�;
  22.  
  23. A little further down the file you will see:
  24.  
  25. me
  26. {
  27. name �IRC.foonet.com�;
  28. info �FooNet Server�;
  29. numeric 1;
  30. };
  31.  
  32. This needs changing to the details of your own server. This can be ANYTHING you want. For example:
  33.  
  34. me
  35. {
  36. name �irc.pchowtos.co.uk�;
  37. info �pchowtos IRC server�;
  38. numeric 1;
  39. };
  40.  
  41. A bit further down again you will see:
  42.  
  43. admin {
  44. �Bob Smith�;
  45. �bob�;
  46. �widely@used.name�;
  47. };
  48.  
  49. This is just for informational purpouses and just needs changing to your details. For example:
  50.  
  51. admin {
  52. �Phil Lavin�;
  53. �phil�;
  54. �phil@pchowtos.co.uk�;
  55. };
  56.  
  57. Now for config of the opers. Scroll down the file until you see the following:
  58.  
  59. oper bobsmith {
  60. class clients;
  61. from {
  62. userhost bob@smithco.com;
  63. };
  64. password �f00?;
  65. flags
  66. {
  67. netadmin;
  68. can_zline;
  69. can_gzline;
  70. can_gkline;
  71. global;
  72. };
  73. };
  74.  
  75. This is an example oper block config. This can be done unlimited times in a row to add new opers. You will need to edit this to your own details. oper bobsmith { is the oper username. This is what is typed when you oper-up on the server using the command /oper USERNAME PASSWORD.
  76.  
  77. userhost bob@smithco.com; This line tells the server where you are allowed to oper from. This is for security reasons to stop anyone stealing your password and opering up. bob is the ident and smithco.com is the host. This can be repeated as many times as you please. For example if you were to connect from home and work you may do:
  78.  
  79. userhost phil@*.home.host.com;
  80. userhost phil@*.work.host.com;
  81.  
  82. * in the host is a wildcard. This means that those with a dynamic IP, like myself can still oper by using the static bit of the host.
  83.  
  84. The flags { section tells the server what you can do as oper. The only one you might want to add to this is �can_override�. This allows opers to override channel modes in which they do not have the access to do so.
  85.  
  86. Now a full example. In this example we will add two opers, jim and dave. They both connect from home and work and both have override privs.
  87.  
  88. oper jim {
  89. class clients;
  90. from {
  91. userhost jimbo@*.dynamic.dsl.as9105.com;
  92. userhost jimbo@*.vnnyca.adelphia.net;
  93. };
  94. password �j1msp4ss�;
  95. flags
  96. {
  97. netadmin;
  98. can_zline;
  99. can_gzline;
  100. can_gkline;
  101. global;
  102. can_override;
  103. };
  104. };
  105.  
  106. oper dave {
  107. class clients;
  108. from {
  109. userhost davey@.ipt.aol.com;
  110. userhost davey@.ip.alltel.net;
  111. };
  112. password �dav3sp4ss�;
  113. flags
  114. {
  115. netadmin;
  116. can_zline;
  117. can_gzline;
  118. can_gkline;
  119. global;
  120. can_override;
  121. };
  122. };
  123.  
  124. Next onto the listen block. This tells the IRCD where to wait for connections. Scroll down until you see:
  125.  
  126. listen *:6697
  127. {
  128. options
  129. {
  130. ssl;
  131. clientsonly;
  132. };
  133. };
  134.  
  135. listen *:8067;
  136. listen *:6667;
  137.  
  138. I will not go into what each bit means, but just trust me and change it to:
  139.  
  140. listen *:6667
  141. {
  142. options
  143. {
  144. };
  145. };
  146.  
  147. listen *:7000;
  148.  
  149. The listen *:7000; is for when we link with Anope services later.
  150.  
  151. Next is the link block. This will give details as to how the IRCD will connect with services.
  152.  
  153. Scroll down until you see:
  154.  
  155. link hub.mynet.com
  156. {
  157. username *;
  158. hostname 1.2.3.4;
  159. bind-ip *;
  160. port 7029;
  161. hub *;
  162. password-connect �LiNk�;
  163. password-receive �LiNk�;
  164. class servers;
  165. options {
  166. /* Note: You should not use autoconnect when linking services */
  167. autoconnect;
  168. ssl;
  169. zip;
  170. };
  171. };
  172.  
  173. In this tutorial we will run services on the same server and on port 7000. For this you will need to change the link block to the following:
  174.  
  175. link services.YOURNET.COM
  176. {
  177. username *;
  178. hostname 127.0.0.1;
  179. bind-ip *;
  180. port 7000;
  181. hub *;
  182. password-connect �PASSWORD�;
  183. password-receive �PASSWORD�;
  184. class servers;
  185. options {
  186. };
  187. };
  188.  
  189. You must change YOURNET.COM to whatever the name of your network is. You must change PASSWORD to a hard to guess password of your choice.
  190.  
  191. Now scroll down until you see:
  192.  
  193. tld {
  194. mask *@*.fr;
  195. motd �IRCD.motd.fr�;
  196. rules �IRCD.rules.fr�;
  197. };
  198.  
  199. This is a really stupid dumbass bit of the conf about using different messages for different countries. Just delete this whole bit from tld { to };.
  200.  
  201. Now the easy �pretty pretty stuff�. Scroll down to:
  202.  
  203. set {
  204. network-name �ROXnet�;
  205. default-server �IRC.roxnet.org�;
  206. services-server �services.roxnet.org�;
  207. stats-server �stats.roxnet.org�;
  208. help-channel �#ROXnet�;
  209. hiddenhost-prefix �rox�;
  210. }
  211.  
  212. And change the bit in the �s to your own network details. For example:
  213.  
  214. set {
  215. network-name �PchowtosNet�;
  216. default-server �IRC.pchowtos.co.uk�;
  217. services-server �services.pchowtos.co.uk�;
  218. stats-server �stats.pchowtos.co.uk�;
  219. help-channel �#help�;
  220. hiddenhost-prefix �pchowtos�;
  221. }
  222.  
  223. Just under that you will see:
  224.  
  225. cloak-keys {
  226. �aoAr1HnR6gl3sJ7hVz4Zb7�4YwpW�;
  227. �and another one�;
  228. �and another one�;
  229. };
  230.  
  231. This is to do with cloaking the IPs of users. You need to edit the 2 lines shown here. You should make up keys of your own as these are important for the security of your users. An example (don�t use these) is:
  232.  
  233. cloak-keys {
  234. �aoAr1HnR6gl3sJ7hVz4Zb7�4YwpW�;
  235. �ksWj9ImW0k20dO3cWm9Ej2g9RbdG�;
  236. �phTl4EiF7n26sI0jDw2Dn1c6RlfK�;
  237. };
  238.  
  239. Next to set the final few details. Change:
  240.  
  241. kline-address �set.this.email�;
  242.  
  243. To something like:
  244.  
  245. kline-address �phil@pchowtos.co.uk�;
  246.  
  247. And FINALLY you�re all done. Save this config file.
  248.  
  249. Now double click the icon that should have been created on your desktop during install. This should open the Unreal Interface. This means the server is running.
  250.  
  251. Now just connect to it from your IRC client.
  252.  
  253. And now for services�
  254.  
  255. Simply install anope with the installer, as you did with unreal.
  256.  
  257. Now go into the data directory and rename example.conf to services.conf.
  258.  
  259. Now we must do the config like we did with Unreal. Again best to open services.conf up in wordpad. Once this is done we will begin�
  260.  
  261. First of all, scroll down a little bit until you see a list of IRCDs. Just under this you will see:
  262.  
  263. #IRCDModule �unreal32?
  264.  
  265. Because we are using unreal3.2 in this tutorial you can just uncomment this line (remove the # from the front so it reads:
  266.  
  267. IRCDModule �unreal32?
  268.  
  269. Now scoll down to the �Remote server configuration� section. In this you will see the line:
  270.  
  271. RemoteServer localhost 6667 �mypass�
  272.  
  273. This must be changed to the details you entered in the link block for the unreal config file:
  274.  
  275. RemoteServer 127.0.0.1 7000 �PASSWORD�
  276.  
  277. PASSWORD being the password you entered in the unreal config in the link block.
  278.  
  279. Next scroll down to the Services identification and pseudoclient names section. In this you need to change 3 values:
  280.  
  281. ServerName �services.localhost.net�
  282.  
  283. ServerDesc �Services for IRC Networks�
  284.  
  285. ServiceUser �services@localhost.net�
  286.  
  287. These can be changed to something like:
  288.  
  289. ServerName �services.pchowtos.co.uk�
  290.  
  291. ServerDesc �Services for pchowtos�
  292.  
  293. ServiceUser �services@pchowtos.co.uk�
  294.  
  295. Next scroll down to: NetworkName �LocalNet�
  296.  
  297. Change this to your network name you entered in the Unreal config e.g.:
  298.  
  299. NetworkName �PchowtosNet�
  300.  
  301. Next scroll down until you see:
  302. These are to do with encryption and MUST be changed. You must first remove the #s from the beginning of each line and replace the 7 digit numbers with other real numbers (no 0s at the start). e.g.
  303.  
  304. UserKey1 8362804
  305. UserKey2 1387025
  306. UserKey3 9693746
  307.  
  308. Now scroll down to: SendFrom services@localhost.net
  309.  
  310. Replace this with a real mail address e.g.
  311.  
  312. SendFrom services@pchowtos.co.uk
  313.  
  314. Now scroll down quite a way until you see:
  315. #ServicesRoot �dengel anope�
  316.  
  317. This gives the registered nicknames of those who are services roots. Services roots can do everything on the net. You first need to uncomment this line by removing the # and then replace dengel anope with the nicks of the services roots. Note that svsroot privs will only be given once the net is started up and the people have registered their nicks. e.g.
  318.  
  319. ServicesRoot �dave jim�
  320.  
  321. And you�re all done! Now you need to start the services by double clicking the icon that should have been created on your desktop. If this just opens and closes a black window, as it does with me, you will have to run them via cmd.
  322.  
  323. To do this, go to start and click run. In the box type:
  324.  
  325. cmd
  326.  
  327. Now press enter. This should bring up a black screen. In this type:
  328.  
  329. cd �PATH TO ANOPE�
  330.  
  331. This is most likely c:/program files/anope, so you would type:
  332.  
  333. cd �c:/program files/anope�
  334.  
  335. Note that on Vista, this will be �c:/Program Files (x86)/anope�.
  336.  
  337. Now press enter. Then just type the word anope. This should start anope. You will not get any physical messages or interfaces. The cmd screen will just look like it has frozen. Just minimize this window and go to your irc network.
  338.  
  339. Once services have started you should see them join the network if you are opered up.
  340.  
  341. Now go play!
  342.  
  343. As I said this tutorial is to get an IRC server working. You may read through the config files and change some of the options that take your fancy in order to make the network exactly how you want it.
  344.  
  345. Once you have made a change to the unreal conf you must be connected to the server and opered up. You can then just type /rehash to reload the config file. If you edit the services conf you must be a services root and type /msg operserv reload.
  346.  
  347. If you want the /os /cs /ns etc. to work you must include the aliases file in the unreal conf. Open up the unreal config file and find the lines which say:
  348.  
  349. include �help.conf�;
  350. include �badwords.channel.conf�;
  351. include �badwords.message.conf�;
  352. include �badwords.quit.conf�;
  353. include �spamfilter.conf�;
  354.  
  355. Add to the end of this:
  356.  
  357. include �aliases/anope.conf�;
  358.  
  359. This will allow you to use /ns /cs etc.
  360.  
  361. Note: Due to the way Anope was compiled for Windows, some of you may get the following error when you try to start it:
  362.  
  363. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. or The system cannot execute the specified program.
  364.  
  365. This can be fixed by going into your anope directory, finding the file called anope.exe.manifest and replacing it with the version which can be obtained by clicking here. Many thanks to therock247uk for compiling that one [12-Aug-2009]. All of the files from therock247uk�s Anope compile can be found here or if you want them all as a zip, they can be found here.
  366.  
  367. And we�re all done here. Hope this tutorial helped you Have a nice IRC day!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement