Linking problem -- Is this right?

These are old archives. They are kept for historic purposes only.
Post Reply
Drakx
Posts: 8
Joined: Thu Jun 02, 2005 5:33 pm

Linking problem -- Is this right?

Post 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
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
Drakx
Posts: 8
Joined: Thu Jun 02, 2005 5:33 pm

Post by Drakx »

Thanks for the repliy, ill let you know how i get on thanks :D
Drakx
Posts: 8
Joined: Thu Jun 02, 2005 5:33 pm

Post 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?
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Yes.
Drakx
Posts: 8
Joined: Thu Jun 02, 2005 5:33 pm

Post 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
Matridom
Posts: 296
Joined: Fri Jan 07, 2005 3:28 am

Post by Matridom »

can you post your current link blocks as that is where the problem currently lies?
Never argue with an idiot. They will bring you down to their level, then beat you with experience.
Drakx
Posts: 8
Joined: Thu Jun 02, 2005 5:33 pm

Post 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
Matridom
Posts: 296
Joined: Fri Jan 07, 2005 3:28 am

Post 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"; */ 
Never argue with an idiot. They will bring you down to their level, then beat you with experience.
Drakx
Posts: 8
Joined: Thu Jun 02, 2005 5:33 pm

Post by Drakx »

You are a GOD!!! thank you worked a treat :D
Post Reply