Page 1 of 1

Linking problem -- Is this right?

Posted: Thu Jun 02, 2005 5:43 pm
by Drakx
Hi

Well i have Unrealircd running with anope services too with no problem and have been asked to link two servers together so i thought it would be the same as services link, so before i try this could you please confirm that its right thanks

server one conf

link services.mydns.com
{
username *;
hostname 192.168.x.x;
bind-ip *;
port 6668;
hub *;
password-connect "mypass";
password-receive "mypass";
class servers;
options {
autoconnect;
};
};


link 80.7.113.209 <--- or should that be there dns name?
{
username *;
hostname 80.7.113.209;
bind-ip *;
port 4000;
leaf *;
password-connect "connectpass";
password-receive "connectpass";
class servers;
options {
autoconnect;
zip;
ssl;
};

server 2 conf

link serverone.dns.com <------or should that be ip?
{
username *;
hostname 217.44.249.49;
bind-ip *;
port 4011;
hub *;
password-connect "samepassasserverone";
password-receive "samepassasserverone";
class servers;
options {
autoconnect;
zip;
ssl;
};

will server two also need the services link too?

Btw i did read the sticky on linking servers :D

but would like to confirm that ive not misunderstood it :D

Thanks for the help

Posted: Thu Jun 02, 2005 6:10 pm
by Dukat
  • Use the real name of the server, not the IP
  • Add autoconnect only on one side
And about your services link block: The second server doesn't need a link block (but an uline) to your services.

Posted: Thu Jun 02, 2005 6:14 pm
by Drakx
Thanks for the repliy, ill let you know how i get on thanks :D

Posted: Thu Jun 02, 2005 7:02 pm
by Drakx
[quote="Dukat"]
  • Use the real name of the server, not the IP
  • Add autoconnect only on one side
ok so thats for the link right?

Posted: Thu Jun 02, 2005 7:04 pm
by Stealth
Yes.

Posted: Fri Jun 03, 2005 2:58 pm
by Drakx
thanks but now im getting this error of server two


Notice -- Connection to 217.44.249.49[217.44.249.49] activated.
***: LocOps -- Link denied for irc.server1.com([email protected]) (No link block named 'irc.server1.com') [@217.44.249.49.62489]

and server 1 is giving

*** LocOps -- ERROR :from 80.7.113.209 -- Closing Link: [217.44.249.49] (Link denied (No matching link configuration))
* *** LocOps -- Server 80.7.113.209 closed the connection

what have i done wrong please?

edit if it helps heres the me blocks and network blocks too

server 2

/* Network configuration */
set {
network-name "irc.server1.com";
default-server "irc.server1.com";
services-server "services.server1.com";
stats-server "stats.server1.com";
help-channel "#help";
hiddenhost-prefix "private";
/* prefix-quit "no"; */

server 1

/* Network configuration */
set {
network-name "irc.server1.com";
default-server "irc.server1.com";
services-server "services.server1.com";
stats-server "stats.server1.com";
help-channel "#help";
hiddenhost-prefix "private";
/* prefix-quit "no"; */


me blocks

server 2

name "server2.com";
info "server2 Irc Server";
numeric 2;

server 1

name "server1.com";
info "server 1 Irc Server";
numeric 1;


Thanks

Posted: Fri Jun 03, 2005 3:04 pm
by Matridom
can you post your current link blocks as that is where the problem currently lies?

Posted: Fri Jun 03, 2005 3:22 pm
by Drakx
server 2

link 217.44.249.49
{
username *;
hostname 217.44.249.49;
bind-ip *;
port 4011;
hub *;
password-connect "pass";
password-receive "pass";
class servers;
options {
zip;
ssl;
};


Server 1

link 80.7.113.209
{
username *;
hostname 80.7.113.209;
bind-ip *;
port 4000;
leaf *;
password-connect "pass";
password-receive "pass";
class servers;
options {
autoconnect;
zip;
ssl;
};

now were getting errors like :

Notice -- Connection to 217.44.249.49[217.44.249.49] activated.
***: LocOps -- Link denied for irc.server1.com([email protected]) (No link block named 'irc.server1.com') [@217.44.249.49.62489]

and server 1 is giving

*** LocOps -- ERROR :from 80.7.113.209 -- Closing Link: [217.44.249.49] (Link denied (No matching link configuration))
* *** LocOps -- Server 80.7.113.209 closed the connection

if it helps thats a win server (2)
server 1 is Linux

I also changed the network block of server 2 to its own dns and restarted the servers still getting same errors

Posted: Fri Jun 03, 2005 3:46 pm
by Matridom
try this...

Code: Select all

server 2

link server1.com
{ 
username *; 
hostname 217.44.249.49; 
bind-ip *; 
port 4011; 
hub *; 
password-connect "pass"; 
password-receive "pass"; 
class servers; 
options { 
zip; 
ssl; 
}; 


Server 1 

link server2.com
{ 
username *; 
hostname 80.7.113.209; 
bind-ip *; 
port 4000; 
leaf *; 
password-connect "pass"; 
password-receive "pass"; 
class servers; 
options { 
autoconnect; 
zip; 
ssl; 
}; 
Make sure you rehash BOTH servers before attempting to connect. I would do and rehash server 2 first (as it does not have the autoconnect)

Just noticed an additional problem in the set block

Code: Select all

/* Network configuration */ 
set { 
network-name "irc.server1.com"; 
default-server "server1.com";  <--- set it to an actual server rather then the network
services-server "services.server1.com"; 
stats-server "stats.server1.com"; 
help-channel "#help"; 
hiddenhost-prefix "private"; 
/* prefix-quit "no"; */ 

Posted: Fri Jun 03, 2005 4:06 pm
by Drakx
You are a GOD!!! thank you worked a treat :D