An interesting routing problem
Posted: 30. Sep 2011, 23:04
I have a host machine that I am going to want to run multiple VMs on. Though the question I will ask is generic enough to apply to any host, in my case my host machine is running Fedora 15. My VMs will likely be running various operating systems.
What I want to be able to do is run multiple VMs that, in turn are running software that listens on a particular port. For the sake of concreteness, let's say that my VMs are all listening on Port 8083.
The rub here is that while each VM is listening on Port 8083, each VM is running a different application. Again for the sake of concreteness, let's say that I have two VMs, one called "A" and the other called "B". Both are running Tomcat, and both are using Port 8083 to receive requests. The difference is the applications being run on these VMs. One application is an e- commerce app, while the other does a lot of picture sharing. In fact, I would like to have two different URLs associated with the two VMs.
My problem is this: I would like to open up a single port to the Internet (because I am going to eventually have several VMs and I don't want a lot of ports open on my outer firewall!), and have HTTP requests that come in on that port to be routed to my host machine. On my host machine, depending on the request URL, I would like to route the request to the appropriate VM.
Does VirtualBox provide some way of doing this? If not, can anyone suggest some software that I can put on my host to handle this problem?
Someone please advise.
What I want to be able to do is run multiple VMs that, in turn are running software that listens on a particular port. For the sake of concreteness, let's say that my VMs are all listening on Port 8083.
The rub here is that while each VM is listening on Port 8083, each VM is running a different application. Again for the sake of concreteness, let's say that I have two VMs, one called "A" and the other called "B". Both are running Tomcat, and both are using Port 8083 to receive requests. The difference is the applications being run on these VMs. One application is an e- commerce app, while the other does a lot of picture sharing. In fact, I would like to have two different URLs associated with the two VMs.
My problem is this: I would like to open up a single port to the Internet (because I am going to eventually have several VMs and I don't want a lot of ports open on my outer firewall!), and have HTTP requests that come in on that port to be routed to my host machine. On my host machine, depending on the request URL, I would like to route the request to the appropriate VM.
Does VirtualBox provide some way of doing this? If not, can anyone suggest some software that I can put on my host to handle this problem?
Someone please advise.