Linking UnrealIRCd with anope

UnrealIRCd is often used with the Services package called Anope.

Install UnrealIRCd
If you have not done yet, install UnrealIRCd. Either through Installing from source or Installing (Windows).

Set up linking in UnrealIRCd
Copy-paste the following Link block to your :

link services.example.net { incoming { mask { ip 127.0.0.1; } };   password "mypassword"; class servers; }; ulines { services.example.net; };

Now make two changes:
 * Change the name  to services + dot + the domain name used by your network. For example
 * Change  to some random password you will use

Now save the unrealircd.conf file and rehash UnrealIRCd.

You will need both the services name and the password again in later steps, so write them down somewhere.

Install anope

 * Download latest release of anope from https://anope.org.
 * Extract the tar.gz
 * Change to the extracted directory. For example if you extracted 2.0.12.tar.gz then you now need to

Now that you are in the anope-X.Y.Z directory you run:
 * which asks a few questions, the defaults are usually fine (press ENTER each time)

Configure anope
Your anope will be installed in  (unless you changed the installation path during  )

cd ~/services cp conf/example.conf conf/services.conf

Now open the  with an editor (eg:  ) and walk through it while following the instructions below (see next):

services.host
The file starts with: define {       name = "services.host" value = "services.example.com" }

Change  to the name of services that you chose earlier in Set up linking in UnrealIRCd.

uplink
Then a few lines later you arrive at the ircd config / uplink block, for UnrealIRCd you need this in anope: uplink {       /*         * The IP or hostname of the IRC server you wish to connect Services to. * Usually, you will want to connect Services over 127.0.0.1 (aka localhost). *        * NOTE: On some shell providers, this will not be an option. */       host = "127.0.0.1"

/*        * Enable if Services should connect using IPv6. */       ipv6 = no

/*        * Enable if Services should connect using SSL. * You must have an SSL module loaded for this to work. */       ssl = no

/*        * The port to connect to. * The IRCd *MUST* be configured to listen on this port, and to accept * server connections. *        * Refer to your IRCd documentation for how this is to be done. */       port = 6667

/*        * The password to send to the IRC server for authentication. * This must match the link block on your IRCd. *        * Refer to your IRCd documentation for more information on link blocks. */       password = "mypassword" }

So compared to the default example conf that anope ships you need to edit:
 * Change  to
 * In the line  change mypassword to the password that you configured earlier in the Set up linking in UnrealIRCd step.

serverinfo
Now you arrive at the serverinfo block: The rest should be fine.
 * Edit the . Change the   to the name of services that you chose earlier in Set up linking in UnrealIRCd.
 * Change the line  to  . This defines the unique sid for the services server (similar to me::sid in UnrealIRCd).   should be fine, but you can configure another value, as long as it is unique.

protocol module
Next comes a section that looks like: module {       name = "inspircd3" Change that to: module {       name = "unreal4"

This makes anope use the protocol module for UnrealIRCd 4 and later (yes, unreal4 is correct even if you are using UnrealIRCd 6).

rest of the file
Now continue with the rest of the services file. The anope README says the following about this: Edit services.conf, configuring the uplink, serverinfo, and protocol module configurations. Example link blocks for popular IRCds are included in the the example.conf documentation. The Anope wiki is also a good source of information. Anope's support channel is located at #anope on irc.anope.org.

Note that the example configuration file includes other example configuration files. If you want to modify the other example configuration files, copy them (e.g.  to   and modify the   directive in   to include the new file.

Start anope
Now start anope blablalbalbalblabla and bladiebla!

On UnrealIRCd-side you should be oper to see any linking errors etc etc

Show how to verify on ircd side everything is teh nice...

Help and support
If you have trouble linking then you can ask in the UnrealIRCd support channel, but other than that: Anope is NOT created or maintained by UnrealIRCd, so for any question regarding anope, you should really go to their support channel:  on irc.anope.org.