SwiftIRC
IRC Discussion and Support
 
  Index  •  FAQ  •  Search  

It is currently Tue Sep 07, 2010 4:11 am




Post new topic Reply to topic  [ 9 posts ] 
 Configuring UnrealIRCD3.2+ on Windows 
Author Message
 Post subject: Configuring UnrealIRCD3.2+ on Windows
PostPosted: Sun Jan 03, 2010 10:16 pm 
User
User

Joined: Fri Oct 30, 2009 10:03 pm
Posts: 110
Location: In ur IRC nommin ur wires
Configuring UnrealIRCD3.2+ on windows including portforwarding and domain forwarding.


Hello I'm Alexandra.
After helping multiple friends set up IRC servers on windows using UnrealIRCD It got suggested to me that I write a quick guide... And as it was commented to me that the guides on the internet are not always as easy to understand for new comers.
I have seen a Windows guide for UnrealIRCD on here already although it was unsubstantial and somebody said that most of it was "pasted from the UnrealIRCD guide" also I thought it didn't explain fully enough what to do.

Downloading UnrealIRC3.2

1. Go to http://www.unrealircd.com and download "3.2.8.1 Win32" (Be sure not Win32 Ssl this guide is for non ssl)
2. During the download and installation you need to click download as a service along the way.
3. Once you have downloaded it go to your computer then your C drive then go to program files then down to Unreal3.2


If you use Vista
If you use vista you will need to add yourself to permissions to edit the config file, to do this you need to right click the Unreal3.2 file and go down to properties, then in that tab go to security. Then in the "Group or Usernames:" section click "Users (Admin-PC\Users)" and then go to Edit - Then Highlight "Users (Admin-PC\Users)" again and below there will be a check window, check Full control and press "Apply" then "Ok".
You can now join the rest of the guide.
Image
(Note:By doing this you have added yourself to permissions to be able to edit the configuration file for UnrealIRCD. Xp users do not have this problem as if they are running admin they can edit it anyway. Also you must be running admin to edit permissions.)

Editing the configuration file

1. Open up My Computer > Your C: File > Programme Files > Unreal3.2
2. In Unreal3.2 go to the folder named "Doc" - In there open up Example (Config file), It may ask you to say what programme to open it with, If it does open with Notepad.
3. Go back to the main Unreal3.2 file and create a new notepad file - copy and paste the whole of the "Example" file that you opened a minute ago into the new notepad. Now save that file as "unrealircd.conf" by saving it as name unrealircd.conf you have recognised that file as a config file. Check this by after saving it looking in your Unreal3.2 and checking that "unrealircd" is saved as a CONF file.
4. Open up this Unrealircd (Conf file) if you have not already - you are now ready to edit the config file.
Note that the codes that you edit are not the only ones you need so don't go deleteing the whole file and just adding the ones below.


Scroll down to where you see this:
Code:

/* FOR Windows, uncomment the following 2 lines: */
//loadmodule "modules/commands.dll";
//loadmodule "modules/cloak.dll";

You need to "uncomment" the modules like this-
Code:
/* FOR Windows, uncomment the following 2 lines: */
loadmodule "modules/commands.dll";
loadmodule "modules/cloak.dll";

