Find the answer to your Linux question:
Results 1 to 4 of 4
Hi people, I'm running Debian 6.0 and I'ld like some tips or clues regarding DNS and basic networking. I'ld like to achieve the following thing: I have a server which ...
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    2

    Question [Network] Redirect domain to a guest VM inside server

    Hi people,

    I'm running Debian 6.0 and I'ld like some tips or clues regarding DNS and basic networking.

    I'ld like to achieve the following thing:

    I have a server which owns a unique IP address and domain name, let's name it thireus.com.
    I also have some virtual machines inside it, managed by qemu, and I want to access them from the outside.

    thireus.com --> server.ip
    vm1.thireus.com --> server.ip --> (sub-network) 192.168.1.101
    vm2.thireus.com --> server.ip --> (sub-network) 192.168.1.102
    et.

    Do you know how can I do this?

    I don't want to play with port forwarding, so that I can have a website and sshd running on vm1.thireus.com and another sshd and website on vm2.thireus.com.

    Thanks for your help

  2. #2
    Just Joined!
    Join Date
    Aug 2011
    Posts
    37
    You won't be able to get inside the guest vms without port forwarding.

    One other solution would be to set up a VPN server on the main VM, connect to the VPN from the guest VMs and from your PC then connect to the VMs via the VPN

  3. #3
    Just Joined!
    Join Date
    Aug 2011
    Posts
    2
    The services running on the VM are supposed to be publicly accessible on the Internet. I already managed to poxify the 80 and 443 ports with apache using mod_proxy, so that subdomains vm1.thireus.com and vm2.thireus.com for port 80 and 443 reach the VM apache services.

    But how can I do the same for SSH? So that if a client types 'ssh user@thireus.com -p 22' he reaches the sshd of the server and if the client types 'ssh user@vm1.thireus.com -p 22' (same port) he reaches sshd of VM1.

    Is it possible?

  4. #4
    Just Joined!
    Join Date
    Aug 2011
    Posts
    37
    Unfortunately I don't think this is possible for SSH without port forwarding and different SSH ports for each VM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •