Linking servers

These are old archives. They are kept for historic purposes only.
Post Reply
Callum_UK
Posts: 22
Joined: Sun Sep 05, 2010 6:39 am

Linking servers

Post by Callum_UK »

Hi,
I've never attempted to link 2 servers together on a network (other than services).

In this post, let's just say I own domain.com, and am linking server1.domain.com (1.2.3.4.5), and server2.domain.com (6.7.8.9.10) I also have services.domain.com (2.4.6.8.10)

I've setup irc.domain.com with 2 DNS A records pointing to the IP's of server1 and server2.

I've got the servers linked, but I'm not sure if this is the best method, and also, users of server1 can't see server2 in /map (but they can see the client still), and visa versa.

Server1's links;

Code: Select all

link services.domain.com {
        username *;
        hostname 2.4.6.8.10;
        bind-ip *;
        port 8000;
        hub *;
        password-connect "servicesPass";
        password-receive "servicesPass";
        class servers;
        options {
                autoconnect;
                zip;
        };
};

link server2.domain.com {
        username *;
        hostname 5.6.7.8.9.10;
        bind-ip *;
        port 8000;
        leaf *;
        password-connect "passHere";
        password-receive "passHere";
        class servers;
        options {
                autoconnect;
                zip;
		nodnscache;
        };
};
And then, I have server2's links;

Code: Select all

link server1.domain.com {
        username *;
        hostname 1.2.3.4.5;
        bind-ip *;
        port 8000;
        hub *;
        password-connect "passHere";
        password-receive "passHere";
        class servers;
        options {
                autoconnect;
                zip;
		nodnscache;
        };
};
What am I doing wrong here? Apologies if you need more info, just tell me what else to paste.
Join us at [url=irc://irc.sanlrpg.net/]irc.sanlrpg.net[/url]
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Linking servers

Post by Jobe »

Callum_UK wrote:I've got the servers linked, but I'm not sure if this is the best method, and also, users of server1 can't see server2 in /map (but they can see the client still), and visa versa.
That sounds like you incorrectly unlined server2. As ulineing combined with the hide ulines option is the only thing that stops a server showing in /map.

As for your link blocks, you shouldn't use autoconnect or zip with most services packages as they don't support them.
Your IP: Image
Your Country: Image
Callum_UK
Posts: 22
Joined: Sun Sep 05, 2010 6:39 am

Re: Linking servers

Post by Callum_UK »

Thanks, Jobe, but now, there appears to be a new problem. Like I said, both servers come under "irc.domain.com" (using 2 A DNS Pointers). server1 isn't accepting new connections, and server2 is taking the whole weight of the network. On the link, I set "nodnscache;", so every time they connect, they get a random server. server1 stopped accepting connections since it was restarted.
Join us at [url=irc://irc.sanlrpg.net/]irc.sanlrpg.net[/url]
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Linking servers

Post by Stealth »

nodnscache has nothing to do with clients connecting, it is so servers don't internally cache the link hostnames and IP addresses so Unreal works on hosts with dynamic IP addresses.

What you now describe is nothing to do with Unreal, but your DNS host. When setting up a DNS round robin, clients are supposed to receive all the IPs listed for that DNS record in random order. Most clients connect to the first IP received. To see if your DNS records are correct, type "dig irc.domain.com" in a *nix shell. You should have all your server IPs listed in the Answer Section.

Also remember that DNS changes can take up to 24 hours to propagate to all the top-level DNS servers where clients pull their information from.
Callum_UK
Posts: 22
Joined: Sun Sep 05, 2010 6:39 am

Re: Linking servers

Post by Callum_UK »

Ok, now I've got server3. I've made a link between server1 (hub) and server3 (leaf). I presume server2 (leaf) and server3 (leaf) don't need a link. server3 has a uline for services as well. Now when I try to connect to the server, it says "Could not connect to server3.irc.domain.com (Connection Refused)". The ports are open and firewalls are off. What other problems could be causing this?
Join us at [url=irc://irc.sanlrpg.net/]irc.sanlrpg.net[/url]
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Linking servers

Post by Stealth »

check your listen blocks, as well as /stats P to make sure the ports are open by Unreal
Callum_UK
Posts: 22
Joined: Sun Sep 05, 2010 6:39 am

Re: Linking servers

Post by Callum_UK »

Yes, the ports are fine.
-server3.irc.domain.com- *** Listener on *:8000, clients 1. is PERM serversonly
-
-server3.irc.domain.com- *** Listener on *:6667, clients 0. is PERM clientsonly
This is my link file for server1;

Code: Select all

link services.irc.domain.com {
        username *;
        hostname 2.4.6.8.10;
        bind-ip *;
        port 8000;
        hub *;
        password-connect "servicesPass";
        password-receive "servicesPass";
        class servers;
        options {
                autoconnect;
                zip;
        };
};

link server2.irc.domain.com {
        username *;
        hostname 6.7.8.9.10;
        bind-ip *;
        port 8000;
        leaf *;
        password-connect "passHere";
        password-receive "passHere";
        class servers;
        options {
                autoconnect;
                zip;
        };
};

link server3.irc.domain.com {
        username *;
        hostname 1.3.5.7.9;
        bind-ip *;
        port 8000;
        leaf *;
        password-connect "thisIsPass";
        password-receive "thisIsPass";
        class servers;
        options {
                autoconnect;
                zip;
        };
};
And here is server'3;

Code: Select all

link server1.irc.domain.com {
        username *;
        hostname 1.2.3.4.5;
        bind-ip *;
        port 8000;
        hub *;
        password-connect "thisIsPass";
        password-receive "thisIsPass";
        class servers;
        options {
                autoconnect;
                zip;
        };
};
Join us at [url=irc://irc.sanlrpg.net/]irc.sanlrpg.net[/url]
Post Reply