Page 1 of 1

Linking servers

Posted: Sun Sep 05, 2010 6:51 am
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.

Re: Linking servers

Posted: Sun Sep 05, 2010 11:47 am
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.

Re: Linking servers

Posted: Sun Sep 05, 2010 3:48 pm
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.

Re: Linking servers

Posted: Sun Sep 05, 2010 4:52 pm
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.

Re: Linking servers

Posted: Sun Sep 05, 2010 8:31 pm
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?

Re: Linking servers

Posted: Sun Sep 05, 2010 9:03 pm
by Stealth
check your listen blocks, as well as /stats P to make sure the ports are open by Unreal

Re: Linking servers

Posted: Sun Sep 05, 2010 9:15 pm
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;
        };
};