PDA

View Full Version : Interesting problem needs interesting solution



crenn
06-23-2010, 12:59 PM
I have a couple of home servers and I want to set up alias based port forwarding. IE if I access party.example.com on port 443 it shows https from server 1 but if I access hard.example.com on port 443 it accesses SSH on server 2.

jdbnsn
06-23-2010, 03:00 PM
why not just route them by DNS?

x88x
06-23-2010, 03:34 PM
Is this accessing them from an external location? If so, what DNS service are you using? Do you have a static or dynamic IP address? Are any of the servers publicly accessible?

Barring any of that changing things, what I would do is set up a VM with the necessary ports open to the world, then have it handle routing stuff depending on what you want it to do.

crenn
06-23-2010, 06:48 PM
I'm using DynDNS. I have a single static IP address, and the servers are publically accessable currently. Why can't I just get the linux router which I'm using to port forward to handle what I want to do?

x88x
06-23-2010, 07:13 PM
You might be able to, it all depends on the capabilities of your router. I'm actually not sure off the top of my head how to do it, but I'll think on it.

crenn
06-23-2010, 07:23 PM
Either way, if it can't be done linux based, then I'm not sure how to do it at all.

EDIT: By the way, apache can do virtual hosts, but sadly the way to get things work with SSH is to use a tunnel which I don't want to do.