Now scroll down to where the me { block is
Code:
me
{
   name "irc.TestNET.com";
   info "Irc server for testing";
   numeric 1;
};

(Note: The name doesn't have to be an actual Domain name.)
Admin block:
Code:
admin {
   "Alexandra";
   "Lexy";
   "PutA@Email.here";
};

This is what will come up when you do the /admin command, This is fairly unimportant but still.
Now scroll down to the operblock-
Code:
oper Yourname {
   class           clients;
   from {
      userhost *@*;
   };
   password "Apassword";
   flags
   {
      netadmin;
      can_zline;
      can_gzline;
      can_gkline;
      global;
   };
};

Important to note here that this is what you use to identify yourself as an operator - I tend to find that it is case sensitive so that is somthing you need to consider.

Now scroll down to the listen block.
Code:
listen         *:6667
{
   options
   {
      clientsonly;
   };
};

It is important to delete the ssl; bit from here as we are not compiling for ssl (and this is not the ssl version).
Listen is the ports that people can connect through, note that 6667 is the default port for most Irc servers.

Now scroll to the link block.
Code:
link            hub.mynet.com
{
   username   *;
   hostname    1.2.3.4;
   bind-ip    *;
   port       7029;
   hub             *;
   password-connect "LiNk";
   password-receive "LiNk";
   class           servers;
      options {
         /* Note: You should not use autoconnect when linking services */
         autoconnect;
         ssl;
         zip;
      };
};

We delete this as we are not linking yet, this is used to link to other servers to make a network and also to link to services, I'm not using this guide for Anope services at the moment although I can/will make a guide for that later on.
Code:
ulines {
   services.anynet.org;
   stats.anynet.org;
};

As with the above we are not configuring this for services so you can leave this or delete it.

Now scroll down to the tld { block - This is used to display a different motd file to people from different countries. I'm not setting this up as most people speak english, Delete this block otherwise it will cause a directory error when you start up.
Delete this:
Code:
tld {
   mask *@*.fr;
   motd "ircd.motd.fr";
   rules "ircd.rules.fr";
};


Now scroll down to "/* Network configuration */" (Set block.)
This is generally where you set it up yourself. Most of the time it doesn't matter if you dont keep the addresses uniform although it helps when you configure anope services. I'll show you mine as an example.
Code:
set {
   network-name       "TestNET";
   default-server       "irc.TestNET.com";
   services-server    "services.TestNET.com";
   stats-server       "stats.TestNET.org";
   help-channel       "#Help";
   hiddenhost-prefix   "Key";     /* This is the bit that you see in user host like on SwiftIRC its *@Swift- */
   cloak-keys {
      "aoAr1HnR6gl3sJ7hVz4Zb7x4YwpW";
      "aoAr1HnR6gl3sJ7hVz4Zb52TilLoRoFl14Wzx4";
      "aoAr1HnR6gupUdshEakdj4Zb7x4YwpW";
   };
   hosts {
      local      "locop.TestNET.com";
      global      "ircop.TestNET.com";
      coadmin      "coadmin.TestNET.com";
      admin      "admin.TestNET.com";
      servicesadmin    "csops.TestNET.com";
      netadmin    "netadmin.TestNET.com";
      host-on-oper-up "no";
   };
};

cloak-keys are what Unreal uses to hide your ip, you need three and they need to be different, in the example file you can just copy the same one into each area and just change 5-10 chars of each.
Hosts { is not really needed but to complete that block I added them anyway. These are the hosts that are given to each "strand" of oper, "host-on-oper-up "no"; means that this feature is off at the moment. If you want to change your host as oper you can do /sethost host or use HostServ if you have Anope services compiled.

Now scroll to the next set block, this doesn't need to be changed mush although there are some key things to be considerd.
Code:
set {
   kline-address "This.needs@to.be.a.valid.email.address";
   modes-on-connect "+ixw";
   modes-on-oper    "+xwgs";
   oper-auto-join "#Lexy"; /* Channel to auto join when identified as oper */
      auto-join "#Lexy"; /* I added this - this autojoins a user to said channel when they connect */
   options {
      hide-ulines;  /* The rest doesn't really need to be changed. */
      show-connect-info;
   };
   maxchannelsperuser 10;
oper-only-stats "okfGsMRUEelLCXzdD";
   throttle {
      connections 3;    /* Stops users reconnecting too fast. */
      period 60s;
   };
   anti-flood {
      nick-flood 3:60;   /* 3 nickchanges per 60 seconds (the default) */
   };
   spamfilter {
      ban-time 1d; /* default duration of a *line ban set by spamfilter */
      ban-reason "Spam/Advertising";
      virus-help-channel "#help";
   };
};


Another block I normally add is the DNS block:
Code:
dns {
nameserver 127.0.0.1; /*IP address of the server to connect to */
timeout 5s; /* Timeout if it cannot resolve address of the server within 2 secs. */
retries 1s; /* Retry connecting to the server after 2 secs. */
};


Although this block has met me with some trial and tribulation as i'm not entirely sure that I need it. But it works for me so whatever. (:
Save the file and open up UnrealIRCD, it should start fine if it doesn't post the errors here. On mIRC or SwiftKit you can now do /server -m 127.0.01 (with unrealircd running) and this will connect you to your irc server on a local server.

Port Forwarding
People will not be able to connect to your server until you portforward which is where you direct connections towards port 6667 (and therefore the IrcD). Port forwarding is done differently depending on what modem you have.
I found this website very useful - http://www.portforward.com it has most of the main modems. Basically what you have to do is forward connections to your local ip on port 6667- Mine looks like this
Image
After port forwarding users will be able to connect through your ip.

Forwarding domains to your Irc server.
Possibly the most simple thing to explain. All you need to do is go to http://www.afraid.org and let them host a domain for you. You need to get a registerd domain before getting them to host it (you dont just get a domain by entering it in their database). If you dont want to spend money on a domain you can get a free one from http://www.co.cc When logged into afraid.org you can make subdomains - the default one to make is irc.yourdomain.co.cc although you can use almost anything like on swiftirc you'll see tripwire.uk.eu.swiftirc.net "tripwire.uk.eu" replaces "irc". You then need to direct this subdomain to your ip which will in turn direct the connection to the local ip which will connect them to your irc server.

I hope you find this guide useful and if you have any questions you can memo me on irc nickname Alexandra or post here.

-Lexy

_________________
Image


Last edited by Alicks on Wed Feb 17, 2010 9:46 pm, edited 7 times in total.

Offline
 Profile E-mail  
 
 Post subject: Re: Compileing UnrealIRCD3.2+ on Windows
PostPosted: Sun Jan 03, 2010 10:23 pm 
Newbie
Newbie

Joined: Tue Nov 10, 2009 10:12 pm
Posts: 6
Nice guide Lexy!This will really help noobs like me with IRC servers. Thanks for helping me set up my server earlier :D


Offline
 Profile E-mail  
 
 Post subject: Re: Compileing UnrealIRCD3.2+ on Windows
PostPosted: Sun Jan 03, 2010 11:00 pm 
Newbie
Newbie

Joined: Sun Jan 03, 2010 10:33 pm
Posts: 1
*is one of the friends she helped*, lol, you definitely helped 400% times more than the only other guide I could find about it. Thank you very much :)


Offline
 Profile E-mail  
 
 Post subject: Re: Compiling UnrealIRCD3.2+ on Windows
PostPosted: Wed Feb 17, 2010 10:07 am 
Support Team
Support Team

Joined: Fri May 18, 2007 12:29 am
Posts: 1319
This is a guide about configuring unrealircd on windows, not compiling. Compiling involves a third party piece of software in this case a C compilrer (unreal 3.2.* is still C I think)

Overall it is not a bad guide for the quickie setup :P

Although, if your going to run an irc server, I suggest spending more then 5-10 minutes setting up your config :P

_________________
(Tim) Awong, the helpops are scaring me.


Offline
 Profile  
 
 Post subject: Re: Compiling UnrealIRCD3.2+ on Windows
PostPosted: Wed Feb 17, 2010 9:44 pm 
User
User

Joined: Fri Oct 30, 2009 10:03 pm
Posts: 110
Location: In ur IRC nommin ur wires
Fair comment, This is more for somebody that wants a quickie set up just to experience the basics, for people who are coming from a background of knowing next to nothing - I now run mine on linux rarther than windows.. And yeah compileing configuring - I wrote it at about 2:30am forgive :P

_________________
Image


Offline
 Profile E-mail  
 
 Post subject: Re: Configuring UnrealIRCD3.2+ on Windows
PostPosted: Fri Feb 19, 2010 9:52 pm 
User avatar
Support Team
Support Team

Joined: Thu Jul 19, 2007 6:39 am
Posts: 559
Location: Florida, US
Lexy wrote:
Now scroll down to the tld { block - This is used to display a different motd file to people from different countries. I'm not setting this up as most people speak english, Delete this block otherwise it will cause a directory error when you start up.
Delete this:
Code:
tld {
   mask *@*.fr;
   motd "ircd.motd.fr";
   rules "ircd.rules.fr";
};



You still want a tld block to allow a user to view the motd and rules.

Code:
tld { mask *@*; motd "ircd.motd"; rules "ircd.rules"; };

The file doesn't have to specifically be named 'ircd.motd' or 'ircd.rules'.

Lexy wrote:
This is what will come up when you do the /admin command, This is fairly unimportant but still.

/ADMIN is not unimportant. ADMIN is the only command that a client can send to the server when shunned (that will actually work..). It is useful in finding a contact e-mail to use in case of server errors, etc.

_________________
Image


Offline
 Profile E-mail  
 
 Post subject: Re: Configuring UnrealIRCD3.2+ on Windows
PostPosted: Fri Feb 19, 2010 11:26 pm 
User
User

Joined: Fri Oct 30, 2009 10:03 pm
Posts: 110
Location: In ur IRC nommin ur wires
For deleting the tld block, to be more clear I mean that I wasn't going to bother setting up things for *.fr hosts etc. And yeah you are right so for it to be correct it should say delete the country specific bits.
I'm leaving this guide as it is anyway; any comments and criticisms can be posted and then if anyone uses it they can read the posts.

~Lexy

EDIT: Correct where I say Irc is a programme with protocol. ^ UnrealIRCd is the programme.

_________________
Image


Offline
 Profile E-mail  
 
 Post subject: Re: Configuring UnrealIRCD3.2+ on Windows
PostPosted: Sun Feb 21, 2010 12:03 pm 
Support Team
Support Team

Joined: Fri May 18, 2007 12:29 am
Posts: 1319
Lexy wrote:
Now scroll down to the tld { block - This is used to display a different motd file to people from different countries. I'm not setting this up as most people speak english, Delete this block otherwise it will cause a directory error when you start up.
Delete this:
Code:
tld {
   mask *@*.fr;
   motd "ircd.motd.fr";
   rules "ircd.rules.fr";
};



For some reason the geniuses at unreal didnt think to ship the package with a default ircd.motd and ircd.rules :P

_________________
(Tim) Awong, the helpops are scaring me.


Offline
 Profile  
 
 Post subject: Re: Configuring UnrealIRCD3.2+ on Windows
PostPosted: Sun Feb 21, 2010 4:53 pm 
User avatar
Support Team
Support Team

Joined: Thu Jul 19, 2007 6:39 am
Posts: 559
Location: Florida, US
Arconiaprime wrote:
Lexy wrote:
Now scroll down to the tld { block - This is used to display a different motd file to people from different countries. I'm not setting this up as most people speak english, Delete this block otherwise it will cause a directory error when you start up.
Delete this:
Code:
tld {
   mask *@*.fr;
   motd "ircd.motd.fr";
   rules "ircd.rules.fr";
};



For some reason the geniuses at unreal didnt think to ship the package with a default ircd.motd and ircd.rules :P


Because it's not required and takes two seconds to do it on your own. They don't include an ircd.log either.

_________________
Image


Offline
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


 Who is online 

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 
Index  |  FAQ  |  Search

phpBB skin developed by: John Olson
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group