Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Linking: Unreal and Anope  (Read 63737 times)

0 Members and 1 Guest are viewing this topic.

katsklaw

  • Guest
Linking: Unreal and Anope
« on: January 26, 2007, 10:31:42 PM »

Appearently there is alot of confusion when it comes to linking Unreal and Anope together. Suprisingly this is a very simple task.

What's required to follow this "tutorial" if you will is a bit of knowledge that you as a Server Admin should already have:

1> basic understanding of editing files in your OS.
2> basic understanding of how to start applications in your OS.
3> knowledge of /squit and /connect (stuff you should have learned on your first day as an IRCop, but another story :))
4> In depth knowledge of IRC and how it works is recommended.
5> the patience required to actually read this.

ok, lets begin by understanding that Anope is connected to the network as a trusted connection as is any other ircd. Where Services is different is it has some "super powers", these special permissions are granted via ulines. ulines are case sensitive and must exist on every server BEFORE services connects! This is very important. If I have already confused you, stop reading and consult your IRCd documentation of ulines, aka U:Lines aka ulines block, super block or trusted block.

So we can see the relationship between the components better I have elected to color code each requirement so that you can see how everything matches up.

Now down to business:

1> services is going to be named services.mynet.org
2> our ircd is unreal-3.2
3> our services IP is 1.2.3.4
4> our server IP is 2.3.4.5
5> our port is 7070 { any unused port between 1025 and 65535 may be used for linking services. }
6> our numeric is 250 - This MUST be different to the other servers on the network!!!!!
7> our password is the word 'password' (without the quotes)

unrealircd.conf
-------------------------

listen 2.3.4.5:7070;

link services.mynet.org
{
      username *;
      hostname 1.2.3.4;
      bind-ip *;
      hub *;
      port 7070;
      password-connect "password";
      password-receive "password";
      class servers;
};

ulines { services.mynet.org; };

set { services-server "services.mynet.org"; };

include "aliases/anope.conf";

-----------
services.conf

IRCDModule "unreal32"
Numeric 250

RemoteServer 2.3.4.5 7070 "password"

ServerName "services.mynet.org"

-------------------------------------------------------------

There are alot more options listed in both the unrealircd.conf and services.conf so don't think that this is all that you have to do. It isn't .. it's just what you need to link anope and unreal. This mini-tutorial also does not cover other items needed to start services, our goal here was to link to Unreal.

[Edited on 28-7-2007 by katsklaw]

[Edited on 28-7-2007 by katsklaw]
« Last Edit: December 31, 2009, 05:54:35 PM by Charles Kingsley »
Logged

Muad_Dib

  • Guest
Re: Linking: Unreal and Anope
« Reply #1 on: November 04, 2008, 09:02:35 PM »

Just one addition that I always use:


listen 2.3.4.5:7070;

I would make this port serversonly:

listen 2.3.4.5:7070 {
  options {
      serversonly;
   };
};

Logged

katsklaw

  • Guest
Re: Linking: Unreal and Anope
« Reply #2 on: November 05, 2008, 05:46:33 AM »

Listen block options are not required to make the link successful and this tutorial is designed to be as simple as possible, thus why I omitted listen block as well as countless other options.

Additionally, client only or server only ports are rather moot since almost all networks use obscure ports for servers and leave all the common client ports for clients. Also there is no advantage of labeling ports for client use only or servers only, you gain no physical advantage what so ever.
Logged

stefan

  • Anope User
  • Offline Offline
  • Posts: 5
Re: Linking: Unreal and Anope
« Reply #3 on: March 15, 2009, 11:46:58 AM »

i dont really understand why there's a difference between the server ip and the services ip.
i installed unrealircd and anope on my root server. so is the server ip "localhost" or the domain (exampledomain.com)? and what is the services ip? cause i installed unrealircd and anope on the same machine!

hope you can help me out,
thanks in advance, blind4x
Logged

zEkE

  • Anope User
  • Offline Offline
  • Posts: 34
Re: Linking: Unreal and Anope
« Reply #4 on: March 16, 2009, 08:50:32 PM »

It's always best to use IP's rather than hostnames (with the exceptions of localhost and for dynamic IP users..)

If your IRCd is listening on 127.0.0.1 or *, you can connect services to localhost/127.0.0.1. If your IRCd is only listening on a non-localhost IP (192.168.*.*, or a non-local-network IP, eg 64.233.169.x) then tell services to connect to that IP.
Logged

Whrenn Project

  • Anope User
  • Offline Offline
  • Posts: 7
  • Zen Master
Re: Linking: Unreal and Anope
« Reply #5 on: April 25, 2010, 10:24:08 PM »

with sane routing tables you don't have to link services to localhost or 127.0.0.x, using your external address be it for the machine or assigned by your shell provider will still connect locally anyway. So if your address is 12.23.34.45 you can use that and still have services connected locally and if services uplink is ssl enabled all data at that point is encrypted.

This does not apply to connecting services to other machines, only ircds local to services.
« Last Edit: April 25, 2010, 10:27:36 PM by Whrenn Project »
Logged

Thhunder

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: Linking: Unreal and Anope
« Reply #6 on: January 26, 2014, 10:02:59 PM »

Hiho,
Ok i'm new here and this is my first Post so pls don't get me on the pillory  ;D

I did my Configuration to Unreal IRC 3.2.10.2 and to the Anope 1.8.8

it looks like this: (changed the passwords ;) )

Unreal:
Code: [Select]
listen         127.0.0.1:8067
{
options
{
serversonly;
};
};

link            services.url.omg
{
username userX;
hostname 127.0.0.1;
bind-ip 127.0.0.1;
port 8067;

password-connect "LinK";
password-receive "LinK";
class           servers;

};

ulines {
services.url.omg;
stats.url.omg;
};

anope:

Code: [Select]
IRCDModule "unreal32"

RemoteServer    127.0.0.1 8067 "LinK"

ServerName  "services.url.omg"

ServiceUser "services@url.omg"


so it works fine, but the server says:

Code: [Select]
-> -irc.url.omg- *** LocOps -- Link denied for services.url.omg(unknown@127.0.0.1) (Username 'unknown' didn't match 'userX') [@127.0.0.1.34635]

so my problem is now: where or how to set the ident from "unknown" to that what i need "userX" ? that value what i put into the link of the unrealircd.conf ?

there is no option for it in the example.conf ?!?

thanks for your attention

greets Thhunder
Logged
trying to start my first IRCd :)

CrazyCat

  • Anope User
  • Offline Offline
  • Posts: 258
    • Réseau IRC francophone
Re: Linking: Unreal and Anope
« Reply #7 on: January 27, 2014, 03:37:59 PM »

A linked server has no username, so in your Unreal link block, username might be *:
Code: [Select]
link services.url.omg
{
username *;
hostname 127.0.0.1;
bind-ip 127.0.0.1;
port 8067;
password-connect "LinK";
password-receive "LinK";
class           servers;
};
The check is done with server name, hostname, port and password, seems enough :)

Thhunder

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 9
Re: Linking: Unreal and Anope
« Reply #8 on: January 27, 2014, 03:57:19 PM »

Ok thx that was my Failure :)i thougt i have to set the username for it like my shell-username of the server wich i used for the services tu run... thats what i had read on the web...

but now it works ;)

greets Thhunder
Logged
trying to start my first IRCd :)
Pages: [1]   Go Up