Hello,
I'm using a linux machine (Fedora 19, but shouldn't matter that much) that serves pages through different ports than the default (for security and admin purposes, as I understand it). Can't change that, but see my end note below.
I have installed a Debian on a virtual machine (VirtualBox) that will suffice some needs I have that would be much harder to do in the used Fedora setup (and I can't change it easily, if at all possible).
Now I have the following problem: I have to setup this virtual environment to direct everything that comes to my machine through port 9982 (for example) to my virtual Debian port (which I can freely setup if needed, but I don't know how).
Further, if my Debian would use other ports for common sites (e.g.: PHP+SQL), I would have other port numbers to configure in this "pipe".
Note: I can't change most things in my Fedora setup, but I can make unused ports the "site ports" for my virtual machine. Id est, when I access
http://localhost:9987/ in my host (or any machine that has access to it), I'll be accessing my Debian websites.
Normally I could use a virtual machine with network brige (so just a local lan would exist, in practice). But with these different details I'm not sure what's the best to do, or my options.
What do you suggest? And please detail the steps I must do.
Thank you