TCP Port Routing For Multiple Minecraft Servers on One Computer
by Jump4fun from LinuxQuestions.org on (#5NN6P)
I have a server computer running Linux Lite or Ubuntu Server which I use to run multiple minecraft servers.
I would like to set it up so I can direct multiple addresses to my one computer and then my computer can route each to a different port based on which domain was referenced.
For example:
My DNS record says the following addresses are directed to the IP 100.105.36.3 (Random IP representing the public ip of my router for the example):
mc1.domain.com
mc2.domain.com
mc3.domain.com
Then I have port 25565 (standard minecraft server port) forwarded to my server computer.
I then want my server computer to be able to route connections that address mc1.domain.com to port 1001 and from mc2.domain.com to port 1002 and from mc3.domain.com to port 1003.
Is there a program I can use to simply route connections to my servers like that?
I would like to set it up so I can direct multiple addresses to my one computer and then my computer can route each to a different port based on which domain was referenced.
For example:
My DNS record says the following addresses are directed to the IP 100.105.36.3 (Random IP representing the public ip of my router for the example):
mc1.domain.com
mc2.domain.com
mc3.domain.com
Then I have port 25565 (standard minecraft server port) forwarded to my server computer.
I then want my server computer to be able to route connections that address mc1.domain.com to port 1001 and from mc2.domain.com to port 1002 and from mc3.domain.com to port 1003.
Is there a program I can use to simply route connections to my servers like that?