AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Solved Assign subdomains to multiple (unique IP) servers (https://forums.alliedmods.net/showthread.php?t=329020)

bikkser 12-05-2020 08:41

Assign subdomains to multiple (unique IP) servers
 
I got some CSGO servers up and running using LGSM on a dedicated server is running Ubuntu 20.04. I am trying to assign a sub domain (s1, s2, s3 etc.) to each gameserver but only s1.domain.com can be found in the Serverlist.

To achieve this each gameserver should have a unique IP address so s2 already has a different IP address in the lgsm instance cfg.

The (dedicated) server was originally configured on the IP address of s1 (aaa.bbb.ccc.ddd) and also the domain DNS settings is using this one. So in the DNS I already configured an A record with the value s1 assigning to aaa.bbb.ccc.ddd. This is working fine but now I need to add a second. As far as I understand it is not possible to add a second A record with the value s2 pointing to the other unique IP address.

----------------------

S1 LGSM instance config
s1.domain.com = THIS ONE DOES WORK
gslt="UNRELEVANT"
ip="aaa.bbb.ccc.ddd"
port="27015"
clientport="27005"
sourcetvport="27025"
gamemode="2"
gametype="1"

S1 LGSM instance details
Server IP: aaa.bbb.ccc.ddd:27016
Master server: Listed
Status: ONLINE

----------------------

S2 LGSM instance config
s2.domain.com
gslt="UNRELEVANT"
ip="www.xxx.yyy.zzz"
port="27016"
clientport="27006"
sourcetvport="27026"
gamemode="2"
gametype="1"

S2 instance details
Server IP: www.xxx.yyy.zzz:27016
Internet IP: aaa.bbb.ccc.ddd:27016
Master server: not listed
Status: ONLINE

----------------------

I also find it weird that s2 has an Internet IP. Is this the issue? Does this also explain why the master server is NOT LISTED? When I change the IP address to the original one (aaa.bbb.ccc.ddd) with port 27016 (instead of s1's 27015) the server WILL BE listed and can be found
- UPDATE: the new server is listed after some changes in /etc/netplan
- UPDATE: the server address s2.gr8.gg is working now since I changed the instance port to 27015 (instead of 27016).

So, how can I configure that s1.domain.com will find server aaa.bbb.ccc.ddd and s2.domain.com www.xxx.yyy.zzz.

ThePwnt 12-05-2020 10:19

Re: Assign subdomains to multiple (unique IP) servers
 
You need "domain" before it's possible. =) you need to point that via DNS.

bikkser 12-05-2020 12:49

Re: Assign subdomains to multiple (unique IP) servers
 
I did. I got a domain and in the DNS I already configured an A record with s1.domain.com pointing at aaa.bbb.ccc.ddd. This one does work on s1.domain.com. S2 is also configured as an A record pointing at www.xxx.yyy.zzz but that one (s2.domain.com) doesn’t work.

bikkser 12-05-2020 13:20

Re: Assign subdomains to multiple (unique IP) servers
 
I think the issue is caused by the server instance that only has an server ip and not an internet ip. Maybe something with hosts or ufw?

At least the new server (s2) is listed now since I added the new address to /etc/netplan.

bikkser 12-05-2020 16:01

Re: Assign subdomains to multiple (unique IP) servers
 
Got it working! I found out that the adding s2.gr8.gg to the CSGO serverlist, resulted in the new IP address but with 27015. So the s2 instance simply needed a new port (27015). I already did that earlier but I guess I got a different result now since I had a look at /etc/netplan.

ip="www.xxx.yyy.zzz"
port="27015"
clientport="27005"
sourcetvport="27025"


All times are GMT -4. The time now is 04:15.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.