Linking Problem with Thales (read the linking how-to)

These are old archives. They are kept for historic purposes only.
Post Reply
delle
Posts: 4
Joined: Sat Jun 11, 2005 9:20 am
Location: Germany
Contact:

Linking Problem with Thales (read the linking how-to)

Post by delle »

Hi there,

This whole Linking stuff is quite confusing I think.

However I have a running v3.2.3 Unrealircd Server. It works fine.

I wanted to implement how many users are only in specific channels of the IRC server on a website over PHP. I found that thales can do that:
http://www.gnu.org/software/thales/

I installed thales and everything seemed to went right MySql tables are installed, and thale is also making entries when startign and also had no compile error)

but however, unrealircd does not like it that thales is trying to connect.

Must thales in this case be seen as server??? Otherwise why the linking problem?

Here are my Configs and the error log:


Thales Config

Code: Select all

###########################################################################
#
# Remote server configuration
#
###########################################################################

# RemoteServer <hostname> <port> <password>  [REQUIRED]
#     Specifies the remote server hostname and port.  The hostname may
#     either be a standard Internet hostname or dotted-quad numeric
#     address; the port number must be an integer between 1 and 65535
#     inclusive.  The password is a string which should be enclosed in
#     double quotes if it contains any spaces (or just for clarity).

RemoteServer    Serverip 6666 "pass"

# LocalAddress <hostname> [port]  [OPTIONAL]
#     Specifies the local address to bind to before connecting to the
#     remote server.  This may be useful on multihomed hosts.  The hostname
#     and port number are specified the same way as with the RemoteServer
#     directive.  If this is not specified, Thales will let the operating
#     system choose the local address.  If only a hostname is specified,
#     Thales will bind to that address but let the operating system
#     choose the local port number.
#
#     If you don't know what this means or don't need to use it, just leave
#     the directive commented out.

LocalAddress   localhost 6666

###########################################################################
#
# Thales identification
#
###########################################################################

# ServerName <name>  [REQUIRED]
#     Specifies the IRC server name which Services should use.  May be
#     overridden by the -name command-line option.

ServerName  "thales.servername.de"

# ServerDesc <text>  [REQUIRED]
#     Specifies the text which should appear as the server's information in
#     /whois and similar queries.  May be overridden by the -desc
#     command-line option.

ServerDesc  "Thales IRC2MySQL Gateway"
Thales error log:

Code: Select all


[Jun 11 11:31:37.264532 2005] GNU Thales 1.0 starting up with unreal support (options: debug)
[Jun 11 11:31:37.281397 2005] >SQL : DELETE FROM chan
[Jun 11 11:31:37.283301 2005] >SQL : DELETE FROM ison
[Jun 11 11:31:37.284239 2005] >SQL : DELETE FROM server
[Jun 11 11:31:37.285259 2005] >SQL : DELETE FROM user
[Jun 11 11:31:37.286605 2005] >SQL : SELECT val FROM maxvalues WHERE type='users'
[Jun 11 11:31:37.287308 2005] >SQL : SELECT val FROM maxvalues WHERE type='channels'
[Jun 11 11:31:37.287774 2005] >SQL : SELECT val FROM maxvalues WHERE type='servers'
[Jun 11 11:31:37.290063 2005] >SQL : INSERT INTO server (server, comment, connecttime) values('thales.servername.de', 'Thales IRC2MySQL Ga
teway', NOW())
[Jun 11 11:31:37.291586 2005] HASH : hash_add 134711568, thales.servername.de, 1, 1
[Jun 11 11:31:37.302566 2005] >IRC : PROTOCTL NICKv2 SJOIN SJOIN2 SJ3
[Jun 11 11:31:37.302759 2005] >IRC : PASS ****
[Jun 11 11:31:37.302886 2005] >IRC : SERVER thales.servername.de 1 :Thales IRC2MySQL Gateway
[Jun 11 11:31:37.302988 2005] >IRC : :thales.servername.de EOS
[Jun 11 11:31:38.299922 2005] IRC context : ERROR :Link denied (No matching link configuration) [@127.0.0.1.6666]
[Jun 11 11:31:38.300074 2005] FATAL: Remote server returned: ERROR :Link denied (No matching link configuration) [@127.0.0.1.6666]

Unrealircd config:

Code: Select all

listen *:6667 {
        options {
                clientsonly;
        };
};

listen serverip:6666 {
        options {
                serversonly;
        };
};
and now I tried different link configurations but none did work

Code: Select all


link Serverip {
        username *;
        hostname *;
        port 6666;
        bind-ip *;
        password-connect pass;
        password-receive pass;
        hub *;
        class servers;
};

link 127.0.0.1 {
        username *;
        hostname *;
        port 6666;
        bind-ip *;
        password-connect pass;
        password-receive pass;
        hub *;
        class servers;
};

link hostname.server.de {
        username *;
        hostname *;
        port 6666;
        bind-ip *;
        password-connect pass;
        password-receive pass;
        hub *;
        class servers;
};

link domainname.de {
        username *;
        hostname serverip;
        port 6666;
        bind-ip *;
        password-connect pass;
        password-receive pass;
        hub *;
        class servers;
};

link thales.domainname.de {
        username *;
        hostname serverip;
        port 6666;
        bind-ip *;
        password-connect pass;
        password-receive pass;
        hub *;
        class servers;
};

and well, unrealircd always is saying:

FATAL: Remote server returned: ERROR :Link denied (No matching link configuration) [@127.0.0.1.6666]

what else can I do?

thanks for your help.

reagrds

delle


Mod: Don't paste your whole config file! http://forums.unrealircd.com/viewtopic.php?t=1146
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

:arrow: Did you rehash after adding the link block?
:arrow: Are you sure your link block isn't commented out?
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
delle
Posts: 4
Joined: Sat Jun 11, 2005 9:20 am
Location: Germany
Contact:

Post by delle »

sorry for pasting the whole config file.

thx, for the quick answer.

I restarted and rehashed unrealircd.

I also removed the other link blocks and left this one:

Code: Select all

link Serverip {
        username *;
        hostname *;
        port *;
        bind-ip *;
        password-connect pass;
        password-receive pass;
        hub *;
        class servers;
};
I guess this must be right??

I also added

Code: Select all

ulines {
           Serverip;
};
the link block is not commented.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

If you use "ServerName "thales.servername.de" " in your thales config, you have to use this name for your link block, not the IP. See http://www.vulnscan.org/UnrealIRCd/unre ... #linkblock

And I don't think it needs an ulines block. Don't give any server an uline unless it really requires it (i.e. services).
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

One thing, uline the server name - not the server ip (server name as in, thales.network.net or whatever you called it).

Same with the link block

So in your situation, it'd be thales.servername.de - and to answer your question, yes, thales connects as a server.

You might want to take a look at denora (go google it ;P) as thales isn't under development any more.

[edit]Doh, Dukat beat me ;)[/edit]
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
delle
Posts: 4
Joined: Sat Jun 11, 2005 9:20 am
Location: Germany
Contact:

Post by delle »

thank you guys, now it's working :wink:

regards

delle
delle
Posts: 4
Joined: Sat Jun 11, 2005 9:20 am
Location: Germany
Contact:

Post by delle »

ohh and about denora
http://denora.nomadirc.net
found it ;)

but I'll check out thales first as long it is running, only need the number of members in a chat room and I think thales is going to be ok for that.

thanks again ;)
Post Reply