SRCDS Steam group


Multiple Servers, One Port
#1
Question 
Is there a way to run multiple gameservers on the same virtual server using only one IP and all the same port (27015)? What I'm looking for is something similar to reverse proxying with HTTP traffic. I want to have the individual game servers running on different ports (i.e. 27020 and 27030) and then to route all traffic to port 27015 to the appropriate port based on the subdomain the request came from.

an example:

we have two subdomains, tf2.domain.com and css.domain.com. Both of these send traffic to port 27015 (i.e. the standard port). The server will receive this traffic and forward it to the appropriate port based on the subdomain. So tf2.domain.com goes to port 27020 and css.domain.com goes to port 27030, but the client doesn't know this. As far as they are concerned they only communicate on port 27015.

The reason for needing this reverse proxy method is that I am only allowed one IP address per server instance so using the -ip command option doesn't work here.

Not sure if any of this will be useful, but here's the basic info of our setup.

The server hardware is an AWS small server (1.7G ram).

Game(s): Multiple team fortress 2 and multiple counter strike source.

Start Up Command: screen -A -m -d -S tf2 /mnt/data-store/hlds/gameserver/orangebox/srcds_run -game tf +map cp_egypt_final -autoupdate +maxplayers 24 -port 27020
minor changes depending on actual server, notably the port changes for each one

Admin Mods: Mani mod
Reply
#2
(05-17-2012, 04:15 PM)code24 Wrote:  Is there a way to run multiple gameservers on the same virtual server using only one IP and all the same port (27015)? What I'm looking for is something similar to reverse proxying with HTTP traffic. I want to have the individual game servers running on different ports (i.e. 27020 and 27030) and then to route all traffic to port 27015 to the appropriate port based on the subdomain the request came from.

an example:

we have two subdomains, tf2.domain.com and css.domain.com. Both of these send traffic to port 27015 (i.e. the standard port). The server will receive this traffic and forward it to the appropriate port based on the subdomain. So tf2.domain.com goes to port 27020 and css.domain.com goes to port 27030, but the client doesn't know this. As far as they are concerned they only communicate on port 27015.

The reason for needing this reverse proxy method is that I am only allowed one IP address per server instance so using the -ip command option doesn't work here.

Not sure if any of this will be useful, but here's the basic info of our setup.

The server hardware is an AWS small server (1.7G ram).

Game(s): Multiple team fortress 2 and multiple counter strike source.

Start Up Command: screen -A -m -d -S tf2 /mnt/data-store/hlds/gameserver/orangebox/srcds_run -game tf +map cp_egypt_final -autoupdate +maxplayers 24 -port 27020
minor changes depending on actual server, notably the port changes for each one

Admin Mods: Mani mod

As far as I am concern nobody has managed it.
Best Regards,
Stinkyfax
Reply
#3
You can't. Very simple, the source protocol does not allow for it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)